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

[pygame] Re: pygame sdl_image png/jpeg support



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...@xxxxxxxxx> 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>.
>
> The relevant pygame-user thread is here:
>
> <http://article.gmane.org/gmane.comp.python.pygame/23502>
>
> Lenard Lindstrom
>
> On 14/02/12 09:32 AM, Ren Dudfield wrote:
>
>
>
>
>
>
>
> > hey ya.
>
> > 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...@xxxxxxxxxxxxxxxxxxxxxxxxx
> > <mailto:ant...@xxxxxxxxxxxxxxxxxxxxxxxxx>> 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...@xxxxxxxxxxxxxxxxxxx> wrote:
> >     > He did already :)
>
> >     > > ORIGLIBDIRS="/lib:/lib/`uname -i`-linux-gnu:/lib64:/X11R6/lib" \
> >     > > python setup.py build
>
> >     > 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...@xxxxxxxxxxxxx
> >     <mailto:ch...@xxxxxxxxxxxxx>> 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:
>
> >     > > > ORIGLIBDIRS="/lib:/lib/`uname -i`-linux-gnu:/lib64:/X11R6/lib" \
> >     > > > python setup.py build
>
> >     > > > "
>
> >     > > > Chris