Trouble with wlan sample

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

Moderators: cheriff, TyRaNiD

Post Reply
thun0r
Posts: 6
Joined: Thu Dec 21, 2006 6:03 am

Trouble with wlan sample

Post by thun0r »

Hello,

I'm trying to make the wlan sample but get the following message:

Code: Select all

$ make kxploit
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/
pspdev/psp/sdk/lib   main.o  -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk
-lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspus
er -lpspkernel -o wlan.elf
main.o: In function `main':
main.c:(.text+0x134): undefined reference to `sceWlanGetSwitchState'
main.c:(.text+0x150): undefined reference to `sceWlanDevIsPowerOn'
main.c:(.text+0x16c): undefined reference to `sceWlanGetEtherAddr'
main.c:(.text+0x1a4): undefined reference to `sceWlanGetSwitchState'
collect2: ld returned 1 exit status
make: *** [wlan.elf] Error 1
Can someone please let me know why and a fix for this please?

Thanks very much.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Use the Makefile supplied with the sample. It correctly includes -lpspwlan.
thun0r
Posts: 6
Joined: Thu Dec 21, 2006 6:03 am

Post by thun0r »

jimparis wrote:Use the Makefile supplied with the sample. It correctly includes -lpspwlan.
Thanks for the reply but I did use the makefile that was in the wlan folder.

Can someone try their's and let me know if it works and if so let me know and I can pm you my email so you can send the main c and the makefile ?

Could it be anything else ?
User avatar
harleyg
Posts: 123
Joined: Wed Oct 05, 2005 6:15 am

Post by harleyg »

How about no...?

Add:
LIBS = -lpspwlan
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

The makefile in the wlan sample folder has always contained -lpspwlan, so I'm not sure how yours could not:
http://svn.ps2dev.org/blame.php?repname ... =2126&sc=1
Anyway, yes, I tested it and what is currently in the pspsdk does compile.
Post Reply