Home › Forum › SOFA › Building SOFA › Error Building SOFA V.17.12 on windows 10 in Qt IDE
- This topic has 14 replies, 4 voices, and was last updated 6 years, 1 month ago by Hugo.
-
AuthorPosts
-
21 February 2018 at 07:50 #10556BineshBlocked
Hi
i see building steps in document for windows and i do every things step by step and every things is OK , i opened the project by cmakelist.txt in Qt IDE and i clicked build, but i got an error look like :
MSBUILD : error MSB1009: Project file does not exist.
Switch: all.vcxprojMy Information ::
Os : Windows 10 Build 17074
Sofa v : 17.12
Qt v : 5.9.1 (MSVC 2015 , 32 bit)
cmake v : 3.10.2
Boost v : 1.60.021 February 2018 at 09:18 #10558GuillaumeKeymasterHi Binesh,
Did you configure/generate with “Visual Studio 2015” CMake generator before opening the project in Qt Creator?
If yes, I’m afraid your previous build configuration (Visual Studio 2015) conflicts with Qt Creator toolchain.
Try to clear your CMake configuration from previous build because in order to build with Qt Creator you must select one of the “Codeblocks” generators (by default choose “Codeblocks – Unix Makefile”).
Qt Creator will do it for you if you directly open the project in the IDE with CMakeCache cleared and no CMakeLists.user.txt in source dir.
Do not forget to check your Qt Creator Kits are OK (Tools > Options > Build & Run > Kits).Hope that helps,
Guillaume.23 February 2018 at 18:06 #10560BineshBlockedThanks Dear @guillaumeparan
I clean every thing and do it again, i used Qt cmake generator for cmake the project , after cmake i started the build process and every thing was good But Advanced Timer report a error
Error Text ::
G:\SofaSource\SofaKernel\extlibs\json\nlohmann_json.h:1259: error: C2100: illegal indirection
Compiler OutPut Error ::
NMAKE : fatal error U1077: ‘C:\PROGRA~2\MICROS~1.0\VC\BIN\amd64\cl.exe’ : return code ‘0x2’
Stop.
NMAKE : fatal error U1077: ‘”C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe”‘ : return code ‘0x2’
Stop.
NMAKE : fatal error U1077: ‘”C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe”‘ : return code ‘0x2’
Stop.What is it ? on other pc i build the sofa successfully but in my laptop i have advancedTimer error
23 February 2018 at 18:28 #10561GuillaumeKeymasterHi Binesh,
This is a MSVC version problem. Your Visual Studio 2015 needs to be updated to Update 3.
See https://github.com/sofa-framework/sofa/issues/420 πCheers,
Guillaume.23 February 2018 at 19:59 #10562BineshBlockedThanks @guillaumeparan
Another thing , How can i build sofa with all cpu core in qt(windows) ?24 February 2018 at 07:55 #10563BineshBlocked@guillaumeparan
I updated VS2015 to update 3 , But error still exist π26 February 2018 at 09:58 #10571GuillaumeKeymasterWhat exact version of MSVC are you running?
Open “Visual C++ 2015 x64 Native Command Prompt” (or “Visual C++ 2015 x86 Native Command Prompt” if you are building a 32-bit version of SOFA) and runcl
to display version details.Mine is
19.00.24210
and working fine with nlohmann_json.26 February 2018 at 11:21 #10572BineshBlockedMy cl version is : 19.00.23506
26 February 2018 at 11:55 #10573GuillaumeKeymasterAccording to nhlomann/json readme, minimal version is 19.0.24215.1
Actually even mine shouldn’t pass ^^’
How did you update? Your version should be higher…26 February 2018 at 11:59 #10574BineshBlockedπ
I got vs2015.3.exe file from visual studio website and automatically updated to update3
π15 March 2018 at 16:42 #10648HugoKeymaster15 March 2018 at 20:21 #10649BineshBlockedHi @Hugo
No, i cannot update my cl version.
i updated my vs to update 3 but nothing and i have json error
unfortunately, i returned to linux16 March 2018 at 10:02 #10653HugoKeymasterDamned! that’s a shame for us sorry about it @secretdevil π
Keep us updated, I want you to succeed in your work!Best
Hugo
15 October 2018 at 17:24 #12216fatimaBlockedHi @secretdevil
I think that I have the problem similar to your problem:
c:\users\cmos\sofa\src\sofakernel\extlibs\json\nlohmann_json.h(1519): error C2784: '_Ty *std::begin(_Ty (&)[_Size]) noexcept': could not deduce template argument for '_Ty (&)[_Size]' from 'add_rvalue_reference<const ContiguousContainer>::type'
Do you find the solution?
please guide me to progress in building the solution
Thank youFatemeh
29 October 2018 at 13:38 #12291HugoKeymaster -
AuthorPosts
- You must be logged in to reply to this topic.