Where is sysconf and pspIrKeyb*, located?

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

Moderators: cheriff, TyRaNiD

Post Reply
asphodeli
Posts: 20
Joined: Sun Jun 29, 2008 2:44 pm
Location: Singapore

Where is sysconf and pspIrKeyb*, located?

Post by asphodeli »

Hi all,
I'm having trouble compiling my app with a library, and I'm getting these errors:

Code: Select all

/usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): In function `PSP_EventQuit':
/root/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:274: undefined reference to `pspIrKeybFinish'
/usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): In function `PSP_EventInit':
/root/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:247: undefined reference to `pspIrKeybInit'
/root/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:249: undefined reference to `pspIrKeybOutputMode'
/usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): In function `PSP_PumpEvents':
/root/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:112: undefined reference to `pspIrKeybReadinput'
collect2: ld returned 1 exit status
make: *** [HelloWorld.elf] Error 1
Also, I'm getting "undefined reference to 'sysconf'", which I understand is in unistd.h, but when I #include it in my app, it still throws me the error.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Re: Where is sysconf and pspIrKeyb*, located?

Post by jimparis »

asphodeli wrote:Hi all,
I'm having trouble compiling my app with a library, and I'm getting these errors:

Code: Select all

/usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/lib/libSDL.a(SDL_pspevents.o): In function `PSP_EventQuit':
/root/psplibraries/build/SDL/src/video/psp/SDL_pspevents.c:274: undefined reference to `pspIrKeybFinish'
You need -lpspirkeyb
Also, I'm getting "undefined reference to 'sysconf'", which I understand is in unistd.h, but when I #include it in my app, it still throws me the error.
The PSP doesn't have sysconf.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

The library pspirkeyb is in the repo, but it's pretty out of date. I posted a much newer version in a thread here, and there's an even newer version in the new version of pikey that is coming soon.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

THE very very latest version is found here:

http://piKey.Kloplop321.com/Release/PSPIRKeyB_Lib.zip

Since Harald can no longer be contacted, I'll update the lib for now.

This version has key repeats (adjusted in the "PSPIRKeyB.ini"), new drivers and software to code new drivers. A tutorial on how to do this will be next. (Maybe even software to write each key value in a file???)
Last edited by angelo on Fri Nov 07, 2008 3:34 am, edited 1 time in total.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

I think he meant to say, look at his new thread on the 0.0.5 version of pspirkeyb. :D

http://forums.ps2dev.org/viewtopic.php?t=11222
asphodeli
Posts: 20
Joined: Sun Jun 29, 2008 2:44 pm
Location: Singapore

Post by asphodeli »

odd, his post isn't displayed :) Anyway won't be using IR keyboards, just need to link to it cause the code (not done by me) needs it somehow
Post Reply