Page 1 of 1

Doesn't compile

Posted: 13 Sep 2004 14:21
by Kyaputen Harokku
I installed the latest fltk ("emerge fltk") and also have pthreads support. When compiling (from archive "source.tgz"), I get the following errors:

chii GrafikEngine # make
make all-recursive
make[1]: Entering directory `/usr/src/zugspiel/GrafikEngine'
Making all in intl
make[2]: Entering directory `/usr/src/zugspiel/GrafikEngine/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/zugspiel/GrafikEngine/intl'
Making all in po
make[2]: Entering directory `/usr/src/zugspiel/GrafikEngine/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/zugspiel/GrafikEngine/po'
Making all in include
make[2]: Entering directory `/usr/src/zugspiel/GrafikEngine/include'
make[2]: *** No rule to make target `GNODE.cc', needed by `all-am'. Stop.
make[2]: Leaving directory `/usr/src/zugspiel/GrafikEngine/include'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zugspiel/GrafikEngine'
make: *** [all-recursive-am] Error 2

What do I do wrong?

Posted: 25 Sep 2004 17:31
by ucho
I get the same error. Does anybody know how to compile it?

compiling

Posted: 15 Feb 2006 17:37
by thomasdev
hi there!
got it working here...
i moved everything from source to /home/chochmah/zugspiel/
and changed in file include/Makefile.am one varibale:
grafikengine_include_DATA = \
../src/GNODE.cc\
../src/GNODE.h
after that it compiled, but it could not find my fltk libs in the last step - the linking, so i copy & pasted it:
c++ -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wtraditional -Wpointer-arith -Wmissing-prototypes -O1 -g -o grafikengine main.o land.o 3ds.o RailNetworkClass.o Cam.o LandClass.o ZugClass.o ObjectClass.o TSNODE.o ONODE.o TextBubbelClass.o GNODE.o Init.o DepotNodeClass.o testwindow.o -L/usr/X11R6/lib -L/usr/local/qt/lib -L/usr/lib /usr/lib/libGLU.so /usr/lib/libGL.so -lXt -ldl -lpthread -lm /usr/lib/libglut.so -lSM -lICE -lXmu -lXext -lXi -lX11 -lfltk -lfltk_gl -lfltk_images

and add an
-L/usr/lib/fltk-1.1
your directory could be another .. !

=> it links and runs, sometimes :)