AliceVision
AliceVision copied to clipboard
Compilation errors on NixOS
trafficstars
I am trying to package AliceVision for NixOS (in order to package Meshroom), and I am getting a compilation error on a file in CoinUtils.
/build/source/src/dependencies/osi_clp/CoinUtils/src/CoinMessageHandler.cpp: In member function 'CoinMessageHandler& CoinMessageHandler::operator<<(double)':
/build/source/src/dependencies/osi_clp/CoinUtils/src/CoinMessageHandler.cpp:823:20: error: format not a string literal and no format arguments [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat-security-Werror=format-security8;;]
823 | sprintf(messageOut_,format_+2);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Full build log: alicevision-build.log
If I add the CMake flag -DCMAKE_CXX_FLAGS=-Wno-format-security, then I later get many variable 'blah' has initializer but incomplete type errors across several files.
Full build log: alicevision-build.log