ZEsarUX en OpenBSD

Software para o relacionado con el core ZX Spectrum / Software for or related to the ZX Spectrum core
Avatar de Usuario
chernandezba
Mensajes: 841
Registrado: 02 Oct 2015, 23:35

Re: ZEsarUX en OpenBSD

Mensaje por chernandezba » 16 Sep 2017, 10:37

Y existe el directorio /usr/local/lib/SDL ?
Me puedes hacer un ls de los dos directorios?
Gracias
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux

Avatar de Usuario
mapache
Mensajes: 272
Registrado: 15 Dic 2016, 22:24

Re: ZEsarUX en OpenBSD

Mensaje por mapache » 16 Sep 2017, 11:33

Tengo SDL y SDL2 (se pueden tener varias versiones a la vez al menos en otras librerías y programas), /usr/local/lib/SDL no existe, los archivos están aquí:

iron:/usr/local/lib{17} ls -l *SDL*
-rw-r--r-- 1 root bin 784820 Sep 10 00:44 libSDL.a
-rw-r--r-- 1 root bin 783 Sep 10 00:44 libSDL.la
-rw-r--r-- 1 root bin 468728 Sep 10 00:44 libSDL.so.8.0
-rw-r--r-- 1 root bin 1911046 Sep 10 01:30 libSDL2.a
-rw-r--r-- 1 root bin 761 Sep 10 01:30 libSDL2.la
-rw-r--r-- 1 root bin 1259482 Sep 10 01:30 libSDL2.so.0.3
-rw-r--r-- 1 root bin 324738 Sep 10 10:23 libSDL2_mixer.a
-rw-r--r-- 1 root bin 1037 Sep 10 10:23 libSDL2_mixer.la
-rw-r--r-- 1 root bin 205671 Sep 10 10:23 libSDL2_mixer.so.0.0
-rw-r--r-- 1 root bin 274218 Sep 10 01:30 libSDL2_test.a
-rw-r--r-- 1 root bin 996 Sep 10 01:30 libSDL2main.a
-rw-r--r-- 1 root bin 153374 Sep 13 07:13 libSDL_gfx.a
-rw-r--r-- 1 root bin 848 Sep 13 07:13 libSDL_gfx.la
-rw-r--r-- 1 root bin 136855 Sep 13 07:13 libSDL_gfx.so.15.0
-rw-r--r-- 1 root bin 95388 Sep 10 01:01 libSDL_image.a
-rw-r--r-- 1 root bin 969 Sep 10 01:01 libSDL_image.la
-rw-r--r-- 1 root bin 67782 Sep 10 01:01 libSDL_image.so.3.1
-rw-r--r-- 1 root bin 21644 Sep 10 04:32 libSDL_net.a
-rw-r--r-- 1 root bin 845 Sep 10 04:32 libSDL_net.la
-rw-r--r-- 1 root bin 22407 Sep 10 04:32 libSDL_net.so.2.0
-rw-r--r-- 1 root bin 335174 Sep 10 14:08 libSDL_sound.a
-rw-r--r-- 1 root bin 1054 Sep 10 14:08 libSDL_sound.la
-rw-r--r-- 1 root bin 206737 Sep 10 14:08 libSDL_sound.so.2.0
-rw-r--r-- 1 root bin 28694 Sep 10 01:00 libSDL_ttf.a
-rw-r--r-- 1 root bin 860 Sep 10 01:00 libSDL_ttf.la
-rw-r--r-- 1 root bin 35198 Sep 10 01:00 libSDL_ttf.so.8.1
-rw-r--r-- 1 root bin 674 Sep 10 00:44 libSDLmain.a
-rw-r--r-- 1 root bin 766 Sep 10 00:44 libSDLmain.la

iron:/usr/local/include/SDL{20} ls -l
total 1432
-rw-r--r-- 1 root bin 3233 Sep 10 00:44 SDL.h
-rw-r--r-- 1 root bin 1933 Sep 10 00:44 SDL_active.h
-rw-r--r-- 1 root bin 11215 Sep 10 00:44 SDL_audio.h
-rw-r--r-- 1 root bin 986 Sep 10 00:44 SDL_byteorder.h
-rw-r--r-- 1 root bin 6048 Sep 10 00:44 SDL_cdrom.h
-rw-r--r-- 1 root bin 9172 Sep 10 00:44 SDL_config.h
-rw-r--r-- 1 root bin 2221 Sep 10 00:44 SDL_cpuinfo.h
-rw-r--r-- 1 root bin 6055 Sep 10 00:44 SDL_endian.h
-rw-r--r-- 1 root bin 1874 Sep 10 00:44 SDL_error.h
-rw-r--r-- 1 root bin 13041 Sep 10 00:44 SDL_events.h
-rw-r--r-- 1 root bin 2607 Sep 13 07:13 SDL_framerate.h
-rw-r--r-- 1 root bin 979 Sep 10 00:44 SDL_getenv.h
-rw-r--r-- 1 root bin 4510 Sep 13 07:13 SDL_gfxBlitFunc.h
-rw-r--r-- 1 root bin 10961 Sep 13 07:13 SDL_gfxPrimitives.h
-rw-r--r-- 1 root bin 55909 Sep 13 07:13 SDL_gfxPrimitives_font.h
-rw-r--r-- 1 root bin 5513 Sep 10 01:01 SDL_image.h
-rw-r--r-- 1 root bin 10318 Sep 13 07:13 SDL_imageFilter.h
-rw-r--r-- 1 root bin 5532 Sep 10 00:44 SDL_joystick.h
-rw-r--r-- 1 root bin 4098 Sep 10 00:44 SDL_keyboard.h
-rw-r--r-- 1 root bin 7492 Sep 10 00:44 SDL_keysym.h
-rw-r--r-- 1 root bin 2739 Sep 10 00:44 SDL_loadso.h
-rw-r--r-- 1 root bin 2866 Sep 10 00:44 SDL_main.h
-rw-r--r-- 1 root bin 4754 Sep 10 00:44 SDL_mouse.h
-rw-r--r-- 1 root bin 5860 Sep 10 00:44 SDL_mutex.h
-rw-r--r-- 1 root bin 183 Sep 10 00:44 SDL_name.h
-rw-r--r-- 1 root bin 17277 Sep 10 04:32 SDL_net.h
-rw-r--r-- 1 root bin 336710 Sep 10 00:44 SDL_opengl.h
-rw-r--r-- 1 root bin 2708 Sep 10 00:44 SDL_platform.h
-rw-r--r-- 1 root bin 2009 Sep 10 00:44 SDL_quit.h
-rw-r--r-- 1 root bin 2960 Sep 13 07:13 SDL_rotozoom.h
-rw-r--r-- 1 root bin 4958 Sep 10 00:44 SDL_rwops.h
-rw-r--r-- 1 root bin 25853 Sep 10 14:08 SDL_sound.h
-rw-r--r-- 1 root bin 16473 Sep 10 00:44 SDL_stdinc.h
-rw-r--r-- 1 root bin 6319 Sep 10 00:44 SDL_syswm.h
-rw-r--r-- 1 root bin 4242 Sep 10 00:44 SDL_thread.h
-rw-r--r-- 1 root bin 4527 Sep 10 00:44 SDL_timer.h
-rw-r--r-- 1 root bin 10711 Sep 10 01:00 SDL_ttf.h
-rw-r--r-- 1 root bin 979 Sep 10 00:44 SDL_types.h
-rw-r--r-- 1 root bin 2637 Sep 10 00:44 SDL_version.h
-rw-r--r-- 1 root bin 38018 Sep 10 00:44 SDL_video.h
-rw-r--r-- 1 root bin 5230 Sep 10 00:44 begin_code.h
-rw-r--r-- 1 root bin 1482 Sep 10 00:44 close_code.h

tengo estos paquetes de sdl instalados:

sdl-1.2.15p7 cross-platform multimedia library
sdl-gfx-2.0.25p1 primitives drawing/other support functions for SDL
sdl-image-1.2.12p3 SDL image library
sdl-net-1.2.8p3 SDL cross-platform networking library
sdl-sound-1.0.3p3 library that handles the decoding of sound file formats
sdl-ttf-2.0.11p2 SDL TrueType fonts library

He instalado sdl-mixer pero sigue sin detectar SDL al ejecutar configure... yo creo que es algo relativo a que no pilla bien el directorio donde se encuentran las librerías o los includes.

Avatar de Usuario
mapache
Mensajes: 272
Registrado: 15 Dic 2016, 22:24

Re: ZEsarUX en OpenBSD

Mensaje por mapache » 16 Sep 2017, 11:34

Tengo SDL y SDL2 (se pueden tener varias versiones a la vez al menos en otras librerías y programas), /usr/local/lib/SDL no existe, los archivos están aquí:

iron:/usr/local/lib{17} ls -l *SDL*
-rw-r--r-- 1 root bin 784820 Sep 10 00:44 libSDL.a
-rw-r--r-- 1 root bin 783 Sep 10 00:44 libSDL.la
-rw-r--r-- 1 root bin 468728 Sep 10 00:44 libSDL.so.8.0
-rw-r--r-- 1 root bin 1911046 Sep 10 01:30 libSDL2.a
-rw-r--r-- 1 root bin 761 Sep 10 01:30 libSDL2.la
-rw-r--r-- 1 root bin 1259482 Sep 10 01:30 libSDL2.so.0.3
-rw-r--r-- 1 root bin 324738 Sep 10 10:23 libSDL2_mixer.a
-rw-r--r-- 1 root bin 1037 Sep 10 10:23 libSDL2_mixer.la
-rw-r--r-- 1 root bin 205671 Sep 10 10:23 libSDL2_mixer.so.0.0
-rw-r--r-- 1 root bin 274218 Sep 10 01:30 libSDL2_test.a
-rw-r--r-- 1 root bin 996 Sep 10 01:30 libSDL2main.a
-rw-r--r-- 1 root bin 153374 Sep 13 07:13 libSDL_gfx.a
-rw-r--r-- 1 root bin 848 Sep 13 07:13 libSDL_gfx.la
-rw-r--r-- 1 root bin 136855 Sep 13 07:13 libSDL_gfx.so.15.0
-rw-r--r-- 1 root bin 95388 Sep 10 01:01 libSDL_image.a
-rw-r--r-- 1 root bin 969 Sep 10 01:01 libSDL_image.la
-rw-r--r-- 1 root bin 67782 Sep 10 01:01 libSDL_image.so.3.1
-rw-r--r-- 1 root bin 21644 Sep 10 04:32 libSDL_net.a
-rw-r--r-- 1 root bin 845 Sep 10 04:32 libSDL_net.la
-rw-r--r-- 1 root bin 22407 Sep 10 04:32 libSDL_net.so.2.0
-rw-r--r-- 1 root bin 335174 Sep 10 14:08 libSDL_sound.a
-rw-r--r-- 1 root bin 1054 Sep 10 14:08 libSDL_sound.la
-rw-r--r-- 1 root bin 206737 Sep 10 14:08 libSDL_sound.so.2.0
-rw-r--r-- 1 root bin 28694 Sep 10 01:00 libSDL_ttf.a
-rw-r--r-- 1 root bin 860 Sep 10 01:00 libSDL_ttf.la
-rw-r--r-- 1 root bin 35198 Sep 10 01:00 libSDL_ttf.so.8.1
-rw-r--r-- 1 root bin 674 Sep 10 00:44 libSDLmain.a
-rw-r--r-- 1 root bin 766 Sep 10 00:44 libSDLmain.la

pongo includes en el siguiente mensaje por límite de tamaño de mensaje.

tengo estos paquetes de sdl instalados:

sdl-1.2.15p7 cross-platform multimedia library
sdl-gfx-2.0.25p1 primitives drawing/other support functions for SDL
sdl-image-1.2.12p3 SDL image library
sdl-net-1.2.8p3 SDL cross-platform networking library
sdl-sound-1.0.3p3 library that handles the decoding of sound file formats
sdl-ttf-2.0.11p2 SDL TrueType fonts library

He instalado sdl-mixer pero sigue sin detectar SDL al ejecutar configure... yo creo que es algo relativo a que no pilla bien el directorio donde se encuentran las librerías o los includes.

Avatar de Usuario
mapache
Mensajes: 272
Registrado: 15 Dic 2016, 22:24

Re: ZEsarUX en OpenBSD

Mensaje por mapache » 16 Sep 2017, 11:35

Tengo SDL y SDL2 (se pueden tener varias versiones a la vez al menos en otras librerías y programas), /usr/local/lib/SDL no existe, los archivos están aquí: https://pastebin.com/jjAbHhiS

Yo creo que es algo relativo a que no pilla bien el directorio donde se encuentran las librerías o los includes.

Avatar de Usuario
chernandezba
Mensajes: 841
Registrado: 02 Oct 2015, 23:35

Re: ZEsarUX en OpenBSD

Mensaje por chernandezba » 17 Sep 2017, 10:33

Es normal que no te los encuentre, los busca en las rutas típicas

Haz en consola:

export CFLAGS=-I/usr/local/include/SDL
export LDFLAGS=-L/usr/local/lib

Vigila copiarlo tal cual, respetando espacios , mayúsculas etc

Luego lanza el configure, con las opciones que tengas ya
Fíjate que en drivers de audio y video disponibles aparezca sdl
Y luego ya
make clean
make
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux

Avatar de Usuario
mapache
Mensajes: 272
Registrado: 15 Dic 2016, 22:24

Re: ZEsarUX en OpenBSD

Mensaje por mapache » 17 Sep 2017, 11:30

Con lo que me has dicho no funciona, pero mirando el Wiki de SDL he conseguido solucionarlo:
iron:/home/mapache{4} sdl-config --cflags --libs
-I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS
-L/usr/local/lib -lSDL -pthread -L/usr/X11R6/lib
iron:/home/mapache{5} export CFLAGS="-I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS"
iron:/home/mapache{6} export LDFLAGS="-L/usr/local/lib -lSDL -pthread -L/usr/X11R6/lib"
Haciendo esto sí compila, aunque lanza este error, en cuando pueda pruebo de nuevo haciendo todo de cero, y retirando el soporte m68k como me dijiste.
gcc -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -Wall -Wextra -fsigned-char cpu.o main_unix.o charset.o scrstdout.o scrsimpletext.o scrcurses.o scraa.o scrxwindows.o scrsdl.o audiosdl.o common_sdl.o autoselectoptions.o chardetect.o textspeech.o scrnull.o screen.o mem128.o chloe.o prism.o tbblue.o timex.o audionull.o ay38912.o codsinpr.o codprddfd.o codpred.o operaciones.o debug.o tape.o tape_tap.o tape_tzx.o tape_smp.o audio.o zx8081.o jupiterace.o z88.o cpc.o sam.o atomlite.o zxuno.o snap.o snap_zsf.o snap_z81.o snap_spg.o spg_depack.o snap_zx8081.o snap_rzx.o menu.o core_spectrum.o core_zx8081.o core_z88.o core_cpc.o core_ace.o core_sam.o core_ql.o core_mk14.o mk14.o scmp.o timer.o contend.o disassemble.o utils.o playtzx.o joystick.o ula.o mmc.o ide.o pd765.o divmmc.o divide.o diviface.o zxpand.o superupgrade.o dandanator.o multiface.o spectra.o spritechip.o printers.o realjoystick.o ulaplus.o ds1307.o if1.o ql.o m68kcpu.o m68kdasm.o m68kops.o m68kopac.o m68kopdm.o m68kopnz.o chrome.o tsconf.o remote.o esxdos_handler.o -o zesarux -L/usr/local/lib -lSDL -pthread -L/usr/X11R6/lib -lncurses -laa -lssl -lcrypto -lX11 -L/usr/X11R6/lib -L/opt/X11/lib -lXext -lXxf86vm -lpthread -lSDL -lsndfile
playtzx.o: In function `ChangeFileExtension':
playtzx.c:(.text+0x129d): warning: warning: strcat() is almost always misused, please use strlcat()
cpu.o: In function `get_machine_name':
cpu.c:(.text+0x169b): warning: warning: sprintf() is often misused, please use snprintf()
debug.o: In function `debug_printf':
debug.c:(.text+0xf5a): warning: warning: vsprintf() is often misused, please use vsnprintf()
cpu.o: In function `add_scr_init_array':
cpu.c:(.text+0x54): warning: warning: strcpy() is almost always misused, please use strlcpy()
/usr/local/lib/libaa.so.2.0: warning: warning: random() may return deterministic values, is that what you want?
m68kcpu.o: In function `default_int_ack_callback':
m68kcpu.c:(.text+0x13): undefined reference to `m68ki_cpu'
m68kcpu.o: In function `m68k_get_reg':
m68kcpu.c:(.text+0x89): undefined reference to `m68ki_cpu'
m68kcpu.o: In function `m68k_set_reg':
m68kcpu.c:(.text+0x46a): undefined reference to `m68ki_cpu'
m68kcpu.c:(.text+0x47c): undefined reference to `m68ki_cpu'
m68kcpu.c:(.text+0x48e): undefined reference to `m68ki_cpu'
m68kcpu.o:m68kcpu.c:(.text+0x4a0): more undefined references to `m68ki_cpu' follow
collect2: ld returned 1 exit status
Gracias por tu ayuda.

Avatar de Usuario
chernandezba
Mensajes: 841
Registrado: 02 Oct 2015, 23:35

Re: ZEsarUX en OpenBSD

Mensaje por chernandezba » 18 Sep 2017, 10:05

Hola

Entiendo que has borrado la definición de "m68ki_cpu'"
Ahora mismo no se si es una función, supongo que si. Con que la definas vacía servirá para que puedas compilar. Eso si , el core de QL no funcionará

Saludos
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux

Avatar de Usuario
mapache
Mensajes: 272
Registrado: 15 Dic 2016, 22:24

Re: ZEsarUX en OpenBSD

Mensaje por mapache » 18 Sep 2017, 11:25

He seguido los pasos de 0 como explico en el post inicial y ahora si compila con SDL, aunque sigue siendo inusable por la lentitud. Puedo probar con SDL2 a ver si hay suerte.

Avatar de Usuario
chernandezba
Mensajes: 841
Registrado: 02 Oct 2015, 23:35

Re: ZEsarUX en OpenBSD

Mensaje por chernandezba » 18 Sep 2017, 12:56

No creo que vaya a ir más rápido con SDL2....
Puedes probar a iniciar con driver curses (pasando la opción --vo curses) a ver si va algo mas rápido....
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux

Avatar de Usuario
mapache
Mensajes: 272
Registrado: 15 Dic 2016, 22:24

Re: ZEsarUX en OpenBSD

Mensaje por mapache » 18 Sep 2017, 13:21

Sigue igual de lento que con SDL. Acabo de fijarme que si que funciona el sonido, y de vez en cuando un petardeo.

Responder