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 

psplibraries problem

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



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Sat Apr 05, 2008 5:58 am    Post subject: psplibraries problem Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Apr 05, 2008 6:10 pm    Post subject: Reply with quote

Looks like your PSPDEV environment variable wasn't set.
Run libraries-sudo.sh instead of libraries.sh.
Back to top
View user's profile Send private message
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Sat Apr 05, 2008 10:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Sun Apr 06, 2008 1:34 am    Post subject: Reply with quote

freetype.
Back to top
View user's profile Send private message
DAanDASja



Joined: 14 Oct 2007
Posts: 17

PostPosted: Sun Apr 06, 2008 8:13 am    Post subject: Reply with quote

FreePlay wrote:
freetype.


Guess what he's trying to install the whole time -.-
Back to top
View user's profile Send private message
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Tue Apr 08, 2008 2:40 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 08, 2008 6:01 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Wed Apr 09, 2008 1:34 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Apr 09, 2008 4:18 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
floorball92



Joined: 05 Apr 2008
Posts: 30
Location: Germany -> Hessen -> Hanau

PostPosted: Wed Apr 09, 2008 11:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Apr 10, 2008 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
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