Maratis-4
Maratis-4 copied to clipboard
"Narrowing Conversion" error when trying to build on Linux
I'm trying to build the Maratis-4 engine on my Debian "Buster" machine, but, I am getting this error:
"Maratis-4/3rdparty/freeimage/Source/LibRawLite/internal/dcraw_common.cpp:3964:3: error: narrowing conversion of ‘128’ from ‘int’ to ‘signed char’ inside { } [-Wnarrowing] }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };"
I have successfully compiled the tiny-c-library and have tested the demos without issue. Am I missing something here? Please let me know!
I am also getting the same problem on my pinebookpro armhf ubuntu 18 I have try make -k, but still fails also got the tinyclib to compile and work. Any idea whats wrong or a fix
It can probably be fixed by adding '-Wno-narrowing' to the compile options. (try to add it in CMakeLists.txt line 70 for ex)