| View previous topic :: View next topic |
| Author |
Message |
razorrifh
Joined: 04 Jun 2005 Posts: 23 Location: Penn State
|
Posted: Wed Mar 22, 2006 4:18 pm Post subject: library error (-losl) |
|
|
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 |
|
 |
choupette
Joined: 12 Oct 2005 Posts: 7
|
Posted: Wed Mar 22, 2006 6:20 pm Post subject: |
|
|
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 |
|
 |
razorrifh
Joined: 04 Jun 2005 Posts: 23 Location: Penn State
|
Posted: Thu Mar 23, 2006 4:12 pm Post subject: |
|
|
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 |
|
 |
|