HELP: Compiling a lib for the psp...

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
0xAVGP
Posts: 11
Joined: Sun Feb 05, 2006 3:28 am
Location: Burgwedel
Contact:

HELP: Compiling a lib for the psp...

Post by 0xAVGP »

Hello!

I've got the following problem: I wanna use a lib (openobex), which is platform-independent and configure;make;make install went good...now I've got a *.a file in /usr/local/pspdev/psp/lib ...and when I include it with:
I do think that I haven't installed the desired lib correctly for the psp...

how - in general- do I do this? I tried the configure/make/make install
I also tried the way to build the libMAD for the PSP...and I still get: "undefinde reference" for every function of the lib, I am calling.

Can anybody tell me how to fix that?

GreetZ AVGP
Last edited by 0xAVGP on Sat Nov 04, 2006 1:08 am, edited 1 time in total.
Theory is, when nothing works and everybody knows that it should...

Pactic is, when everything works and nobody knows why...
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Undefined reference to what?
User avatar
0xAVGP
Posts: 11
Joined: Sun Feb 05, 2006 3:28 am
Location: Burgwedel
Contact:

Post by 0xAVGP »

...to every function of the lib that I use in my Code...
Theory is, when nothing works and everybody knows that it should...

Pactic is, when everything works and nobody knows why...
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post by SamuraiX »

Sounds like your not linking properly. Did you specify -lnameoflib under LIBS?
f_bohmann
Posts: 16
Joined: Mon May 02, 2005 7:15 pm
Location: hamburg, germany

Post by f_bohmann »

are you sure that you actually compiled the lib for psp? and not for the host system that you use to compile?

f
User avatar
0xAVGP
Posts: 11
Joined: Sun Feb 05, 2006 3:28 am
Location: Burgwedel
Contact:

Post by 0xAVGP »

Well...how do I find that out...or how explicitely do u do it...?

I did it like I did for the libMad....

greetz AVGP
Theory is, when nothing works and everybody knows that it should...

Pactic is, when everything works and nobody knows why...
User avatar
0xAVGP
Posts: 11
Joined: Sun Feb 05, 2006 3:28 am
Location: Burgwedel
Contact:

Post by 0xAVGP »

Does nobody know ho to do it? ):

greetz avgp
Theory is, when nothing works and everybody knows that it should...

Pactic is, when everything works and nobody knows why...
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

If you're not going to give us any of the relevant info (the exact errors, the commands you're using to build the lib, the link lines you're using, makefiles, etc) then I would guess no, nobody's going to help you.
Post Reply