Installing SDL...

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

Moderators: cheriff, TyRaNiD

Post Reply
psiko_scweek
Posts: 42
Joined: Sat Nov 12, 2005 2:30 am

Installing SDL...

Post by psiko_scweek »

Alright,
ive looked all over and I just cant find a good tutorial on how to install SDL. I know in order to get all the components of SDL installed you have to install it in the right order with the right set up and everything... If there is a tutorial I may have missed please direct me there, or if youd rather just inform me that would be great too!

thanks!
Ghozt
Posts: 34
Joined: Mon Mar 13, 2006 8:37 pm

Re: Installing SDL...

Post by Ghozt »

psiko_scweek wrote:Alright,
ive looked all over and I just cant find a good tutorial on how to install SDL. I know in order to get all the components of SDL installed you have to install it in the right order with the right set up and everything... If there is a tutorial I may have missed please direct me there, or if youd rather just inform me that would be great too!

thanks!
1. Start cygwin
2. type "svn co svn://svn.pspdev.org/psp/trunk/SDL" (without the "". Then you should change SDL to the stuff you want to download aswell, eg. sdl_mixer, sdl_image etc.)
3. Browse to your newly downloaded dir (eg. SDL)
4. Install it like every other library (check the readme.psp file if it needs special treatment)
Done!
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

it is advised to read the README.PSP

There are special instructions required
psiko_scweek
Posts: 42
Joined: Sat Nov 12, 2005 2:30 am

special instructions..

Post by psiko_scweek »

yeah i think i read those and didnt understand them :-(


I need a complete idiots guide to how to install SDL.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Exerpt from README.PSP

Before you do this i suggest you check to see if automake and autoconf are the latest
Building
--------
To build for the PSP, make sure psp-config is in the path and run: - ignore this bit if you have set up the SDK


./autogen.sh
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host psp --prefix=$(psp-config --psp-prefix)
make
make install

TYPE ./autogen.sh and press enter - let it run through

Type LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \ then press enter

Type ./configure --host psp --prefix=$(psp-config --psp-prefix) then press enter and let the script run

Type make if no errors come up (if errors come up, post them here)

then type make install

Thats it!
psiko_scweek
Posts: 42
Joined: Sat Nov 12, 2005 2:30 am

Post by psiko_scweek »

it keeps saying

Bash: --host: command not found....

am i doing something wrong?
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

paste one line at a time and it will work
10011011 00101010 11010111 10001001 10111010
lucasclaus
Posts: 2
Joined: Sat Nov 24, 2007 8:26 pm

Post by lucasclaus »

hi everybody, this is my first post
i followed all the instructions but after make install it gives me the errors:
make install-data-hook
make[3]: ldconfig: command not found
make[3]: [install-data-hook] Error 127 <ignored>

it's important?
i've to install ldconfig before SDL?
thanks.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

lucasclaus wrote:hi everybody, this is my first post
i followed all the instructions but after make install it gives me the errors:
make install-data-hook
make[3]: ldconfig: command not found
make[3]: [install-data-hook] Error 127 <ignored>

it's important?
i've to install ldconfig before SDL?
thanks.
This thread is old, OLD, OLD. Why are you even using it? You should be following the newer threads on setting up the sdk and libraries. In fact, there's a script that fetches, compiles, and installs all the major libraries for you in the repo. It's in the psplibraries directory. You can find a tutorial on using it to install the major libs (including SDL) here:

http://www.guztech.nl/tutorials/38-psp/ ... ptoolchain

Installing the libs starts at step 4.
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

hi lucasclaus, for a total beginner, either read all the docs or use my win32 builds of sdk and libs to make it easier. With my builds is just download the installers for windows, run the setup then run the setup of sdl and use either eclipse or visual studio to code your stuff. Take a look at this thread:

http://forums.ps2dev.org/viewtopic.php?t=9812
lucasclaus
Posts: 2
Joined: Sat Nov 24, 2007 8:26 pm

Post by lucasclaus »

Heimdall wrote:hi lucasclaus, for a total beginner, either read all the docs or use my win32 builds of sdk and libs to make it easier. With my builds is just download the installers for windows, run the setup then run the setup of sdl and use either eclipse or visual studio to code your stuff. Take a look at this thread:

http://forums.ps2dev.org/viewtopic.php?t=9812
thanks, very useful links!
Post Reply