Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pygame sdl_image png/jpeg support
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
AntCox  
View profile  
 More options Feb 14 2012, 11:05 am
From: AntCox <ant...@totallycommunications.com>
Date: Tue, 14 Feb 2012 08:05:24 -0800 (PST)
Local: Tues, Feb 14 2012 11:05 am
Subject: [pygame] pygame sdl_image png/jpeg support
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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Arndt  
View profile  
 More options Feb 14 2012, 11:28 am
From: Christopher Arndt <ch...@chrisarndt.de>
Date: Tue, 14 Feb 2012 17:28:46 +0100
Local: Tues, Feb 14 2012 11:28 am
Subject: Re: [pygame] pygame sdl_image png/jpeg support
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AntCox  
View profile  
 More options Feb 14 2012, 11:51 am
From: AntCox <ant...@totallycommunications.com>
Date: Tue, 14 Feb 2012 08:51:30 -0800 (PST)
Local: Tues, Feb 14 2012 11:51 am
Subject: [pygame] Re: pygame sdl_image png/jpeg support
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Paige  
View profile  
 More options Feb 14 2012, 12:01 pm
From: James Paige <B...@HamsterRepublic.com>
Date: Tue, 14 Feb 2012 09:01:23 -0800
Local: Tues, Feb 14 2012 12:01 pm
Subject: Re: [pygame] Re: pygame sdl_image png/jpeg support
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AntCox  
View profile  
 More options Feb 14 2012, 12:12 pm
From: AntCox <ant...@totallycommunications.com>
Date: Tue, 14 Feb 2012 09:12:37 -0800 (PST)
Local: Tues, Feb 14 2012 12:12 pm
Subject: [pygame] Re: pygame sdl_image png/jpeg support
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
René Dudfield  
View profile  
 More options Feb 14 2012, 12:32 pm
From: René Dudfield <ren...@gmail.com>
Date: Tue, 14 Feb 2012 18:32:08 +0100
Local: Tues, Feb 14 2012 12:32 pm
Subject: Re: [pygame] Re: pygame sdl_image png/jpeg support

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...@totallycommunications.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Paige  
View profile  
 More options Feb 14 2012, 12:35 pm
From: James Paige <B...@HamsterRepublic.com>
Date: Tue, 14 Feb 2012 09:35:20 -0800
Local: Tues, Feb 14 2012 12:35 pm
Subject: Re: [pygame] Re: pygame sdl_image png/jpeg support
I haven't tested this myself, but I am pretty sure that

ORIGLIBDIRS="/lib:/lib/`uname -i`-linux-gnu:/lib64:/X11R6/lib"

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AntCox  
View profile  
 More options Feb 14 2012, 12:37 pm
From: AntCox <ant...@totallycommunications.com>
Date: Tue, 14 Feb 2012 09:37:30 -0800 (PST)
Local: Tues, Feb 14 2012 12:37 pm
Subject: [pygame] Re: pygame sdl_image png/jpeg support
Hi James,
Yes I have tried it verbatim and the PNG/JPEG/SCRAP dependencies are
still not found.
Appreciate your help so far,
A

On Feb 14, 6:35 pm, James Paige <B...@HamsterRepublic.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lenard Lindstrom  
View profile  
 More options Feb 14 2012, 2:57 pm
From: Lenard Lindstrom <le...@telus.net>
Date: Tue, 14 Feb 2012 11:57:39 -0800
Local: Tues, Feb 14 2012 2:57 pm
Subject: Re: [pygame] Re: pygame sdl_image png/jpeg support
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AntCox  
View profile  
 More options Feb 14 2012, 4:23 pm
From: AntCox <ant...@totallycommunications.com>
Date: Tue, 14 Feb 2012 13:23:35 -0800 (PST)
Local: Tues, Feb 14 2012 4:23 pm
Subject: [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...@telus.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lenard Lindstrom  
View profile  
 More options Feb 16 2012, 8:44 pm
From: Lenard Lindstrom <le...@telus.net>
Date: Thu, 16 Feb 2012 17:44:17 -0800
Local: Thurs, Feb 16 2012 8:44 pm
Subject: Re: [pygame] Re: pygame sdl_image png/jpeg support

Hi,

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:

  Setup
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AntCox  
View profile  
 More options Feb 17 2012, 8:34 am
From: AntCox <ant...@totallycommunications.com>
Date: Fri, 17 Feb 2012 05:34:05 -0800 (PST)
Local: Fri, Feb 17 2012 8:34 am
Subject: [pygame] Re: pygame sdl_image png/jpeg support
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »