Help compiling lr-neo-cd for Pi4
-
UPDATE: Games work only if they're in non-chd format so there's something up with that. I opened an issue at the repo to see if it's on his end or mine.
https://github.com/libretro/neocd_libretro
While I previously had no problems compiling before thanks to the users in the previous thread, the pi3 binary from back then DOES work and play games on a pi4, but I'd figure I'd try to get it properly optimized for the pi4 and also keep the binary updated for my pi3.
A recent update to the repo has made the
CMakeLists.txt
even more complicated for me now and I did my best to guess where the flags go. It compiles but when I load a game, it loads to the neocd menu screen without the game being detected. I only tested on my pi4.Here are the settings I changed:
Fromset(MACHINE_OPTIONS "-march=x86-64 -mtune=generic")
to
set(MACHINE_OPTIONS "-march=native")
From
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${MACHINE_OPTIONS} ${BASE_OPTIONS} ${CXX_OPTIONS}")
toset(CMAKE_CXX_FLAGS_RELEASE "-O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations")
Thanks.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.