| View previous topic :: View next topic |
| Author |
Message |
amesianx
Joined: 07 Oct 2005 Posts: 3
|
Posted: Fri Oct 07, 2005 6:00 pm Post subject: SDL Install Tip.. (error fix tip) |
|
|
1) upgrade lastest pspsdk (use svn)
ok..
2) command following.. (cygwin)
--------------------------------------------------------------------------------
LDFLAGS="-L`psp-config --pspsdk-path`/lib -lpsplibc -lc -lpspuser -lpsputility" \
./configure --host psp --with-sdl-prefix=`psp-config --psp-prefix
--------------------------------------------------------------------------------
careful)
1) -lpsplibc <-- this is added by AmesianX..(hoho..) why?
when you compile SDL library, occur errors because psplibc..
errors) strlen in crt0.o bulabula..
atexit in crt0.o bulabula...
there is in psplibc such as strlen, atexit functions.. ok?
also careful order by LDFLAGS command.. --> -lpsplibc -lc
-lpspuser -lpsputility etc..
psplibc must first order...
2) you have to command by one line... why?
it is bug..
if you command two line, would not set LDFLAGS environment...
configure:2623: psp-gcc conftest.c >&5 <-- error line..
if you command one line, well set LDFLAGS environment..
configure:2623: psp-gcc -L/cygdrive/c/pspsdk/psp/sdk/lib -lpsplibc -lc -lpspuser -lpsputility conftest.c >&5
understand?
ok..
Thank you for everybody...
because listen my poor english.. ^^ _________________ Korean Hacker... in psp2dev.org |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Oct 07, 2005 6:55 pm Post subject: Re: SDL Install Tip.. (error fix tip) |
|
|
| amesianx wrote: |
careful)
1) -lpsplibc <-- this is added by AmesianX..(hoho..) why?
when you compile SDL library, occur errors because psplibc..
|
No, this is wrong. -lpsplibc and -lc never go together. The instructions in README.PSP are correct; I just tested them again. Your problem is probably because you need to rebuild newlib (toolchain.sh -n).
| amesianx wrote: |
2) you have to command by one line... why?
it is bug..
if you command two line, would not set LDFLAGS environment...
if you command one line, well set LDFLAGS environment..
|
The backslash at the end tells the shell to treat it as a single line. But yes, if for some reason you are having problems with that, you can just put it all on one line. |
|
| Back to top |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Sat Oct 08, 2005 12:38 am Post subject: |
|
|
| or use export/setenv, but that would interfere with compiling other things |
|
| Back to top |
|
 |
amesianx
Joined: 07 Oct 2005 Posts: 3
|
Posted: Sat Oct 08, 2005 8:26 pm Post subject: ok.. my toolchain is windows version.. |
|
|
I do not use ps2dev toolchain...
I use windows version toolchain... (4.0.0.. devkit) _________________ Korean Hacker... in psp2dev.org |
|
| Back to top |
|
 |
|