| View previous topic :: View next topic |
| Author |
Message |
floorball92
Joined: 05 Apr 2008 Posts: 30 Location: Germany -> Hessen -> Hanau
|
Posted: Sat Apr 05, 2008 5:58 am Post subject: psplibraries problem |
|
|
Hi,
i' ve got a Problem. I tryed top install the library package psplibraries and get an error at end of my installation. I' dont know, why and how to fix it. I posted the message of gcc http://rafb.net/p/GM3e9f44.txt but there wasn' t the whole message of gcc anymore, but maybe someone here helps this part of the message. Sorry for my bad Englisch ( i' m German ) and thanks for help.
Nice wishes, Floorball92 _________________
 |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sat Apr 05, 2008 6:10 pm Post subject: |
|
|
Looks like your PSPDEV environment variable wasn't set.
Run libraries-sudo.sh instead of libraries.sh. |
|
| Back to top |
|
 |
floorball92
Joined: 05 Apr 2008 Posts: 30 Location: Germany -> Hessen -> Hanau
|
Posted: Sat Apr 05, 2008 10:18 pm Post subject: |
|
|
this time this:
http://rafb.net/p/sffPcn35.txt
but other question, what kann I do, that this error doesen' t come in gcc??
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
390 -c -o main.o main.c
In file included from graphics.h:4,
from main.c:14:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/ft2build.h:56:38: er
ror: freetype/config/ftheader.h: No such file or directory
In file included from main.c:14:
graphics.h:5:10: error: #include expects "FILENAME" or <FILENAME>
In file included from main.c:14:
graphics.h:268: error: expected ')' before '*' token
graphics.h:278: error: expected ')' before '*' token
make: *** [main.o] Error 1
Which lib did I have to install?? _________________
 |
|
| Back to top |
|
 |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Sun Apr 06, 2008 1:34 am Post subject: |
|
|
| freetype. |
|
| Back to top |
|
 |
DAanDASja
Joined: 14 Oct 2007 Posts: 17
|
Posted: Sun Apr 06, 2008 8:13 am Post subject: |
|
|
| FreePlay wrote: | | freetype. |
Guess what he's trying to install the whole time -.- |
|
| Back to top |
|
 |
floorball92
Joined: 05 Apr 2008 Posts: 30 Location: Germany -> Hessen -> Hanau
|
Posted: Tue Apr 08, 2008 2:40 am Post subject: |
|
|
I don' t get it work. Can someone give me an easy way to install freetype alone. I just searched in google, but there are only sides about the php freetype, and that sucks, because i would have to search in hundreds of sides for this tut for psp or something like this. Thanks a lot. _________________
 |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Apr 08, 2008 6:01 am Post subject: |
|
|
| The EASY way to install it is with the library.sh script. If you can't get that to work, I doubt you'll be able to get freetype on its own installed. To install any of the PSP libraries on its own, read the "README.PSP" file in the library directory (DUH!). If you can't get it installed by following the README.PSP, you should probably be trying to install one of the pre-built toolchains instead of trying to build it yourself. |
|
| Back to top |
|
 |
floorball92
Joined: 05 Apr 2008 Posts: 30 Location: Germany -> Hessen -> Hanau
|
Posted: Wed Apr 09, 2008 1:34 am Post subject: |
|
|
damn, I' ve installed freetype single, it work correctly but when i compilled my source code, i get the same error like at the beginn of the page. I don' t know, why, it must be correctly installed. _________________
 |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Apr 09, 2008 4:18 am Post subject: |
|
|
Make sure you set all the exports before trying to compile/install this stuff or it may not go where it needs to be. In linux, the exports are
| Code: | export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"
export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig"
|
The last export is VITAL for certain libraries like freetype or ogg since they use pkg_config, and without a path, god only knows where it puts the stuff it needs. In Windows, you still have the environment variables, but you set them a little differently. See one of the hundreds of threads on setting up the toolchain in Windows for details. |
|
| Back to top |
|
 |
floorball92
Joined: 05 Apr 2008 Posts: 30 Location: Germany -> Hessen -> Hanau
|
Posted: Wed Apr 09, 2008 11:16 pm Post subject: |
|
|
But where must i insert this?ß In the project?? In the build.mak and where in the file must I insert it?? _________________
 |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Apr 10, 2008 6:06 am Post subject: |
|
|
| The easiest place is to do that in the shell before you make/make install the project/library/whatever. For a more permanent way of setting the environment variables, you have to consult a help page for the specific OS you're using. |
|
| Back to top |
|
 |
|