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 

Freetype build error ubuntu

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



Joined: 20 Oct 2008
Posts: 355

PostPosted: Thu Apr 02, 2009 3:41 am    Post subject: Freetype build error ubuntu Reply with quote

i'm trying to install freetype from source on newly installed ubuntu that i installed psptoolchain on when i run this i get an error

Code:
~/downloads/psplibs/freetype$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --host psp --prefix=$(psp-config --psp-prefix)
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... /bin/bash: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one
make: *** [builds/unix/unix-def.mk] Error 1
Back to top
View user's profile Send private message MSN Messenger
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Thu Apr 02, 2009 9:51 am    Post subject: Reply with quote

I googled your problem up a bit and figured out that the problem you're having is because of a incompatible automake version on your system.

I can't tell you which version to use... but I suppose your version is too new and PSPSDK needs a older revision or something.

Sorry I can't give you more information about the matter.

Edit: Try executing "automake --add-missing" and retry. Hope that solves your problem.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Apr 02, 2009 10:14 am    Post subject: Reply with quote

The config.sub file needs to be patched with an entry for the PSP. Right after the ps2) entry, add this:

Code:
   psp)
      basic_machine=mipsallegrexel-psp
      os=-elf
      ;;


The stuff using configure in the ps2dev repo have been patched in this manner, but going "straight to the source" means you have to do this patch yourself.

After that, a common configure command would be like this:

Code:
CFLAGS="-G0" LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib"   LIBS="-lc -lstdc++ -lpsplibc -lpspuser"   ./configure --host=psp --disable-shared --disable-threads --prefix=$(psp-config --psp-prefix)
Back to top
View user's profile Send private message AIM Address
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri Apr 03, 2009 6:07 am    Post subject: Reply with quote

which config.sub i think there are many and i'm on ubuntu so would that be freetype/build/unix/config.sub
Back to top
View user's profile Send private message MSN Messenger
adrenalinedj



Joined: 28 Jan 2009
Posts: 3

PostPosted: Fri Apr 03, 2009 6:42 pm    Post subject: Reply with quote

yes i think...

I'm trying the trick and i post results when done...


EDIT: "psp)" section is already in config.sub....
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Apr 03, 2009 7:11 pm    Post subject: Reply with quote

adrenalinedj wrote:
yes i think...

I'm trying the trick and i post results when done...


EDIT: "psp)" section is already in config.sub....


As I said before, psp will be in "our" version of libraries. It's when you get the "real" library straight from the source that the psp stuff will all be missing. Many libs can be configured and compiled merely by adding the psp info, doing the configure as mentioned earlier, then making like normal. Some need much more patching, like SDL.

If you're just trying to make the standard libs, just checkout psplibraries and run the script. It'll checkout all the libraries in the psp repo, build them, and install them to the proper place in the pspdev toolchain.
Back to top
View user's profile Send private message AIM Address
adrenalinedj



Joined: 28 Jan 2009
Posts: 3

PostPosted: Fri Apr 03, 2009 7:15 pm    Post subject: Reply with quote

But with your trick, it's not possible to compile => config.guess is still missing.
The only way to make it is to run "automake --add-missing" in builds/unix and then run ./configure withe good params...
And that's ok for me..

J.F. wrote:
adrenalinedj wrote:
yes i think...

I'm trying the trick and i post results when done...


EDIT: "psp)" section is already in config.sub....


As I said before, psp will be in "our" version of libraries. It's when you get the "real" library straight from the source that the psp stuff will all be missing. Many libs can be configured and compiled merely by adding the psp info, doing the configure as mentioned earlier, then making like normal. Some need much more patching, like SDL.

If you're just trying to make the standard libs, just checkout psplibraries and run the script. It'll checkout all the libraries in the psp repo, build them, and install them to the proper place in the pspdev toolchain.
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri Apr 03, 2009 8:53 pm    Post subject: Reply with quote

nope all is wrong i got it to work by copying config.sub from the freetype/unix directory into the freetype/ directory because there was not one and the psp) misps thing was already there
Back to top
View user's profile Send private message MSN Messenger
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