| View previous topic :: View next topic |
| Author |
Message |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Thu Apr 02, 2009 3:41 am Post subject: Freetype build error ubuntu |
|
|
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 |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Thu Apr 02, 2009 9:51 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Apr 02, 2009 10:14 am Post subject: |
|
|
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 |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Fri Apr 03, 2009 6:07 am Post subject: |
|
|
| 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 |
|
 |
adrenalinedj
Joined: 28 Jan 2009 Posts: 3
|
Posted: Fri Apr 03, 2009 6:42 pm Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Apr 03, 2009 7:11 pm Post subject: |
|
|
| 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 |
|
 |
adrenalinedj
Joined: 28 Jan 2009 Posts: 3
|
Posted: Fri Apr 03, 2009 7:15 pm Post subject: |
|
|
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 |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Fri Apr 03, 2009 8:53 pm Post subject: |
|
|
| 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 |
|
 |
|