- This topic has 5 replies, 3 voices, and was last updated 4 years, 5 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Target “Qt5::Xml” not found (cmake-gui/Win10/VS2017x64)
Tagged: 64_bits, Plugin_other, Qt5::Xml, SOFA_1912, VS2017, Windows_10
On a specific computer I’m unable to generate and compile SOFA. I’ve tried the SOFA sources of versions 19.06, 19.12 and the unstable branch. For QT I tried three different versions: 5.9.9, 5.12.0 and 5.13.2. In CMake 3.16.8 the “Configure” button works, but “Generate” fails. For SOFA 19.12 and unstable the relevant error message is: ‘Target “runSofa” links to target “Qt5::Xml” but the target was not found.’ and there is no entry named “Qt5Xml_DIR” although the msvc2017_64/lib/cmake/Qt5Xml directory does exist. Manually adding the entry “Qt5Xml_DIR” in CMake has no effect. When using SOFA 19.06 source code the errors are largely the same although Qt5Xml_DIR is actually generated this time. CMake-3.13.1 gives same errors. Thanks for the help!
Switching target to 32-bit seems to workaround the issue. Still I’d like to know why 64-bit target gives these errors. After all, your Windows instructions page uses 64-bit.
Hi,
Our Windows developers are indeed working in majority in 64-bit configuration.
How did CMake find the other Qt libraries? Did you set CMAKE_PREFIX_PATH as the doc suggests?
Could you show us your CMakeCache.txt?
Guillaume.
Hi, apologies for the late response, I did not try 64-bit again as 32-bit works fine. Also, all the system search pathes are now set to 32-bit and our project must go on of course, so I’d rather leave it this way. I however found an old CMakeCache.txt file. The only lines involving Qt5Xml are as follows:
//The directory containing a CMake configuration file for Qt5Xml.
Qt5Xml_DIR:PATH=D:/Programs/Qt_5_9_1/5.9.9/msvc2017_64/lib/cmake/Qt5Xml
The path actually exists and I do not see specific error messages in CMakeCache.txt. If you are still interested in the contents of this file then you can download it at https://www.dropbox.com/s/e0h3vv7ld60yrca/CMakeCache.txt
OK we will take a look.
Do not hesitate to reopen the topic.
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.