GTK Not Found (not really gtk so much as python, now)

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
CoffeeBot
Intrepid Venturer
Intrepid Venturer
Posts: 676
Joined: Wed Jul 06, 2005 5:25 am
Location: On the counter by the toaster
Contact:

GTK Not Found (not really gtk so much as python, now)

Post by CoffeeBot »

Which is very odd, because it's installed, and I compiled from CVS a month or so ago.

The errors spewed by ./configure:

Code: Select all

checking for expat.h... yes
checking for png library... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
./configure: line 9842: VS_CHECK_JPEG: command not found
./configure: line 9844: VS_CHECK_OPENAL: command not found
./configure: line 9846: VS_CHECK_VORBIS: command not found
./configure: line 9848: VS_CHECK_CRYPTO: command not found
./configure: line 9850: VS_CHECK_NETCOMM: command not found
./configure: line 10000: VS_WITH_NET_THREADS: command not found
./configure: line 10002: VS_WITH_COLLIDE_MAP: command not found
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error: GTK Not Found.  Can not continue
See `config.log' for more details.
Error running ./configure
And a link to my config.log

I've got GTK 1.2.10 installed, so sayeth /usr/bin/gtk-config. The -devel packages are installed, also.

This is on an FC4 install, 2.6 kernel.
Last edited by CoffeeBot on Fri Oct 07, 2005 5:27 am, edited 1 time in total.
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Interesting, I just compiled in Windows under VStudio 7, and vssetup doesn't link due to a missing gtk lib or dll I suppose...
VS7 output wrote:------ Build started: Project: vssetup, Configuration: Release Win32 ------

Linking...
central.obj : error LNK2019: unresolved external symbol "void __cdecl ShowMain(void)" (?ShowMain@@YAXXZ) referenced in function "void __cdecl Start(int *,char * * *)" (?Start@@YAXPAHPAPAPAD@Z)
central.obj : error LNK2019: unresolved external symbol "void __cdecl InitGraphics(int *,char * * *)" (?InitGraphics@@YAXPAHPAPAPAD@Z) referenced in function "void __cdecl Start(int *,char * * *)" (?Start@@YAXPAHPAPAPAD@Z)
..\..\data4.x\bin\Setup.exe : fatal error LNK1120: 2 unresolved externals

Build log was saved at "file://h:\Cvs\vs\vegastrike\vega-vc7\vssetup\Release\BuildLog.htm"
vssetup - 3 error(s), 0 warning(s)


---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped
CoffeeBot
Intrepid Venturer
Intrepid Venturer
Posts: 676
Joined: Wed Jul 06, 2005 5:25 am
Location: On the counter by the toaster
Contact:

Post by CoffeeBot »

well, I added --disable-gtktest and it ran just fine. It's crapping out on me when it compiles, though. Some python stuff. I'm poking around to see what's wrong, first.
CoffeeBot
Intrepid Venturer
Intrepid Venturer
Posts: 676
Joined: Wed Jul 06, 2005 5:25 am
Location: On the counter by the toaster
Contact:

Post by CoffeeBot »

Code: Select all

make  all-recursive
make[1]: Entering directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike'
Making all in src
make[2]: Entering directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike/src'
Making all in cmd
make[3]: Entering directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike/src/cmd'
Making all in ai
make[4]: Entering directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike/src/cmd/ai'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..   -DUSE_BOOST_131=1 -I../../../src/boost129  -I../../../src   -pipe  -O2 -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2  -pthread -pipe -MT comm_ai.o -MD -MP -MF ".deps/comm_ai.Tpo" -c -o comm_ai.o comm_ai.cpp; \
then mv -f ".deps/comm_ai.Tpo" ".deps/comm_ai.Po"; else rm -f ".deps/comm_ai.Tpo"; exit 1; fi
comm_ai.cpp: In function ‘void GetMadAt(Unit*, Unit*, int)’:
comm_ai.cpp:123: warning: converting to ‘int’ from ‘float’
comm_ai.cpp: In function ‘int InList(std::string, Unit*)’:
comm_ai.cpp:203: warning: converting to ‘int’ from ‘float’
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..   -DUSE_BOOST_131=1 -I../../../src/boost129  -I../../../src   -pipe  -O2 -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2  -pthread -pipe -MT docking.o -MD -MP -MF ".deps/docking.Tpo" -c -o docking.o docking.cpp; \
then mv -f ".deps/docking.Tpo" ".deps/docking.Po"; else rm -f ".deps/docking.Tpo"; exit 1; fi
In file included from docking.cpp:1:
../../../src/python/python_compile.h:3:20: error: Python.h: No such file or directory
../../../src/python/python_compile.h:6:21: error: compile.h: No such file or directory
../../../src/python/python_compile.h:7: error: ‘PyCodeObject’ was not declared in this scope
../../../src/python/python_compile.h:7: error: template argument 2 is invalid
../../../src/python/python_compile.h:7: error: invalid type in declaration before ‘;’ token
../../../src/python/python_compile.h:26: error: ISO C++ forbids declaration of ‘PyObject’ with no type
../../../src/python/python_compile.h:26: error: expected ‘;’ before ‘*’ token
../../../src/python/python_compile.h:37: error: expected `;' before ‘}’ token
../../../src/python/python_compile.h:39: error: expected constructor, destructor, or type conversion before ‘*’ token
../../../src/python/python_compile.h:41: error: expected constructor, destructor, or type conversion before ‘*’ token
make[4]: *** [docking.o] Error 1
make[4]: Leaving directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike/src/cmd/ai'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike/src/cmd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nphillips/installs/vegastrike/vegastrike_cvs_head/vegastrike'
make: *** [all] Error 2
Error running 'make'
I looked at where the Python.h and compile.h weren't found, and they're both in /usr/include/python2.4/. I tried changing the includes by adding the direct path, but that only resulted in a whole slew of errors. Do I need to specifically add this in my configure flags?
Post Reply