Open DuendeInexistente opened 5 years ago
This issue comes from g++. The compiler is complaining about the narrowing done in the GBA HLE SWI code. It was a known problem, hence this line in the main CMakeLists.txt was appended with -Wno-narrowing If you've edited this file, make sure you add that parameter.
I haven't been able to reproduce the narrowing conversion errors on my end. Tested it across 3 machines running different versions of g++ (ranging from 4.2.x or something to 9.1.0). Just installed Slackware Current today and no problems there, so I'm not sure what's happening here. If you haven't edited the CMakeLists.txt, perhaps -Wno-narrowing is getting suppressed somehow.
On debian sid:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find SDL2 (missing: SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
CMakeTests/FindSDL2.cmake:179 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:16 (find_package)
That took to this ticket https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951087 seems that this macro has some problems but is not clear to me how to fix it. Others switch to other solution for sdl2 https://github.com/JACoders/OpenJK/pull/1033
Also as default refer to Qt 4 that now is not supported anymore in many distro.
I have compiled GBE+ on Debian some time ago, but now I can’t because Qt4 is not available anymore. The README says that the Qt dependency is optional, but there is no indication on how to tell cmake to ignore the GUI part.
you can turn off QT, as well as ust QT5 for those that do not have QT4 now
Trying to compile it with cmake on linux gives me an error. Using make 4.1 and cmake 3.14.3