AliceVision icon indicating copy to clipboard operation
AliceVision copied to clipboard

Compilation errors on NixOS

Open aidalgol opened this issue 3 years ago • 0 comments
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

aidalgol avatar Sep 09 '22 20:09 aidalgol