[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Compiling pygame on Ubuntu 11.10 oneiric JPGE not found



Hi Chris,

I may be misunderstanding your problem, but I had an irritating problem that kept coming up in my Linux (not Ubuntu) which located libraries in an unexpected place so that programs couldn't find them. I solved my problems by editing my /etc/profile (it is just an ordinary text file) to add the odd directory to the LD_LIBRARY_PATH shell variable.

Best wishes,

	- Miriam

Christopher Arndt wrote:
Hi everybody,

today I upgraded my laptop to Ubuntu 11.10 and one of the first things I
did after the upgrade completed was to compile pygame from source for
Python 2.7 because I need the latest pypm module code for my projects.

I stumbled over one issue: even though I had all the dependencies
installed, the configure script said "JPGEG: not found". When I looked
into it, I found that the package "libjpeg62[-dev]" installed
"libjpeg.so[.62]" only in /usr/lib/i386-linux-gnu not in /usr/lib. So I
had to edit "Setup.in" and add "-L/usr/lib/i386-linux-gnu" to the "JPEG"
line. Then configure found the library and everthing compiled without a
hitch.

Is this the best way to solve this? Can this be handled by
config_unix.py instead? Anybody knows, why Ubuntu installs the library
there?

Chris




--
If you don't have any failures then you're not trying hard enough.
 - Dr. Charles Elachi, director of NASA's Jet Propulsion Laboratory
-----
Website: http://miriam-english.org
Blogs:   http://miriam-e.dreamwidth.org
         http://miriam-e.livejournal.com