psplibraries problem

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

Moderators: cheriff, TyRaNiD

Post Reply
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

psplibraries problem

Post by floorball92 »

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
Image
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Looks like your PSPDEV environment variable wasn't set.
Run libraries-sudo.sh instead of libraries.sh.
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

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??
Image
FreePlay
Posts: 71
Joined: Wed Jan 04, 2006 6:53 pm
Location: Schenectady, New York, USA

Post by FreePlay »

freetype.
DAanDASja
Posts: 17
Joined: Sun Oct 14, 2007 8:58 am

Post by DAanDASja »

FreePlay wrote:freetype.
Guess what he's trying to install the whole time -.-
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

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

Post by J.F. »

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.
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

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

Post by J.F. »

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

export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin&#58;$PSPDEV/psp/bin&#58;$PSPSDK/bin"
export PATH="$PATH&#58;$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.
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

But where must i insert this?ß In the project?? In the build.mak and where in the file must I insert it??
Image
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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