| View previous topic :: View next topic |
| Author |
Message |
asphodeli
Joined: 29 Jun 2008 Posts: 20 Location: Singapore
|
Posted: Mon Oct 27, 2008 10:21 am Post subject: Where is sysconf and pspIrKeyb*, located? |
|
|
Hi all,
I'm having trouble compiling my app with a library, and I'm getting these errors:
| Code: |
/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. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Oct 28, 2008 2:00 am Post subject: Re: Where is sysconf and pspIrKeyb*, located? |
|
|
| asphodeli wrote: | Hi all,
I'm having trouble compiling my app with a library, and I'm getting these errors:
| Code: |
/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 | Quote: | | 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. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Oct 28, 2008 5:36 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Thu Nov 06, 2008 10:28 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
|
| Back to top |
|
 |
asphodeli
Joined: 29 Jun 2008 Posts: 20 Location: Singapore
|
Posted: Thu Nov 06, 2008 5:00 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
|