Home › Forum › SOFA › Building SOFA › [SOLVED] Problems when building SOFA
Tagged: 64_bits, SOFA_other, VS2017, Windows_10
- This topic has 13 replies, 2 voices, and was last updated 5 years, 10 months ago by
Aeris309.
-
AuthorPosts
-
14 March 2019 at 09:36 #13206
Aeris309
BlockedHi,
I am just a beginner of SOFA. Recently, when building SOFA, I encountered some problems as described in log file followed by this link:https://drive.google.com/file/d/1AcUM4JChT2Z2MywiG3Hx81OUbkWBDHBj/view?usp=sharing
I used Boost 1.67, VS 2017, QT 5.12.1 to build this software in Window.
As I looked at the notifications, I saw that some library files is missing in this path: \sofa\build\lib\Debug
So I wonder if that is the problem. I hope that someone will help me solving this. Thank you.18 March 2019 at 08:00 #13212Aeris309
BlockedNow I know where the problem is, it is because of this:
fatal error LNK1104: cannot open file ‘boost_program_options-vc141-mt-gd-x32-1_69.lib’Can anyone know how to solve it?
19 March 2019 at 19:39 #13230Hugo
KeymasterHi @minhtruong
Have you well installed boost as described in the documentation for Win?
Look at the required dependencies.Hugo
22 March 2019 at 03:41 #13245Aeris309
BlockedHi @Hugo
I installed the required boost which is compatible with my VS 2017. I also downloaded the dependencies for VS 2017 and unzipped it in the source directory. I think I followed all required steps but still it didn’t open the boost library.
22 March 2019 at 13:43 #13246Hugo
KeymasterHi @minhtruong
It sounds like you followed the step by step tutorial.
However, by googling you issue, it appears that it could be related to a mix between 32 and 64 bit version of libraries.Which one is your Win? I assume it is x64, you should therefore use the x64 libs for boost other dependencies.
Best
Hugo
27 March 2019 at 09:25 #1327329 March 2019 at 21:39 #13297Hugo
KeymasterHi @minhtruong
Did you read my previous post?
–> It appears that it could be related to a mix between 32 and 64 bit version of libraries. I think you installed a 32bit version of either Visual or boost, while your Windows should be a 64bit.Best
Hugo
1 April 2019 at 10:39 #13305Aeris309
BlockedHi @Hugo
I managed to solve that problem. But now I encounter another error:
I hope that you would show me how to solve this. Thank you.
1 April 2019 at 21:06 #13327Hugo
KeymasterHi @minhtruong
You are compiling SOFA in debug.
Please rather use the option CMAKE_BUILD_TYPE=ReleaseHugo
3 April 2019 at 09:34 #133603 April 2019 at 11:22 #13361Hugo
KeymasterHi @minhtruong
I can’t see your error.
I would recommend to clean the CMake, reconfigure, generate, and recompile everything in Release. If you still have a compilation error, please post it fully.Best
Hugo
4 April 2019 at 09:31 #13363Aeris309
Blocked11 April 2019 at 11:54 #13395Hugo
KeymasterHi @minhtruong
By looking to this article, it seems that VStudio iterator debug level has default value. It might conflict with the level of boost. You should make both match.
Let us know if it helps.
Best
Hugo
24 April 2019 at 09:33 #13430Aeris309
BlockedHi Hugo,
Sorry for being this late.
Finally, I can manage to install the software successfully. Now I can use Sofa for my research.
Thank you for supporting me all the time.Best Regards,
Minh Truong -
AuthorPosts
- You must be logged in to reply to this topic.