Freetype build error ubuntu

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Freetype build error ubuntu

Post by coolkehon »

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: Select all

~/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
User avatar
Coldbird
Posts: 97
Joined: Thu Feb 08, 2007 7:22 am

Post by Coldbird »

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?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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

Code: Select all

	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: Select all

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)
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

which config.sub i think there are many and i'm on ubuntu so would that be freetype/build/unix/config.sub
adrenalinedj
Posts: 3
Joined: Wed Jan 28, 2009 5:06 am

Post by adrenalinedj »

yes i think...

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


EDIT: "psp)" section is already in config.sub....
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
adrenalinedj
Posts: 3
Joined: Wed Jan 28, 2009 5:06 am

Post by adrenalinedj »

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.
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

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
Post Reply