Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build target gtsam on Windows 10 and CLion with bundled MinGW64 and CMake #1718

Open
theludovyc opened this issue Jan 25, 2024 · 0 comments

Comments

@theludovyc
Copy link

Description

When build gtsam target with CLion and bundled MinGW64 on Windows 10 it failed.

Steps to reproduce

  • Install Boost and compil it with MinGW 64 (you can do it with the bundled MinGW in CLion or install it with scoop)
  • Open CLion on gtsam root, and verify your toolchain is the bundled MinGW
  • (optional) In CMake configuration, Deactivate TBB
  • In HandleBoost.cmake Line 21 add
if(MSVC)
...
elseif(MINGW)
    message("found MINGW")

    set(Boost_ARCHITECTURE -x64)

    set(BOOST_ROOT "C:/Program Files/boost/boost_1_82_0")
endif()
  • In GtsamTesting.cmake Line 182 add
    if(NOT MSVC AND NOT MINGW AND NOT XCODE_VERSION)
  • Tools > CMake > Reset Cache and Reload Project

A little CMake error

Problems were encountered while collecting compiler information:
	cc1.exe: fatal error: /w: No such file or directory
  • Select the gtsam target and start building it
  • You normaly obtain errors like bellow
    image

Another thing
sys/system.h not exist on Windows 10
image

Expected behavior

Compilation success

Environment

Windows 10 and CLion with bundled MinGW64 and CMake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant