RISCSoftware / cpacs_tigl_gen

Generates CPACS schema based classes for TiGL
Apache License 2.0
5 stars 5 forks source link

How to link Boost library correctly? #42

Closed MarAlder closed 2 years ago

MarAlder commented 2 years ago

Hi,

I would like to ask a question on the CMake boost integration. My approach is:

CMake seems to find the correct version, but at the same time not...:

CMake Error at D:/Programme/QtCreator/Tools/CMake_64/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: system filesystem date_time regex
  unit_test_framework) (found version "1.75.0")

Am I using the correct builds or should BOOST_ROOT point to somewhere else?

bernhardmgruber commented 2 years ago

Have you tried turning static libraries off? That is, setting Boost_USE_STATIC_LIBS to OFF.

MarAlder commented 2 years ago

Thanks for the fast reply! Turning static libs off didn't help. However, the following approach solves the issue:

I followed https://github.com/BVLC/caffe/issues/6802#issuecomment-841066764 and built Boost according to this tutorial as I'm using MinGW under Windows. Now it compiled successfully 💪