forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Freeciv PSP port ./configure error

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Cuthroatdie



Joined: 18 Dec 2009
Posts: 10

PostPosted: Fri Dec 18, 2009 3:23 am    Post subject: Freeciv PSP port ./configure error Reply with quote

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
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Fri Dec 18, 2009 5:09 am    Post subject: Re: Freeciv PSP port ./configure error Reply with quote

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
View user's profile Send private message
Cuthroatdie



Joined: 18 Dec 2009
Posts: 10

PostPosted: Fri Dec 18, 2009 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Fri Dec 18, 2009 9:47 pm    Post subject: Reply with quote

I rebuild psp newlib with iconv enabled.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Cuthroatdie



Joined: 18 Dec 2009
Posts: 10

PostPosted: Fri Dec 18, 2009 10:29 pm    Post subject: Reply with quote

Ok, but how do I do that? I can't find it on the svn.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Dec 19, 2009 12:23 am    Post subject: Reply with quote

configure newlib with --enable-newlib-iconv option
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Cuthroatdie



Joined: 18 Dec 2009
Posts: 10

PostPosted: Sat Dec 19, 2009 12:43 am    Post subject: Reply with quote

Where can I get newlib - It didn't seem to be on the svn
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Dec 19, 2009 8:12 am    Post subject: Reply with quote

just look inside the psptoolchain build script.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Raiden



Joined: 14 Nov 2009
Posts: 10

PostPosted: Sat Dec 19, 2009 8:28 am    Post subject: Reply with quote

Yeah, but it seems like the server mentioned in the psptoolchain build script is down. So instead of it use this adress: http://ftp.eenet.ee/pub/FreeBSD/distfiles/newlib-1.16.0.tar.gz
Back to top
View user's profile Send private message
Cuthroatdie



Joined: 18 Dec 2009
Posts: 10

PostPosted: Sun Dec 20, 2009 1:59 am    Post subject: Reply with quote

Thanks people, i got configure to work. Now onto the makefile...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group