Discussion:
our euchre crashes
(too old to reply)
Ryan
2010-06-29 19:10:36 UTC
Permalink
I tried to run it on 3 machines (mine, and the 2 linux boxes). I tried
to put it in a folder with the cards and the folder above the cards
(just in case it needs them). I get the following error:

linux006:~/2B/CS246/game> ./our_euchre
terminate called after throwing an instance of 'Glib::FileError'
Abort
Caroline Kierstead
2010-06-29 19:26:51 UTC
Permalink
Post by Ryan
I tried to run it on 3 machines (mine, and the 2 linux boxes). I tried
to put it in a folder with the cards and the folder above the cards
linux006:~/2B/CS246/game> ./our_euchre
terminate called after throwing an instance of 'Glib::FileError'
Abort
I suspect it's not finding the card images. our_euchre should have a
directory graphics at the same level, which will have a subdirectory
called cards_png, which contains the card PNG files ([0-5]_[0-3].png,
suit_[0-3].png, back_[12].png), if it's anything like last summer's
version. I think these images can also be found in one of the gtkmm
examples you were provided (yeah, p4pixmaps/ex2 has them).
--
--
Caroline Kierstead, Undergraduate Operations Coordinator
David R. Cheriton School of Computer Science
University of Waterloo, DC3122 (519) 888-4567 x36226
Joanne Atlee
2010-06-29 20:34:21 UTC
Permalink
Post by Caroline Kierstead
Post by Ryan
I tried to run it on 3 machines (mine, and the 2 linux boxes). I tried
to put it in a folder with the cards and the folder above the cards
linux006:~/2B/CS246/game> ./our_euchre
terminate called after throwing an instance of 'Glib::FileError'
Abort
I suspect it's not finding the card images. our_euchre should have a
directory graphics at the same level, which will have a subdirectory
called cards_png, which contains the card PNG files ([0-5]_[0-3].png,
suit_[0-3].png, back_[12].png), if it's anything like last summer's
version. I think these images can also be found in one of the gtkmm
examples you were provided (yeah, p4pixmaps/ex2 has them).
Sorry about that. The card images are now available from the course Web
assignments page.

- download graphics.tar.gz
- 'gunzip graphics.tar.gz'
- 'tar -xf graphics.tar'
- put the resulting graphics subdirectory in the same directory as
the our_euchre executable



Jo

Loading...