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 

Trying to compile OnScripter for the PSP - Freetype Error

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



Joined: 30 Sep 2007
Posts: 1

PostPosted: Sun Sep 30, 2007 1:32 pm    Post subject: Trying to compile OnScripter for the PSP - Freetype Error Reply with quote

Okay, I'm trying to compile onscripter (http://ogapee.at.infoseek.co.jp/onscripter.html) for the PSP, but, I'm stuck. I've been working most of the day trying to get it to compile, knocking down error message after error message as I set up psptoolchain and the required dependencies for onscripter on Mandriva One 2007 Spring Edition. But, now, I came to one I can't solve.

Code:

[root@localhost onscripter-20070826a]# make -f Makefile.PSP
Makefile.PSP:82: warning: overriding commands for target `clean'
Makefile.onscripter:42: warning: ignoring old commands for target `clean'
psp-gcc -oonscripter.elf onscripter.o DirectReader.o SarReader.o NsaReader.o ScriptHandler.o ScriptParser.o ScriptParser_command.o ONScripterLabel.o ONScripterLabel_command.o ONScripterLabel_text.o ONScripterLabel_effect.o ONScripterLabel_event.o ONScripterLabel_rmenu.o ONScripterLabel_animation.o ONScripterLabel_sound.o ONScripterLabel_file.o ONScripterLabel_file2.o ONScripterLabel_image.o AnimationInfo.o FontInfo.o DirtyRect.o resize_image.o sjis2utf16.o MadWrapper.o -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lpspnet_inet -lSDL_ttf -lSDL_image -lSDL_mixer -lSDL -lSDLmain -lfreetype -lbz2 -lm -ljpeg -lpng -lz -lmad -lvorbisidec -L/usr/local/pspdev/psp/sdk/lib -L/usr/local/pspdev/lib -lstdc++ -lpspsdk -lpspgu -lpspdebug -lpspdisplay -lpsphprm -lpspaudio -lpspge -lpspctrl -lc -lpspnet_inet -lpspuser -lpspkernel -lpsppower
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/bin/../lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/lib/libfreetype.a when searching for -lfreetype
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status
make: *** [onscripter.elf] Error 1


I've installed both freetype-2.3.5 normally as well as svn://svn.ps2dev.org/psp/trunk/freetype installed as explained in README.PSP, but, nothing works. I'm not sure at this junction what to do. I also tried copying the installation method from freetype to freetype-2.3.5 but...

Code:

[root@localhost freetype-2.3.5]# LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser"       ./configure --host psp --prefix=$(psp-config --psp-prefix)

FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    cc
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).

cd builds/unix; ./configure  "--host" "psp" "--prefix=/usr/local/pspdev/psp"
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `psp': machine `psp' not recognized
configure: error: /bin/sh ./config.sub psp failed
make: *** [setup] Error 1


Do I need a freetype2 version specifically designed for the PSP that's not available in the SVN? Or am I missing something obvious?

Thanks!
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