¡Oh no! ¿Dónde está el JavaScript? El navegador Web no tiene JavaScript activado o no es compatible con JavaScript. Active JavaScript en su explorador Web para ver correctamente este sitio Web o actualizar a un navegador Web que admita JavaScript.
Sabías que...
Sega vendió casi doce millones de unidades Dreamcast en todo el planeta.

Compiling bero`s duke3d

Última actualización en 10 year hace
VasiliyRSVasiliyRSMiembro Júnior
Publicado 14 year hace
Hola , i have a troube with compiling duke3d for dc by bero .
I have changed make file for using it with latest kos version but still getting this error -



$ cd duke3d/source/buildengine

********@********* /usr/local/dc/kos/kos/duke3d/source/buildengine
$ make -f makefile.dc
gcc -o build -g -L/usr/local/dc/kos/kos/addons/lib/dreamcast -lSDL build.o bstub
.o engine.o cache1d.o sdl_driver.o unix_compat.o a.o pragmas.o
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: skipping in
compatible /usr/local/dc/kos/kos/addons/lib/dreamcast/libSDL.a when searching fo
r -lSDL
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: skipping in
compatible /usr/local/dc/kos/kos/addons/lib/dreamcast/libSDL.a when searching fo
r -lSDL
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: skipping in
compatible /usr/local/dc/kos/kos/addons/lib/dreamcast/libSDL.a when searching fo
r -lSDL
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
 -lSDL
collect2: ld returned 1 exit status
make: *** [build] Error 1



How to fix it ? ...
Editado por VasiliyRS en 01-08-2010 18:03, 14 year hace
IndiketIndiketAdministrador
Publicado 14 year hace
Seems that the SDL library is not binary compatible with your code. Please, could you post your Makefile?
GuaripoloGuaripoloAdministrador
Publicado 14 year hace
as far as i know -if i remember right-, bero's ports were hard to be compiled with standard dc libraries. Seems that he used custom libs.
VasiliyRSVasiliyRSMiembro Júnior
Publicado 14 year hace
Here`s makefile http://pastebin.com/USR4U2g3
i dont understand where is error ...
this is makefile from buildengine folder , another ones is in dc folder (compiled right) and in root .
http://pastebin.com/u8UAB9DY
Editado por VasiliyRS en 01-08-2010 22:38, 14 year hace
IndiketIndiketAdministrador
Publicado 10 year hace
Bump the post! hahaha :)

Well, recently I found with the same situation for another lib. This error happens when you try to use a library that has not been compiled / assembled with your sh-elf (ld) / sh-as.

Ie. I used arm-eabi-gcc / arm-eabi-as to compile a MP3 library. Compilation went fine, but then at linking stage of the program, sh-elf (ld) does not like it!!
VasiliyRSVasiliyRSMiembro Júnior
Publicado 10 year hace
Have you found a solution of this problem?
IndiketIndiketAdministrador
Publicado 10 year hace
No really, seems you can't link an sh program with a arm-eabi one hehe. At least, not on a easy way.

Do this please: at terminal go to the folder of the SDL.a lib and paste here the output of this command:

>> readelf -h libSDL.a
puede ver todos los hilos de discusión en este foro.
puede iniciar un nuevo hilo de discusión en este foro.
no puede responder en este hilo de discusión.
no puede empezar en una encuesta en este foro.
puede cargar archivos adjuntos en este foro.
no puede descargar archivos adjuntos en este foro.
Afiliados
SEGA Saturno - Saturn, SEGA y Videojuegos