Hello, I wonder if anyone can make any suggestions to help with this issue. I have searched extensively for a solution with no luck so far. I am trying to build pygame and during the dependency check it is only missing PNG and JPEG support which I do wish to use in my programs. SDL_image is installed with both png and jpg support libpng and libjpg and respective -dev libraries are also installed. There doesn't seem to be anything missing. I am running this on ubuntu 11.04 and there are 3 versions of Python currently on the system, 2.5 2.7 and 3. Pygame is trying to build to the 2.7 version which is what I want, I think. Any suggestions? Ant
> I am trying to build pygame and during the dependency check it is only > missing PNG and JPEG support [...] > SDL_image is installed with both png and jpg support libpng and libjpg > and respective -dev libraries are also installed. [...] > I am running this on ubuntu 11.04
I had the same pronlem a few weeks ago. Search the mailing list for the thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] not found"
Here's my solution form the last post in the thread:
"For the record: here's a command line to compile pygame from a pristine hg checkout that works on Linux systems, which use this new scheme to install libraries:
Hi Chris, Thanks a lot for your response. I think I understand what you're saying, that the png (or jpeg in your case) libs were installed somewhere the setup script is not looking for them. However I am not sure how to determine if this is my problem, and then how to fix it. Are you able to give me and pointers on that front? Ant
On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de> wrote:
> > I am trying to build pygame and during the dependency check it is only > > missing PNG and JPEG support [...] > > SDL_image is installed with both png and jpg support libpng and libjpg > > and respective -dev libraries are also installed. [...] > > I am running this on ubuntu 11.04
> I had the same pronlem a few weeks ago. Search the mailing list for the > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] not > found"
> Here's my solution form the last post in the thread:
> "For the record: here's a command line to compile pygame from a pristine > hg checkout that works on Linux systems, which use this new scheme to > install libraries:
the first line puts the lib location for your system into the ORIGLIBDIRS environment variable. Then when you run setup.py in the second line, setup.py knows to automatically search the locations listed in ORIGLIBDIRS
On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > Hi Chris, > Thanks a lot for your response. I think I understand what you're > saying, that the png (or jpeg in your case) libs were installed > somewhere the setup script is not looking for them. However I am not > sure how to determine if this is my problem, and then how to fix it. > Are you able to give me and pointers on that front? > Ant
> On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de> wrote: > > On 14.02.2012 17:05, AntCox wrote:
> > > I am trying to build pygame and during the dependency check it is only > > > missing PNG and JPEG support [...] > > > SDL_image is installed with both png and jpg support libpng and libjpg > > > and respective -dev libraries are also installed. [...] > > > I am running this on ubuntu 11.04
> > I had the same pronlem a few weeks ago. Search the mailing list for the > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] not > > found"
> > Here's my solution form the last post in the thread:
> > "For the record: here's a command line to compile pygame from a pristine > > hg checkout that works on Linux systems, which use this new scheme to > > install libraries:
Thank you James. When I work out where the correct libs have been installed should those locations be appended to the string assigned to ORIGLIBDIRS or just replace what Chris has in there?
On Feb 14, 6:01 pm, James Paige <B...@HamsterRepublic.com> wrote:
> the first line puts the lib location for your system into the > ORIGLIBDIRS environment variable. Then when you run setup.py in the > second line, setup.py knows to automatically search the locations listed > in ORIGLIBDIRS
> --- > James
> On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > > Hi Chris, > > Thanks a lot for your response. I think I understand what you're > > saying, that the png (or jpeg in your case) libs were installed > > somewhere the setup script is not looking for them. However I am not > > sure how to determine if this is my problem, and then how to fix it. > > Are you able to give me and pointers on that front? > > Ant
> > On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de> wrote: > > > On 14.02.2012 17:05, AntCox wrote:
> > > > I am trying to build pygame and during the dependency check it is only > > > > missing PNG and JPEG support [...] > > > > SDL_image is installed with both png and jpg support libpng and libjpg > > > > and respective -dev libraries are also installed. [...] > > > > I am running this on ubuntu 11.04
> > > I had the same pronlem a few weeks ago. Search the mailing list for the > > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] not > > > found"
> > > Here's my solution form the last post in the thread:
> > > "For the record: here's a command line to compile pygame from a pristine > > > hg checkout that works on Linux systems, which use this new scheme to > > > install libraries:
> Thank you James. When I work out where the correct libs have been > installed should those locations be appended to the string assigned to > ORIGLIBDIRS or just replace what Chris has in there?
> On Feb 14, 6:01 pm, James Paige <B...@HamsterRepublic.com> wrote: > > He did already :)
> > the first line puts the lib location for your system into the > > ORIGLIBDIRS environment variable. Then when you run setup.py in the > > second line, setup.py knows to automatically search the locations listed > > in ORIGLIBDIRS
> > --- > > James
> > On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > > > Hi Chris, > > > Thanks a lot for your response. I think I understand what you're > > > saying, that the png (or jpeg in your case) libs were installed > > > somewhere the setup script is not looking for them. However I am not > > > sure how to determine if this is my problem, and then how to fix it. > > > Are you able to give me and pointers on that front? > > > Ant
> > > On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de> wrote: > > > > On 14.02.2012 17:05, AntCox wrote:
> > > > > I am trying to build pygame and during the dependency check it is > only > > > > > missing PNG and JPEG support [...] > > > > > SDL_image is installed with both png and jpg support libpng and > libjpg > > > > > and respective -dev libraries are also installed. [...] > > > > > I am running this on ubuntu 11.04
> > > > I had the same pronlem a few weeks ago. Search the mailing list for > the > > > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] > not > > > > found"
> > > > Here's my solution form the last post in the thread:
> > > > "For the record: here's a command line to compile pygame from a > pristine > > > > hg checkout that works on Linux systems, which use this new scheme to > > > > install libraries:
On Tue, Feb 14, 2012 at 09:12:37AM -0800, AntCox wrote: > Thank you James. When I work out where the correct libs have been > installed should those locations be appended to the string assigned to > ORIGLIBDIRS or just replace what Chris has in there?
> On Feb 14, 6:01 pm, James Paige <B...@HamsterRepublic.com> wrote: > > He did already :)
> > the first line puts the lib location for your system into the > > ORIGLIBDIRS environment variable. Then when you run setup.py in the > > second line, setup.py knows to automatically search the locations listed > > in ORIGLIBDIRS
> > --- > > James
> > On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > > > Hi Chris, > > > Thanks a lot for your response. I think I understand what you're > > > saying, that the png (or jpeg in your case) libs were installed > > > somewhere the setup script is not looking for them. However I am not > > > sure how to determine if this is my problem, and then how to fix it. > > > Are you able to give me and pointers on that front? > > > Ant
> > > On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de> wrote: > > > > On 14.02.2012 17:05, AntCox wrote:
> > > > > I am trying to build pygame and during the dependency check it is only > > > > > missing PNG and JPEG support [...] > > > > > SDL_image is installed with both png and jpg support libpng and libjpg > > > > > and respective -dev libraries are also installed. [...] > > > > > I am running this on ubuntu 11.04
> > > > I had the same pronlem a few weeks ago. Search the mailing list for the > > > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] not > > > > found"
> > > > Here's my solution form the last post in the thread:
> > > > "For the record: here's a command line to compile pygame from a pristine > > > > hg checkout that works on Linux systems, which use this new scheme to > > > > install libraries:
> will be correct for your system. Have you tried it yet? I don't think > you will need to manually hunt down the locations of the libs.
> --- > James
> On Tue, Feb 14, 2012 at 09:12:37AM -0800, AntCox wrote: > > Thank you James. When I work out where the correct libs have been > > installed should those locations be appended to the string assigned to > > ORIGLIBDIRS or just replace what Chris has in there?
> > On Feb 14, 6:01 pm, James Paige <B...@HamsterRepublic.com> wrote: > > > He did already :)
> > > the first line puts the lib location for your system into the > > > ORIGLIBDIRS environment variable. Then when you run setup.py in the > > > second line, setup.py knows to automatically search the locations listed > > > in ORIGLIBDIRS
> > > --- > > > James
> > > On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > > > > Hi Chris, > > > > Thanks a lot for your response. I think I understand what you're > > > > saying, that the png (or jpeg in your case) libs were installed > > > > somewhere the setup script is not looking for them. However I am not > > > > sure how to determine if this is my problem, and then how to fix it. > > > > Are you able to give me and pointers on that front? > > > > Ant
> > > > On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de> wrote: > > > > > On 14.02.2012 17:05, AntCox wrote:
> > > > > > I am trying to build pygame and during the dependency check it is only > > > > > > missing PNG and JPEG support [...] > > > > > > SDL_image is installed with both png and jpg support libpng and libjpg > > > > > > and respective -dev libraries are also installed. [...] > > > > > > I am running this on ubuntu 11.04
> > > > > I had the same pronlem a few weeks ago. Search the mailing list for the > > > > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE [sic!] not > > > > > found"
> > > > > Here's my solution form the last post in the thread:
> > > > > "For the record: here's a command line to compile pygame from a pristine > > > > > hg checkout that works on Linux systems, which use this new scheme to > > > > > install libraries:
The solution would be to use ldconfig in config_unix.py to determine if a library is available, then let ld find it. So for libraries such as png and jpeg Setup would only have -l<lib> directives, but no corresponding -L<lib-paths>.
> Has anyone made a patch/pull request to fix this? The config_unix.py > lib finder, should be able to find libraries on the linux for humans > distro.
> On Tue, Feb 14, 2012 at 6:12 PM, AntCox > <ant...@totallycommunications.com > <mailto:ant...@totallycommunications.com>> wrote:
> Thank you James. When I work out where the correct libs have been > installed should those locations be appended to the string assigned to > ORIGLIBDIRS or just replace what Chris has in there?
> On Feb 14, 6:01 pm, James Paige <B...@HamsterRepublic.com> wrote: > > He did already :)
> > the first line puts the lib location for your system into the > > ORIGLIBDIRS environment variable. Then when you run setup.py in the > > second line, setup.py knows to automatically search the > locations listed > > in ORIGLIBDIRS
> > --- > > James
> > On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > > > Hi Chris, > > > Thanks a lot for your response. I think I understand what you're > > > saying, that the png (or jpeg in your case) libs were installed > > > somewhere the setup script is not looking for them. However I > am not > > > sure how to determine if this is my problem, and then how to > fix it. > > > Are you able to give me and pointers on that front? > > > Ant
> > > On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de > <mailto:ch...@chrisarndt.de>> wrote: > > > > On 14.02.2012 17:05, AntCox wrote:
> > > > > I am trying to build pygame and during the dependency > check it is only > > > > > missing PNG and JPEG support [...] > > > > > SDL_image is installed with both png and jpg support > libpng and libjpg > > > > > and respective -dev libraries are also installed. [...] > > > > > I am running this on ubuntu 11.04
> > > > I had the same pronlem a few weeks ago. Search the mailing > list for the > > > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE > [sic!] not > > > > found"
> > > > Here's my solution form the last post in the thread:
> > > > "For the record: here's a command line to compile pygame > from a pristine > > > > hg checkout that works on Linux systems, which use this new > scheme to > > > > install libraries:
Thank you for your reply Lenard. I have read the post you linked and I am unsure which file needs editing. Setup.in does not seem to exist in the pygame directory after checking it out from the repo. Is that another system file, a Python file or a typo? I haven't used Python very much, and pygame not at all so I am quite unfamiliar with the structure. If you or anyone else could be a little more verbose/ specific with your suggestions it would be appreciated. Thanks in advance. Ant
On Feb 14, 8:57 pm, Lenard Lindstrom <le...@telus.net> wrote:
> The solution would be to use ldconfig in config_unix.py to determine if > a library is available, then let ld find it. So for libraries such as > png and jpeg Setup would only have -l<lib> directives, but no > corresponding -L<lib-paths>.
> > Has anyone made a patch/pull request to fix this? The config_unix.py > > lib finder, should be able to find libraries on the linux for humans > > distro.
> > On Tue, Feb 14, 2012 at 6:12 PM, AntCox > > <ant...@totallycommunications.com > > <mailto:ant...@totallycommunications.com>> wrote:
> > Thank you James. When I work out where the correct libs have been > > installed should those locations be appended to the string assigned to > > ORIGLIBDIRS or just replace what Chris has in there?
> > On Feb 14, 6:01 pm, James Paige <B...@HamsterRepublic.com> wrote: > > > He did already :)
> > > the first line puts the lib location for your system into the > > > ORIGLIBDIRS environment variable. Then when you run setup.py in the > > > second line, setup.py knows to automatically search the > > locations listed > > > in ORIGLIBDIRS
> > > --- > > > James
> > > On Tue, Feb 14, 2012 at 08:51:30AM -0800, AntCox wrote: > > > > Hi Chris, > > > > Thanks a lot for your response. I think I understand what you're > > > > saying, that the png (or jpeg in your case) libs were installed > > > > somewhere the setup script is not looking for them. However I > > am not > > > > sure how to determine if this is my problem, and then how to > > fix it. > > > > Are you able to give me and pointers on that front? > > > > Ant
> > > > On Feb 14, 5:28 pm, Christopher Arndt <ch...@chrisarndt.de > > <mailto:ch...@chrisarndt.de>> wrote: > > > > > On 14.02.2012 17:05, AntCox wrote:
> > > > > > I am trying to build pygame and during the dependency > > check it is only > > > > > > missing PNG and JPEG support [...] > > > > > > SDL_image is installed with both png and jpg support > > libpng and libjpg > > > > > > and respective -dev libraries are also installed. [...] > > > > > > I am running this on ubuntu 11.04
> > > > > I had the same pronlem a few weeks ago. Search the mailing > > list for the > > > > > thread titled "Compiling pygame on Ubuntu 11.10 oneiric JPGE > > [sic!] not > > > > > found"
> > > > > Here's my solution form the last post in the thread:
> > > > > "For the record: here's a command line to compile pygame > > from a pristine > > > > > hg checkout that works on Linux systems, which use this new > > scheme to > > > > > install libraries:
> Thank you for your reply Lenard. I have read the post you linked and I > am unsure which file needs editing. Setup.in does not seem to exist in > the pygame directory after checking it out from the repo. Is that > another system file, a Python file or a typo? I haven't used Python > very much, and pygame not at all so I am quite unfamiliar with the > structure. If you or anyone else could be a little more verbose/ > specific with your suggestions it would be appreciated. > Thanks in advance. > Ant
> On Feb 14, 8:57 pm, Lenard Lindstrom<le...@telus.net> wrote: >> Hi,
>> The solution would be to use ldconfig in config_unix.py to determine if >> a library is available, then let ld find it. So for libraries such as >> png and jpeg Setup would only have -l<lib> directives, but no >> corresponding -L<lib-paths>.
I have finally got pygame working. Some issues seemed to be the result of the version of Ubuntu I am using (11.10). I manually added the location of the png.h to the config_unix.py then found a missing video.h file which is no longer supplied in 11.10 and is also named something else in the package available from apt. I had to find it in another package then symlink it back to the correct filename and location. I suspect this will be a problem with all new Ubuntu versions until patched. I'm sorry this is all a little vague but I crashed my system shortly after getting it working and lost my notes detailing filenames and packages.
Also, wanted to say thanks to helpless from the pygame irc channel who helped me a lot to get it working.
On Feb 17, 1:44 am, Lenard Lindstrom <le...@telus.net> wrote:
> Try the attached Setup file. Just put it in the same directory as setup.py.
> Lenard Lindstrom
> On 14/02/12 01:23 PM, AntCox wrote:
> > Thank you for your reply Lenard. I have read the post you linked and I > > am unsure which file needs editing. Setup.in does not seem to exist in > > the pygame directory after checking it out from the repo. Is that > > another system file, a Python file or a typo? I haven't used Python > > very much, and pygame not at all so I am quite unfamiliar with the > > structure. If you or anyone else could be a little more verbose/ > > specific with your suggestions it would be appreciated. > > Thanks in advance. > > Ant
> > On Feb 14, 8:57 pm, Lenard Lindstrom<le...@telus.net> wrote: > >> Hi,
> >> The solution would be to use ldconfig in config_unix.py to determine if > >> a library is available, then let ld find it. So for libraries such as > >> png and jpeg Setup would only have -l<lib> directives, but no > >> corresponding -L<lib-paths>.