- This topic has 3 replies, 3 voices, and was last updated 7 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Getting Started › How to add qt and boost to the PATH?
Tagged: 64_bits, boost, installation, Qt, SOFA_1608, Windows_10
So I downloaded SOFA on windows and when I want to Configure it with Cmake I get this error: “Cannot find any Qt libraries on your system, please set Qt5_DIR or Qt4_DIR if you want to compile GUIs using Qt”
I am guessing this is because I haven’t completed the “PATH” step in the installation guide. But I don’t really understand that step. To what do I need to add “your/boost/path/libXX-msvc-XX” and what will the XX be? Similar question for qt.
Hi Kliment,
What are the versions and installation directories of Qt and Boost on your computer?
Here is what I have on mine:
– Qt installed in C:\dev\Qt\5.7\msvc2015_64
– Boost installed in C:\dev\boost\boost_1_59_0\lib64-msvc-14.0
To configure SOFA (in CMake GUI), I set these CMake variables:
– For Qt detection: CMAKE_PREFIX_PATH=C:\dev\Qt\5.7\msvc2015_64
– For Boost detection: BOOST_LIBRARYDIR=C:\dev\boost\boost_1_59_0\lib64-msvc-14.0
Note: BOOST_ROOT=C:\dev\boost\boost_1_59_0
may also be needed depending on what you have in your PATH.
Speaking of PATH, I suggest you to install Windows Path Editor to easily edit your system PATH.
On my side I added:
– For Qt detection: C:\dev\Qt\5.7\msvc2015_64\bin
and C:\dev\Qt\5.7\msvc2015_64\lib
– For Boost detection: C:\dev\boost\boost_1_59_0\lib64-msvc-14.0
Hope this helps.
Guillaume.
Hi Guillaume,
Thank you for your quick response. I also don’t know how to set the CMake variables? There are no such fields in the Cmake gui.
How should I set the variables that you are talking about?
Hey Kliment,
If a CMake variable is not present, just add it yourself in cmake-gui using “Add Entry”
Cheers
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.