| View previous topic :: View next topic |
| Author |
Message |
Cuthroatdie
Joined: 18 Dec 2009 Posts: 10
|
Posted: Fri Dec 18, 2009 3:23 am Post subject: Freeciv PSP port ./configure error |
|
|
Hello. I'm trying to port freeciv to the PSP (about time!). I am using the latest stable source (2.1.10).
I run this when trying to compile:
| Code: | | CC=/usr/local/pspdev/bin/psp-gcc CXX=/usr/local/pspdev/bin/psp-g++ ./configure --target=psp |
but it comes up with the following error: | Code: |
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... /usr/local/pspdev/bin/psp-gcc
checking for C compiler default output file name...
configure: error: in `/home/peter/dev/freeciv-2.1.10':
configure: error: C compiler cannot create executables
See `config.log' for more details. |
Any ideas? |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Fri Dec 18, 2009 5:09 am Post subject: Re: Freeciv PSP port ./configure error |
|
|
| Cuthroatdie wrote: | Hello. I'm trying to port freeciv to the PSP (about time!). I am using the latest stable source (2.1.10).
I run this when trying to compile:
| Code: | | CC=/usr/local/pspdev/bin/psp-gcc CXX=/usr/local/pspdev/bin/psp-g++ ./configure --target=psp |
but it comes up with the following error: | Code: |
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... /usr/local/pspdev/bin/psp-gcc
checking for C compiler default output file name...
configure: error: in `/home/peter/dev/freeciv-2.1.10':
configure: error: C compiler cannot create executables
See `config.log' for more details. |
Any ideas? |
what about:
| Code: | CFLAGS="-G0" LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib" LIBS="-lc -lstdc++ -lpsplibc -lpspuser " ./configure --host=psp --prefix=$(psp-config --psp-prefix) ac_cv_lib_z_gzgets=yes --enable-client=sdl ac_cv_lib_SDL_image_IMG_Load=yes --disable-nls
|
_________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Cuthroatdie
Joined: 18 Dec 2009 Posts: 10
|
Posted: Fri Dec 18, 2009 7:58 am Post subject: |
|
|
Thanks for that, I managed to get somewhere by using this:
| Code: | | CC=/usr/local/pspdev/bin/psp-gcc CXX=/usr/local/pspdev/bin/psp-g++ CFLAGS="-G0" LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib" LIBS="-lc -lstdc++ -lpsplibc -lpspuser " ./configure --target=psp --host=i686-pc-linux-gnulibc1 --prefix=$(psp-config --psp-prefix) ac_cv_lib_z_gzgets=yes --enable-client=sdl ac_cv_lib_SDL_image_IMG_Load=yes --disable-nls |
(a mixture of both of the commands!)
I had to set the --host flag to my pc and --target to psp. Configure now goes further, but shows me
| Code: | | configure: error: Iconv is missing. You can get libiconv from http://gnu.org/, or try using --with-libiconv-prefix | (even with --disable-nls). So it seems I will have to get the libiconv library working with the psp compiler. Luckily this guy offers some help:
http://freeciv.wikia.com/wiki/User:Jdorje/crosscompile |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Fri Dec 18, 2009 9:47 pm Post subject: |
|
|
I rebuild psp newlib with iconv enabled. _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Cuthroatdie
Joined: 18 Dec 2009 Posts: 10
|
Posted: Fri Dec 18, 2009 10:29 pm Post subject: |
|
|
| Ok, but how do I do that? I can't find it on the svn. |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sat Dec 19, 2009 12:23 am Post subject: |
|
|
configure newlib with --enable-newlib-iconv option _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Cuthroatdie
Joined: 18 Dec 2009 Posts: 10
|
Posted: Sat Dec 19, 2009 12:43 am Post subject: |
|
|
| Where can I get newlib - It didn't seem to be on the svn |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sat Dec 19, 2009 8:12 am Post subject: |
|
|
just look inside the psptoolchain build script. _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Raiden
Joined: 14 Nov 2009 Posts: 10
|
|
| Back to top |
|
 |
Cuthroatdie
Joined: 18 Dec 2009 Posts: 10
|
Posted: Sun Dec 20, 2009 1:59 am Post subject: |
|
|
| Thanks people, i got configure to work. Now onto the makefile... |
|
| Back to top |
|
 |
|