can we get the precompiled SDL Lib file ?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
caviar
Posts: 6
Joined: Thu Sep 29, 2005 8:53 pm

can we get the precompiled SDL Lib file ?

Post by caviar »

Hello,

I am a newbie and I tried many times on my computer to setup the PSPDSK with Cygwin to be able to compile the SDL Library.

Unfortunately, I was not able to compile it properly.
(bad directory settings, I supposed)
I am sure that I am not the only one to get the same problem

So, is it possible for somebody to supply us the Pre compiled Lib SDL file ?

Thanks in advance

Caviar
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

What error did you get? I had to change the build script slightly to get it to build, but I'm not using a totally up to date version of the SDK, so I don't know if that's just me.
User avatar
Thanhda
Posts: 331
Joined: Sat Apr 09, 2005 2:08 am
Location: Canada
Contact:

Post by Thanhda »

1) Go download Cygwin
2) install Toolchain
3) install trunk. go to /usr/local/pspdev/psp/sdk/ and type svn co svn://svn.ps2dev.org/psp/trunk
3) go to trunk/SDL
4) Read README.TXT
5) Type

Code: Select all

./autogen.sh
LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser" ./configure --host psp --prefix=`psp-config --psp-prefix`
make
make install
6) type ../test/SDL/
7) type make
8) load eboot file into psp
9) Enjoy ^_^
There are 10 types of people in the world: Those who understand binary, and those who don't...
Duo
Posts: 25
Joined: Fri Oct 21, 2005 5:15 am

Post by Duo »

I had a lot of problems with cygwin, too. Try devkitpro. I got sdl compiled fine, but can't get sdl_image or sdl_mixer because of zlib problems, I think. When I get these, I'll put everything up on my site with a tutorial or something.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

I got it working using the same process as Thanda. I had to add "-lpspuser" to the libraries (I was getting a link error, something ending in "Param"). This might be fixed in more recent versions - I'm not sure.
User avatar
Thanhda
Posts: 331
Joined: Sat Apr 09, 2005 2:08 am
Location: Canada
Contact:

Post by Thanhda »

i got the most up todate revision, so its probably an older build error.
There are 10 types of people in the world: Those who understand binary, and those who don't...
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

Yeah, I've just tried it with the latest version of the toolchain and it built with no problems. No changes are necessary to the instructions listed in the SDL readme.psp
Post Reply