Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Problem about the ported scummVM sources

Any and all A320 homebrew topics

Moderator: Moderators

Problem about the ported scummVM sources

Postby vimrc on Mon Aug 10, 2009 9:10 pm

Hello everybody,

Currently I am trying to compile the ported scummVM sources, I use the latest Dingux toolchain released by BooBoo. But I am stuck by the last step. I got the following error message:

Code: Select all
mipsel-linux-g++  -static -lm  backends/platform/dingoo/dingoo.o backends/platform/dingoo/../sdl/events.o backends/platform/dingoo/../sdl/graphics.o backends/platform/dingoo/../sdl/hardwarekeys.o backends/platform/dingoo/../sdl/sdl.o base/libbase.a engines/scumm/libscumm.a engines/agi/libagi.a engines/agos/libagos.a engines/cine/libcine.a engines/drascula/libdrascula.a engines/gob/libgob.a engines/groovie/libgroovie.a engines/kyra/libkyra.a engines/lure/liblure.a engines/made/libmade.a engines/parallaction/libparallaction.a engines/queen/libqueen.a engines/saga/libsaga.a engines/sky/libsky.a engines/sword1/libsword1.a engines/sword2/libsword2.a engines/touche/libtouche.a engines/tucker/libtucker.a engines/libengines.a gui/libgui.a graphics/libgraphics.a sound/libsound.a backends/libbackends.a common/libcommon.a sound/softsynth/mt32/libmt32.a   -lvorbisfile -lvorbis -logg   -lFLAC -logg  -lmad  -lz -L/usr/lib -lSDL -o scummvm
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libvorbisfile.a when searching for -lvorbisfile
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libvorbis.a when searching for -lvorbis
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libogg.a when searching for -logg
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libFLAC.a when searching for -lFLAC
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libogg.a when searching for -logg
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libmad.a when searching for -lmad
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_systhread.o): In function `SDL_SYS_KillThread':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:113: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_systhread.o): In function `SDL_SYS_WaitThread':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:107: undefined reference to `pthread_join'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_systhread.o): In function `SDL_ThreadID':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:102: undefined reference to `pthread_self'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_systhread.o): In function `SDL_SYS_SetupThread':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:89: undefined reference to `pthread_sigmask'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:94: undefined reference to `pthread_setcanceltype'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_systhread.o): In function `SDL_SYS_CreateThread':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:57: undefined reference to `pthread_attr_init'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:61: undefined reference to `pthread_attr_setdetachstate'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:64: undefined reference to `pthread_create'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_systhread.o): In function `RunThread':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_systhread.c:48: undefined reference to `pthread_exit'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_syssem.o): In function `SDL_SemPost':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_syssem.c:149: undefined reference to `sem_post'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_syssem.o): In function `SDL_SemValue':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_syssem.c:132: undefined reference to `sem_getvalue'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_syssem.o): In function `SDL_SemWait':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_syssem.c:90: undefined reference to `sem_wait'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_syssem.o): In function `SDL_SemTryWait':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_syssem.c:75: undefined reference to `sem_trywait'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_syssem.o): In function `SDL_DestroySemaphore':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_syssem.c:61: undefined reference to `sem_destroy'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_syssem.o): In function `SDL_CreateSemaphore':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_syssem.c:47: undefined reference to `sem_init'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_sysmutex.o): In function `SDL_mutexV':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_sysmutex.c:146: undefined reference to `pthread_mutex_unlock'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_sysmutex.o): In function `SDL_mutexP':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_sysmutex.c:108: undefined reference to `pthread_mutex_lock'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_sysmutex.o): In function `SDL_DestroyMutex':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_sysmutex.c:71: undefined reference to `pthread_mutex_destroy'
/opt/mipsel-linux-uclibc/usr/lib/libSDL.a(SDL_sysmutex.o): In function `SDL_CreateMutex':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_sysmutex.c:49: undefined reference to `pthread_mutexattr_init'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_sysmutex.c:51: undefined reference to `pthread_mutexattr_settype'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/build_mipsel/SDL-1.2.13/./src/thread/pthread/SDL_sysmutex.c:57: undefined reference to `pthread_mutex_init'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(guard.o):/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libstdc++-v3/libsupc++/guard.cc:382: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(guard.o):/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libstdc++-v3/libsupc++/guard.cc:343: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(guard.o):/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libstdc++-v3/libsupc++/guard.cc:266: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(eh_globals.o): In function `__eh_globals_init':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libstdc++-v3/libsupc++/eh_globals.cc:103: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(eh_alloc.o): In function `__mutex':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3-final/mipsel-linux-uclibc/libstdc++-v3/include/ext/concurrence.h:155: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(eh_alloc.o):/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3-final/mipsel-linux-uclibc/libstdc++-v3/include/ext/concurrence.h:170: more undefined references to `pthread_cancel' follow
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(eh_alloc.o): In function `__gthread_mutex_lock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/gthr-default.h:686: undefined reference to `pthread_mutex_lock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::unlock()':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3-final/mipsel-linux-uclibc/libstdc++-v3/include/ext/concurrence.h:181: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/../../../../mipsel-linux-uclibc/lib/libstdc++.a(eh_alloc.o): In function `__gthread_mutex_unlock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/gthr-default.h:704: undefined reference to `pthread_mutex_unlock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2.o): In function `__gthread_once':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:652: undefined reference to `pthread_cancel'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_lock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:685: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:686: undefined reference to `pthread_mutex_lock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_unlock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:703: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:704: undefined reference to `pthread_mutex_unlock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_lock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:685: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:686: undefined reference to `pthread_mutex_lock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_unlock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:703: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:704: undefined reference to `pthread_mutex_unlock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_lock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:685: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:686: undefined reference to `pthread_mutex_lock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_unlock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:703: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:704: undefined reference to `pthread_mutex_unlock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_lock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:685: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:686: undefined reference to `pthread_mutex_lock'
/opt/mipsel-linux-uclibc/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.3.3/libgcc_eh.a(unwind-dw2-fde-glibc.o): In function `__gthread_mutex_unlock':
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:703: undefined reference to `pthread_cancel'
/home/iggarpe/A320/dev/dingoo-linux/buildroot-2009.05/toolchain_build_mipsel/gcc-4.3.3/libgcc/../gcc/gthr-posix.h:704: undefined reference to `pthread_mutex_unlock'
collect2: ld returned 1 exit status
make: *** [scummvm] Error 1


Could you help me to solve this problem? Thanks in advance~
vimrc
 
Posts: 28
Joined: Mon Jul 13, 2009 6:49 pm
Location: Delft, NL

Re: Problem about the ported scummVM sources

Postby ezelkow1 on Mon Aug 10, 2009 9:12 pm

check whatever library paths you have setup for this compilation, its looking at the vorbis library in your /usr/lib, not the one from /opt/dingoo-toolchain-whatever/usr/lib so its trying to link to x86 libs not the dingoo ones
ezelkow1
 
Posts: 84
Joined: Tue Apr 28, 2009 11:58 pm

Re: Problem about the ported scummVM sources

Postby vimrc on Tue Aug 11, 2009 1:49 pm

yep, u r right. I added the "prefix", then it worked! Thanks a lot! (:
vimrc
 
Posts: 28
Joined: Mon Jul 13, 2009 6:49 pm
Location: Delft, NL


Return to Homebrew

Who is online

Users browsing this forum: No registered users and 2 guests