Closed dragon99919 closed 1 year ago
-- Check for working C compiler: /usr/bin/cc - broken CMake Error at /usr/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program.
cc: error: unrecognized command-line option ‘-m32’; did you mean ‘-mbe32’?
and
- DUSE_I386_NASM_ASM=TRUE
I think the problem is this. It is not logical to use assembler from another architecture. Try this command:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS=-mbe32 -DCMAKE_CXX_FLAGS=-mbe32 -DUSE_I386_NASM_ASM=FALSE .. -DRPI4=TRUE
Okay, so while the initial error for SE doesn't occur now, the compiler throws itself out of the window in the same place as in case of FE:
[ 82%] Building CXX object CMakeFiles/EngineMP.dir/Engine/Graphics/DrawPort.cpp.o [ 82%] Building CXX object CMakeFiles/EngineMP.dir/Engine/Graphics/Gfx_wrapper.cpp.o /home/dragon99919/git/SeriousSamClassic-VK/SamTSE/Sources/Engine/Graphics/Gfx_wrapper.cpp: In function ‘void GFX_SetFunctionPointers(INDEX)’: /home/dragon99919/git/SeriousSamClassic-VK/SamTSE/Sources/Engine/Graphics/Gfx_wrapper.cpp:940:31: error: invalid conversion from ‘void ()(INDEX, INDEX)’ {aka ‘void ()(int, int)’} to ‘void ()(INDEX, short unsigned int)’ {aka ‘void ()(int, short unsigned int)’} [-fpermissive] 940 gfxDrawElements = &svk_DrawElements; ^ ~~~~void ()(INDEX, INDEX) {aka void ()(int, int)} make[2]: [CMakeFiles/EngineMP.dir/build.make:1389: CMakeFiles/EngineMP.dir/Engine/Graphics/Gfx_wrapper.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:283: CMakeFiles/EngineMP.dir/all] Error 2 make: *** [Makefile:149: all] Error 2
Change in
Sources/Engine/Graphics/Gfx_wrapper_Vulkan.cpp static void svk_DrawElements(INDEX ctElem, INDEX *pidx)
to
static void svk_DrawElements(INDEX ctElem, INDEX_T *pidx)
Cool, both builds are working now after this last fix, thx!
Hey! I just tried to compile both of FE and SE on my RPi4 (vanilla Raspberry PI OS 32-bit) and I get these errors.
For FE:
and for SE the test program doesn't even wanna budge:
Any ideas what can I do about these?