devmiyax / yabause

Yabause is a Sega Saturn emulator and took over as Yaba Sanshiro
http://www.uoyabause.org
GNU General Public License v2.0
212 stars 35 forks source link

Trying to compile on linux arm RPI4 failed #652

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi! I am trying to compile this for rpi4 being 3.0 ES capable (and at least from what I could test that profile its not accepted by the official yabause.

I have 2 concerns, one its the conflicts with another flags (-mcpu=cortex-a15.cortex-a7) than I cant find where they are to erase them

 switch -mcpu=cortex-a15.cortex-a7 conflicts with -march=armv8-a switch 

the second one its than it fails to link the static libraries built by the solution

/usr/bin/ld: no se puede encontrar -lchdr-static
/usr/bin/ld: no se puede encontrar -lflac-static
/usr/bin/ld: no se puede encontrar -lcrypto-static
/usr/bin/ld: no se puede encontrar -llzma-static
/usr/bin/ld: no se puede encontrar -lchdr-static
/usr/bin/ld: no se puede encontrar -lflac-static
/usr/bin/ld: no se puede encontrar -lcrypto-static
/usr/bin/ld: no se puede encontrar -llzma-static

thanks on advance

devmiyax commented 5 years ago

This instruction may work. https://github.com/devmiyax/yabause/tree/master/yabause/src/retro_arena

ghost commented 4 years ago

Thanks. Ive fail again, sorry, its in spanish. anyway, where are this weird definitions ("-mcpu=cortex-a15.cortex-a7")??? I need to erase them.

[100%] Linking CXX executable yabasanshiro
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvgCreateGLES3':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1453: definiciones múltiples de `nvgCreateGLES3'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1456: primero se definió aquí
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvgDeleteGLES3':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1499: definiciones múltiples de `nvgDeleteGLES3'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1499: primero se definió aquí
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvglCreateImageFromHandle':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1503: definiciones múltiples de `nvglCreateImageFromHandle'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1503: primero se definió aquí
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvglImageHandle':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1519: definiciones múltiples de `nvglImageHandle'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1519: primero se definió aquí
collect2: error: ld returned 1 exit status
make[2]: *** [src/retro_arena/CMakeFiles/yabause-retro-arena.dir/build.make:172: src/retro_arena/yabasanshiro] Error 1
make[1]: *** [CMakeFiles/Makefile2:490: src/retro_arena/CMakeFiles/yabause-retro-arena.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

what do you think? thanks on advance

notthesameman commented 4 years ago

Thanks. Ive fail again, sorry, its in spanish. anyway, where are this weird definitions ("-mcpu=cortex-a15.cortex-a7")??? I need to erase them.

[100%] Linking CXX executable yabasanshiro
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvgCreateGLES3':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1453: definiciones múltiples de `nvgCreateGLES3'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1456: primero se definió aquí
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvgDeleteGLES3':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1499: definiciones múltiples de `nvgDeleteGLES3'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1499: primero se definió aquí
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvglCreateImageFromHandle':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1503: definiciones múltiples de `nvglCreateImageFromHandle'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1503: primero se definió aquí
/usr/bin/ld: nanogui-sdl/libnanogui.a(screen.cpp.o): en la función `nvglImageHandle':
/home/pi/Desktop/yabause/yabause/src/./nanovg/nanovg_gl.h:1519: definiciones múltiples de `nvglImageHandle'; ../libyabause.a(nanovg_osdcore.c.o):/home/pi/Desktop/yabause/yabause/src/nanovg/nanovg_gl.h:1519: primero se definió aquí
collect2: error: ld returned 1 exit status
make[2]: *** [src/retro_arena/CMakeFiles/yabause-retro-arena.dir/build.make:172: src/retro_arena/yabasanshiro] Error 1
make[1]: *** [CMakeFiles/Makefile2:490: src/retro_arena/CMakeFiles/yabause-retro-arena.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

what do you think? thanks on advance

I got it to compile on rpi4 but issue is now with a color inversion that I have reported already, I think the issue is with RGBA8888 I could be wrong.