[sldev] [Compiling/Linux] gtk header files not found

Björn Keil abgrund at silberdrache.net
Thu Jan 11 05:29:53 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,

I am having a little problem with including my GTK header files. The
problem occurs on a Debian Linux (Etch) system. Since I do use the
precompiled libraries from the slviewer-Linux-libs I was actually
believing I wouldn't even need those.

However, I copied the lines from the block for the gtk header files
and everything around it in the wiki over:

cp -a /usr/include/atk-1.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/include/gtk-2.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/lib/gtk-2.0/include/*
${SLSRC}/libraries/i686-linux/include/gtk-2.0/
cp -a /usr/include/glib-2.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/lib/glib-2.0/include/*
${SLSRC}/libraries/i686-linux/include/glib-2.0/
cp -a /usr/include/pango-1.0 ${SLSRC}/libraries/i686-linux/include/


No errors, no warnings, he "SLSRC" environment variable was correctly set.


Trying to compile from the indra directory still causes the same problem:
/home/bjoern/tmp/home/bjoern/src/linden/indra/i686-linux-client-release/llwindow/llwindowsdl.cpp:44:22:
gtk/gtk.h: No such file or directory (etc.)
Until then it compiles several files without any warning.

Is there maybe a variable I can set to help it find the headers...
like "export GTK_HEADERS=/usr/include/gtk2.0/" or anything like that?

I believe otherwise I've made everything as described in the wiki,
except a few environment changes:
export SLSRC='/home/bjoern/src/linden'
export FMOD='/home/bjoern/src/fmodapi375linux'
alias gcc=gcc-3.4
alias g++=g++-3.4
export CFLAGS='-march=athlon-xp -O3'
export CXXFLAGS='-march=athlon-xp -O3'

(Could anyone tell me wether these flags are actually being regarded?
Even in "ps a | grep g++" during the compile the command does not seem
to include the flags I'd like to use. It doesn't use an -march flag
and uses -O2 ... but making it be faster (and learning to use it) is
the purpose of this compile...)

Greets,
Björn

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFpjvRotXYf/q/g6URAt0wAJ9B9HOfN1L2TTFf7IzgwtE4445NGQCcCLba
4DBG+Fb2GAIK1eLGZHZtNak=
=Z4BV
-----END PGP SIGNATURE-----



More information about the SLDev mailing list