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 

Trouble with wlan sample

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



Joined: 21 Dec 2006
Posts: 6

PostPosted: Thu Jan 04, 2007 6:40 am    Post subject: Trouble with wlan sample Reply with quote

Hello,

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

Code:
$ 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.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Jan 04, 2007 8:55 am    Post subject: Reply with quote

Use the Makefile supplied with the sample. It correctly includes -lpspwlan.
Back to top
View user's profile Send private message
thun0r



Joined: 21 Dec 2006
Posts: 6

PostPosted: Thu Jan 04, 2007 6:15 pm    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Thu Jan 04, 2007 8:09 pm    Post subject: Reply with quote

How about no...?

Add:
LIBS = -lpspwlan
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Jan 05, 2007 7:43 am    Post subject: Reply with quote

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=psp&path=%2Ftrunk%2Fpspsdk%2Fsrc%2Fsamples%2Fwlan%2FMakefile.sample&rev=2126&sc=1
Anyway, yes, I tested it and what is currently in the pspsdk does compile.
Back to top
View user's profile Send private message
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