OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Compiling Sdl
merli
post Dec 29 2005, 04:00 AM
Post #1





Group: Members
Posts: 227
Joined: 27-April 05
Member No.: 7,008



Hello

I try to compile SDL on Zaurus using devimg. Everything seems to be OK except when I try to compile actual application I get foloowing messages

/home/QtPalmtop/lib/libSDL.a(SDL_audio.o): In function `SDL_RunAudio':
/home/userdata/zx/SDL-1.2.9/src/audio/SDL_audio.c:152: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_audio.o): In function `SDL_LockAudio_Default':
/home/userdata/zx/SDL-1.2.9/src/audio/SDL_audio.c:257: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_audio.o): In function `SDL_UnlockAudio_Default':
/home/userdata/zx/SDL-1.2.9/src/audio/SDL_audio.c:265: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_audio.o): In function `SDL_RunAudio':
/home/userdata/zx/SDL-1.2.9/src/audio/SDL_audio.c:125: undefined reference to `DISKAUD_bootstrap'
/home/QtPalmtop/lib/libSDL.a(SDL_sysvideo.o): In function `QT_CreateDevice':
/home/userdata/zx/SDL-1.2.9/src/video/qtopia/SDL_sysvideo.cc:149: undefined reference to `QT_InitOSKeymap'
/home/userdata/zx/SDL-1.2.9/src/video/qtopia/SDL_sysvideo.cc:149: undefined reference to `QT_PumpEvents'
/home/QtPalmtop/lib/libSDL.a(SDL_events.o): In function `SDL_Lock_EventThread':
/home/userdata/zx/SDL-1.2.9/src/events/SDL_events.c:77: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_events.o): In function `SDL_Unlock_EventThread':
/home/userdata/zx/SDL-1.2.9/src/events/SDL_events.c:87: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_events.o): In function `SDL_GobbleEvents':
/home/userdata/zx/SDL-1.2.9/src/events/SDL_events.c:94: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_thread.o): In function `SDL_GetErrBuf':
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:171: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_thread.o): In function `SDL_RunThread':
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:203: undefined reference to `SDL_SYS_SetupThread'
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:207: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_thread.o): In function `SDL_CreateThread':
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:257: undefined reference to `SDL_SYS_CreateThread'
/home/QtPalmtop/lib/libSDL.a(SDL_thread.o): In function `SDL_WaitThread':
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:277: undefined reference to `SDL_SYS_WaitThread'
/home/QtPalmtop/lib/libSDL.a(SDL_thread.o): In function `SDL_GetThreadID':
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:293: undefined reference to `SDL_ThreadID'
/home/QtPalmtop/lib/libSDL.a(SDL_thread.o): In function `SDL_KillThread':
/home/userdata/zx/SDL-1.2.9/src/thread/SDL_thread.c:301: undefined reference to `SDL_SYS_KillThread'
collect2: ld returned 1 exit status

I need libSDLmain.a, libSDL.la, libSDL.a to compile application.

Can someone point me to right direction? What am I doing wrong?
Thank you very much
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
matthis
post Apr 20 2006, 06:18 PM
Post #2





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Thank you for making this available, could you please indicate where the different files have to be place in order to compile apps which require them? Can they just be place in any of the "lib" folders?
Go to the top of the page
 
+Quote Post
melee
post Jul 6 2006, 07:34 AM
Post #3





Group: Members
Posts: 69
Joined: 17-March 05
Member No.: 6,651



QUOTE(matthis @ Apr 21 2006, 03:18 AM)
Thank you for making this available, could you please indicate where the different files have to be place in order to compile apps which require them? Can they just be place in any of the "lib" folders?
*

Sorry, haven't checked this forum for ages.

If you have not already found out -

The shared libraries need to be in whatever path is searched for libraries under your setup or specified in the makefile eg
(In Makefile)
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -lqpe -ljpeg -lqte

so place libSDL_mixer.so in $(QTDIR)/lib and amend the line to

LIBS = $(SUBLIBS) -L$(QTDIR)/lib -lqpe -ljpeg -lqte -lSDL_mixer or whatever is required.

If you want to include a static library such as libSDLmain.a I have always found it easier to copy it to the same directory you are building from and modify the Makefile line to

LIBS = $(SUBLIBS) -L$(QTDIR)/lib -lqpe -ljpeg -lqte -lSDL_mixer ./libSDLmain.a

regards

Melee
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th April 2014 - 03:41 PM