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 

library error (-losl)

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



Joined: 04 Jun 2005
Posts: 23
Location: Penn State

PostPosted: Wed Mar 22, 2006 4:18 pm    Post subject: library error (-losl) Reply with quote

hey, i'm new to console programming for the most part (played around with xbox for a bit but got bored). i'm having a bit of a time using the OldSchool Library (OSLib). i have it installed and such but when i compile the test application i get a long error that ends in this:
Quote:
../psp/bin/ld: cannot find -losl
collect2: ld returned 1 exit status


and here is my make file:
Quote:
TARGET = test
OBJS = test.o
YOURLIBS=

INCDIR =
CFLAGS = -G4 -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =

LIBS=$(STDLIBS)$(YOURLIBS)
LDFLAGS =

STDLIBS= -losl -lpng -lz \
-lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm


EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = OSL Sample

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


i dont know much about make/cygwin (or linux for that matter) but i'm assuming its a problem linking it because it cant find the appropriate library. any help would be appreciated. thanks. :)

ps, i would have searched google on this but there is no info on there for oslib yet (too new and noone's using it yet?), and im not even sure what the problem is in regards to the "-losl" error message so dunno what to search for. thanks again.
Back to top
View user's profile Send private message Visit poster's website
choupette



Joined: 12 Oct 2005
Posts: 7

PostPosted: Wed Mar 22, 2006 6:20 pm    Post subject: Reply with quote

if -losl is not find, it means gcc doesn't find libosl in the library path you gave it. note, that I didn't say you don't have libosl, I'm just saying that given the library path it is given, it didn't find it.

you should google or man gcc if you want further explanations as it's a very basic problem.
Back to top
View user's profile Send private message
razorrifh



Joined: 04 Jun 2005
Posts: 23
Location: Penn State

PostPosted: Thu Mar 23, 2006 4:12 pm    Post subject: Reply with quote

ok, thanks for your help. i'll try searchin for gcc info now. :)


edit (2 hours later, heh): ok just to let everyone know how i fixed it that might be as noobish as me...

the libosl installer script tried to copy the files here:
Quote:
C:\cygwin\usr\local\pspdev\lib


but they needed to be here:
Quote:
C:\cygwin\usr\local\pspdev\psp\sdk\lib
Back to top
View user's profile Send private message Visit poster's website
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