Home › Forum › SOFA › Building SOFA › [SOLVED] I am confused on the dependencies when compiling Sofa On WIN10. vs2015
- This topic has 11 replies, 5 voices, and was last updated 8 years, 8 months ago by Sen.
-
AuthorPosts
-
15 March 2016 at 03:57 #6326cyrilBlocked
hello guys, i am a new user of SOFA and i am not skillful at Coding, so that i have some confuses.
First, i download 4 archive from the download page, including
1.dependencies for Win32 binaries (boost & Qt5)
2.find the LGPL sources of the Qt5 dependencies
3.download the required dependency to VisualStudio 2015 runtime libraries: VC-redist.x86.exe
4.windows binaries
————————————————————————————-
my first question is : do i need windows binaries when i compile Sofa on my computer?
If i need, how to use this archive?
————————————————————————————-
Secondly. i refer to the bulid on windows page
1.Compiler–I have installed VS2015
2.Cmake–I have downloaded cmake-3.5.0-win32-x86.msi and installed on my computer
3.require dependencies–my second quetion
————————————————————————————-
Question 2: do i still need to download Qt and boost from the link provided?
————————————————————————————-Thirdly, here comes to the ‘Then, download and unzip the Windows dependencies packagein your new sources folder (e.g. sofa/v15.12/src/)’.
————————————————————————————–
Question 3: how should i deal with another archives ‘dependencies for Win32 binaries (boost & Qt5)’ and ‘windows binaries’. There is no tutorial about these two archives.
————————————————————————————–
Question 4: when compiling on VS2015, do i need to make link or include any dependencies?
————————————————————————————–
Sorry for my simple questions, but it do confused me~
Best regard.
Cui16 March 2016 at 14:05 #6334HugoKeymasterDear Cui,
Welcome and thank you for your interest in SOFA!
Here, I think you are getting confused between two different options: either you use the binaries of SOFA, or you use the compiled version of the sources. Let me explain those two options:- If you want to play with SOFA or use the classic version of SOFA, you can simply use the binaries of SOFA. The explanations about how to download the SOFA binaries are given on top of the download page. With this first option, you need to:
- get the dependencies for Win32 (boost & Qt5)
- get the LGPL sources of the Qt5 dependencies
- download the required dependency to VisualStudio 2015 runtime libraries
- and finally, download the binaries of SOFA
- The second option is independent of the first one. If you wan to work with the sources of SOFA, you need to compile all the SOFA sources. This second option is more complicated, especially if you have no skills in compilation. For this second option, you need to following the guidelines given on the build page. In a few workds, you need to:
- have Qt installed. With VS 2015, you need : qt-opensource-windows-x86-msvc2015_64-5.6.0.exe
- have Boost installed. You will find a Boost 1.60.0 official executable for every Visual Studio version here
- Download the SOFA sources: git clone -b v15.12 git://scm.gforge.inria.fr/sofa/sofa.git sofa/v15.12/src/
- Configure and build the SOFA sources.
Definitely, the binary option (first option) is the best if you are not used to compile yourself sources of a software. Hope this helps,
Cheers,
19 March 2016 at 02:48 #6368cyrilBlockedHugo,Thanks a lot!
However, i get a new problem~
The build errors include four types: lnk error 1104、MSB6006、C3688、C2146.Totally, there are 84 errors.
I am going to show you some errors in detail.
cannot open the file“..\..\lib\Debug\SofaSimpleFem_d.lib”
cannot open the file“..\..\lib\Debug\SofaConstraint_d.lib”
cannot open the file“..\..\lib\Debug\SofaEngine_d.lib”
cannot open the file“..\..\lib\Debug\SofaConstraint_d.lib”
cannot open the file“..\..\lib\Debug\SofaMisc_d.lib”
cannot open the file“..\lib\Debug\SofaComponentMisc_d.lib”
cannot open the file“..\..\lib\Debug\SofaComponentBase_d.lib”
cannot open the file“..\lib\Debug\SceneCreator.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
cannot open the file“..\..\..\..\lib\Debug\SofaTest.lib”
“link.exe”quit,code 1104。Besides, it’s also said that there is a error in runsofa, line 258. However, I don’t think it’s a error
I cann’t find all the .lib files mentioned, so i have no idea how to configure the project in VS2015.
Best regards,
Cui20 March 2016 at 16:15 #6369cyrilBlockedBesides, i think the main reason may be the compiler can not open the file boost_thread-vc140-mt-1_60.lib
On the other hand, how can i run the sofa using the windows binary? I have download all the files and put them in the same root together. However, when i double click the runSofa.exe. it can not work, just a flash and then it shut down.
29 March 2016 at 13:59 #6390GuillaumeKeymasterHi cyril,
Did you follow step by step our documentation about how to build on Windows ?
Could you explain precisely what you did to obtain these errors ?
Concerning the Windows binaries, I think Hugo explained very well what you have to do to run them.
If the program is just flashing, you should try to run it in the command. To do this, go in the SOFA folder containing runSofa.exe, then click on File > Open command prompt. In the command prompt, simply typerunSofa.exe
and press Enter.If something goes wrong, you should see some logs in the prompt 😉
Hope this helps,
Guillaume.2 April 2016 at 14:20 #6446SenBlockedHi Guilliame
I followed the exact steps on https://www.sofa-framework.org/support/doc/getting-started/build/build-on-windows/
I get this error:
a) Cannot find any Qt libraries on your system, please set Qt5_DIR or Qt4_DIR if you want to compile GUIs using Qt
followed by
“CMake Warning at applications/projects/CMakeLists.txt:5 (find_package):
By not providing “FindQt5.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Qt5″, but
CMake did not find one.”Interestingly I do find in my CMakeCache, so I do have QT installed in the system.
QT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/Qt5.2.1/5.2.1/msvc2012_64/bin/qmake.exe
//The directory containing a CMake configuration file for Qt5.
Qt5_DIR:PATH=Qt5_DIR-NOTFOUNDSo the QT5 installation instruction wasnt complete?
best
SouravYour
When running2 April 2016 at 14:52 #6447cyrilBlockedThank you, Hugo & Guilliame
I have succeed in running the window binary by adding the external dependencies into the bin folder (I missed this step at first).
As for the compilation, i don’t know what exactly causes the problems, since sofa is really difficult for me. I’m not familiar to write a software. However, running the windows binary is enough for me, so i don’t need to compile it now.
In fact, i am going to use the soft robot plugin (INRIA Lille – DEFROST team). But i can’t get this plugin,.Even though i have sent a email to the team member, there is no reply.
One more question, does the sofa-framework utilize the nonlinear continuum mechanics?
Regards
Cyril
4 April 2016 at 10:40 #6451maxBlockedHi Sen,
I just stumbled upon the exact same issue, and found a solution: you need to export the CMAKE_PREFIX_PATH environment variable to your Qt directory before configuring the project in CMake.
EDIT example: C:\Qt\Qt5.3.2\5.3\msvc2013_opengl in my case
See http://stackoverflow.com/questions/15639781/how-to-find-qt5-cmake-module-on-windows for reference.
HTH,
4 April 2016 at 10:48 #6453HugoKeymasterHi Cyril,
Nice to hear that you succeeded in running SOFA.
About the soft-robot plugin, it is indeed developed by the DEFROST team in Lille (France). This is a private plugin that there are currently developing. I will send you and the DEFROST team a private message to see if they can offer you an access to their plugin.Moreover, SOFA includes also non-linear constitutive laws. This work is currently in a private plugin as well. I will send you another private message with the contact of the person in charge of this plugin.
Best,
Hugo
4 April 2016 at 11:43 #6474SenBlockedThanks Max. Saved my morning. ( I was trying to fiddle with the cmake itself instead of simply exporting.doh!!).
Hugo/Guilliame,
Would you please add the instruction in the Building on Windows , Required Dependencies docs to save trouble for others.set CMAKE_PREFIX_PATH=D:\…..\Qt\Qt5.2.1\5.2.1\msvc2012_64
A further dev warning appears
CMake Warning (dev) at D:/MyPrograms/Qt/Qt5.2.1/5.2.1/msvc2012_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:224 (configure_file):
configure_file called with unknown argument(s):COPY_ONLY
Call Stack (most recent call first):
applications/projects/Modeler/exec/CMakeLists.txt:14 (qt5_add_resources)However thats just a typo with Qt5CoreMacros.cmake file. It uses COPY_ONLY instead of COPYONLY.
easily edited.Best
Sourav4 April 2016 at 14:14 #6507GuillaumeKeymasterHi all,
Thank you for this fix, I just added it in the documentation 😉
Cheers,
Guillaume.4 April 2016 at 15:08 #6512SenBlockedThanks.
Whats curious though is why others werent facing the same issue including the nightly build.
That QT5 typo warning should happen on all versions ?Best
Sen
Sofa Env: Win10/VS2012/v15.2 - If you want to play with SOFA or use the classic version of SOFA, you can simply use the binaries of SOFA. The explanations about how to download the SOFA binaries are given on top of the download page. With this first option, you need to:
-
AuthorPosts
- You must be logged in to reply to this topic.