Home › Forum › SOFA › Using SOFA › [SOLVED] Can’t launch runSofa
Tagged: Sofa 16.08, VS 2013, Win 7 64 bits
- This topic has 8 replies, 3 voices, and was last updated 7 years, 10 months ago by
Guillaume.
-
AuthorPosts
-
17 May 2016 at 10:39 #6760
Philippe
BlockedHello,
I’ve been using the guide to build sofa on windows, I’m using vs2013, and a compiled boost 1.60.
Everything’s been building fine without errors.But when I try to launch runSofa, I get popup system errors with:
boost_system-vc120-mt-1_60.dll not found
boost_thread-vc120-mt-1_60.dll not found
Qt5OpenGL.dll not foundAltough the related entries are correctly set in cmake.
If I try to manually copy the required files in the bin/release folder (using compiled dependencies), I still get a system popup error telling me the application can’t launch (0xc000007b).
I have no log and no error on the cmd window.
My understanding is that the cmake file should have built (for Qt) or copied (for boost) what was necessary as long as it was set.
Any idea?
17 May 2016 at 11:23 #6761Philippe
BlockedOk, I checked the dependancies, and found that the ones on the website were for 32bit windows.
So I set Qt path in PATH, set boost path in PATH also. I’m now using the 64 bits version.However, at launch, I now get:
“le point d’entrée de procédure
?glGetTexLevelParameteriv@QOpenGLFunction ….. est introuvable dans Qt5OpenGL.dll”So I guess the Qt version you’re using and the qt version you’re linking on the website are different.
17 May 2016 at 14:41 #6768Guillaume
KeymasterHi Philippe,
Thanks for your report.
I will add the “add Qt and Boost to your PATH” instruction in the documentation.What is the Qt version you’re using ?
So I guess the Qt version you’re using and the qt version you’re linking on the website are different.
What do you mean ?
Cheers,
Guillaume.17 May 2016 at 15:11 #6772Philippe
BlockedHey,
I used the version linked in the guide, so msvc2013_64-5.5.1 to no avail
Then, I used a previous opengl version: msvc2013_64_opengl-5.3.0 and it got me further.I hit some problems with cmake, namely on Qt5GuiConfigExtras.cmake which made an error because of glu32. So I looked it up and it seems you need Windows SDK. I’ve got 8.1 but I guess any recent version is ok. Added
set (CMAKE_PREFIX_PATH "C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64")
to said cmake file.Then… While building, hit 2 errors in qdatetime.h related to min/max stuff. So I added
/DNOMINMAX
toCMAKE_CXX_FLAGS
. Everything built ok.At launch, I was greated with a cmd error:
This application failed to start because it could not find or load the Qt platform plugin "windows"
It seems that even tough Qt path is set, I still have to copy Qt5Core.dll, Qt5Gui.dll and Qt5Widgets.dllSo… yeah. It finally works. I don’t know if some of these errors are specific to my config, but it seems Qt5OpenGl is needed, and the version linked in some case doesn’t have it. I don’t know if there’s another workaround (that plus all the cmake stuff to add).
9 June 2016 at 16:15 #7089Guillaume
KeymasterHi Philippe,
Sorry for the very delayed answer.
Thank you very much for all this feedback, it helped a lot!
I updated SOFA Documentation and will keep this topic as a reference.However, I still don’t understand why you were having QOpenGL problems with a VS2013_64bit + Qt_5.5.1 + SOFA_15.12 configuration since I have exactly the same one here and everything works fine…
Did you unzip the external libraries foldersinclude/
,lib/
andlicences/
(containing GLEW and GLUT dlls) in your sources?Cheers,
Guillaume.27 October 2016 at 13:47 #7692Zahra
BlockedHi Guillaume,
I also have the same problem. I followed the documentation for building sofa. I am using Win 7, 64 bits- VS 2013- Qt 5.6, boost 1.6 and cmake 3.6.2. I also unzipped the external libraries folders into the source folder.
There is no error in cmake. The project is built without any error, but I can not launch Runsofa and Modeler. When I try to launch Modeler I receive this error :
boost_system-vc120-mt-gd-1_60.dll is missing from your computer. Try reinstalling the program to fix this problem.
2 November 2016 at 17:20 #7719Guillaume
KeymasterHi Bnk,
Did you add Boost in your PATH variable?
It should be something likeyour_boost_path\boost_1_60_0\lib64-msvc-12.0
Cheers,
Guillaume.5 November 2016 at 06:53 #7737Zahra
BlockedHi Guillaume,
Yes, I added it. After the configuration, all paths relative to boost (including BOOST_INCLUDE_DIR) are truly added, except one for “Boost_DIR”. I added its path again, but after configuring, it again shows “Boost_DIR-NOTFOUND”.
Any way, it is mentioned that SOFA includes miniboost, but without installing boost, cmake asks for installing it.
Thanks for your help in advance,
Zahra7 November 2016 at 18:03 #7749Guillaume
KeymasterIt is normal for
Boost_DIR
, we don’t use this variable in SOFA.
MiniBoost is still here but will be removed soon so you need to have your own Boost.runSofa.exe should be able to get boost_system-vc120-mt-gd-1_60.dll if Boost is in your PATH.
Try copying boost_system-vc120-mt-gd-1_60.dll in the bin/ folder of SOFA.Guillaume.
-
AuthorPosts
- You must be logged in to reply to this topic.