Home › Forum › SOFA › Building SOFA › [SOLVED] error: runsofa.exe can not run after successfully build the project in VS2019
Tagged: 64_bits, Plugin_SoftRobots, SOFA_2006, VS2019, Windows_10
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by Hugo.
-
AuthorPosts
-
7 May 2020 at 13:55 #16135yul131Blocked
Dear sofa,
I am a windows user, and I run into the problem that I posted in github:https://github.com/sofa-framework/sofa/issues/1364
I used a vs 2019. It seems that all the install and build process goes well but I can’t successfully open the runsofa.exe to test if I can see the snack demo.
seems that the runsofa can not use the .dll file in the additional dependency file “sofa-windows-dependency” , the libpng16.dll.
I follow the process of install sofa from source code and All my Qt, boost, sofapython eig build well.
I don’t know if that is I should use the VS 2017 instead of VS 2019?
or because I will use softrobots plugin later and that requries the unstable version of Sofa, is that a problem? In fact I have also add the stLIB plugin and softrobots plugin successfully before, and then to debug where is wrong, I move thoses entry in cmake-gui but the runsofa.exe still not work.
It seems that everything goes perfect in cmake-gui and vs2019 but there are error when opening runsofa.exe
7 May 2020 at 13:57 #16136yul131Blocked10 May 2020 at 21:56 #16139HugoKeymasterHi @yul131
What did you do to make it compile successfully?
What was the problem? Were you missing the dependency pack?Best
Hugo
11 May 2020 at 03:40 #16151yul131BlockedHi @Hugo
I tried a lot of different version of vs, boost, cmake… And now I finally get the runsofa.exe compiled successfully on vs2019.
However, I have a new problem
when runsofa.exe, it says that “It could not find or load the QT platform plugin for “windows””11 May 2020 at 04:46 #16152yul131BlockedAfter I configure the right qt PATH, it now has a new error when runsofa.exe, it says that the application failed to link to SofaGuiQt.dll which is exactly generated to that folder(I found that)
11 May 2020 at 23:47 #16162HugoKeymasterHi @yul131
So you installed Qt using the installer as described in the documentation, is that correct ?
Your CMake configuration step went well without any error output ?
So did the compilation ?
And you finally have this error at runtime ?Could you please check each of above points, please?
Hugo
12 May 2020 at 11:02 #16166yul131BlockedHi
Yes, I use the 1.72-14.2 Qt as described in your document, and cmake configuration step works fine and I can find those Qt entries in cmake-gui successfully:
and the vs2019 compilation has no problem too.all the Qt related .dll file generated normly, however, when runsofa.exe. it says that it can not link to SofaGuiQt.dll
runsofa.exe says that it can not locate the applications’ entry dynamically link to SofaGuiQt.dll
I have tried reinstall and for different version for many times. I really don’t know where is wrong with my installtion. It seems that although everything is generated well but the SofaGuiQt dynamic link library’s content may not be right. Is the Qt installtion process complete in your document? That just include the msvc2017, qtchart, and qtwebengin? Do I need to do other things to let my cmake-gui and vs2019 use the Qt library to configure and compile the sln?
14 May 2020 at 23:32 #16244 -
AuthorPosts
- You must be logged in to reply to this topic.