Tiny Core Extensions > TCE Q&A Forum
{SOLVED} Compiling pygtk-2,12,1 error headers not found.
Jason W:
One more thing, do you also have pygobject and pycairo built, and perhaps libglade loaded? Looking around those seem to also be dependencies. That is of course in addition to the usual gtk-dev stuff which I am sure you already have loaded.
Pygtk was on the list of things I was going to build since there is an Mplayer front end that uses it I would like to try. Pygobject as well as pycairo if they are needed could go in the same extension as pygtk. I am able to sneak about an hour with TC now so I will try to help see what the issue is. I wil let you know if I see what is causing an error.
Jason W:
I was able to compile pygtk with the above mentioned stuff. Basically:
Load Xorg-devs and gtk2-devs and dependencies ( I will create a dependency file for gtk2-devs as it is quite a list and I get tired of hunting them down after a clean install. ) python/devs and libglade.
Be prepared for the usual issue of some Xlib .la files in /usr/local/lib instead of /usr/lib. Pycairo will complain of missing .la files in /usr/lib as they are located in /usr/local/lib.
Build and install pygobject, pycairo, and then pygtk.
Let us know if there are any other issues with the build.
kagashe:
--- Quote from: Jason W on December 22, 2008, 05:15:32 PM ---Be prepared for the usual issue of some Xlib .la files in /usr/local/lib instead of /usr/lib. Pycairo will complain of missing .la files in /usr/lib as they are located in /usr/local/lib
--- End quote ---
What to do for the errors?
--- Quote ---grep: /usr/lib/libexpat.la: No such file or directory
/bin/sed: can't read /usr/lib/libexpat.la: No such file or directory
libtool: link: '/usr/libexpat.la' is not a valid libtool archive
make[2]: *** [_cairo.la] Error 1
make[2]: Leaving directory '/tmp/pycairo-1.4.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/pycairo-1.4.0'
make: *** [all] Error 2
--- End quote ---
kagashe
Juanito:
from the error message, either you don't have the expat2/expat2-devs extensions loaded or you need PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
kagashe:
--- Quote from: Juanito on December 23, 2008, 07:32:45 AM ---from the error message, either you don't have the expat2/expat2-devs extensions loaded or you need PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
--- End quote ---
libexpat.la is there is /usr/local/lib
Make is looking for in /usr/lib
PKG_CONFIG_PATH has been set.
kagashe
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version