Closed XiaotianJia closed 4 years ago
The project should compile in all platforms.
However, it doesn't perform a super-build (yet) to manage its dependencies. All of them have to be installed before hand. Some of them are optional, and only need if enabling particular modules. But you have to disable those modules (all are ON by default).
Check the docker script for an example. Dependencies:
If you don't have access to c++17
disable the Generate
and Dynamics
modules and set CMAKE_CXX_STANDARD
to 14
.
Thanks for your help. The cmake-gui doesn't report errors after disabling the Generate and Dynamics module. But other problems arose. When I build the projects using Visual Studio 2015, I got many errors. The followings are some of the errors:
14> convert_to_vtk_graph.cpp
17>gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in test_boundary_conditions.obj
18>gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in test_bounding_box.obj
17>msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: cdecl std::basic_streambuf<char,struct std::char_traits
Is there anything else I need to pay attention to?
Seems like a msvc issue, the gtest subprojects have different flags. First, I would try a clean cmake configuration and rebuild. Secondly, I would follow the hints given here: https://stackoverflow.com/questions/14714877/mismatch-detected-for-runtimelibrary
Let me know if that helps!
The project dependencies can be built using the dependencies
subproject. Check the Readme.
Hi, I am building the project using cmake-gui and Visual Studio 2015. But it report an error “Required library TBB not found”. I know C++17 is required. Is it possible to build the project using Visual Studio 2015?