Windows installation problem

230 views
Skip to first unread message

盐水冲茶

unread,
Mar 23, 2018, 4:50:34 AM3/23/18
to mantaflow Forum
I try build this project with cmake, qt5.1.1, vs2017 and python 3.6.4 with x86 arch and win10 SDK(version 10.0.16299.0). 


I changed CMakeLists.txt file for WIN_QT_PATH and WIN_PYTHON_PATH(I didnt change windows kit path, but cmake could find it by self), Cmake has configured and generated successfully, but when I compile the project, I found it seems miss #include<gl/GL.h> so that an error ocuur----could not found define of some OpenGL function, Im not sure if it is a bug?(Sorry about my VS is a chinese language version)


I try to add the head file it compile successfully, and when the exe run, it misses some dll files.
 
So i have copied them to my project path(python3_d.dll & python36_d.dll are compiled from src, msvcp140d_app.dll & vcruntime140d_app.dll are from C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.25022.0_x86__8wekyb3d8bbwe, Qt5OpenGLd.dll &  Qt5Widgetsd.dll & Qt5Guid.dll & Qt5Cored.dll & libGLESv2d.dll are from QT bin path D:\soft\Qt\5.11.0\winrt_x86_msvc2017\bin).


Finally, I could not run still :(


I try to debug the program for guiMain function in qtmain.cpp.
It crash in first line 


I think it is because I copy some qt dll but not all required file or folder. I try to move the fold D:\soft\Qt\5.11.0\winrt_x86_msvc2017\plugins\platforms to my project path, failed either. the error info is a little different from above version. 




I think i am near from succee. It must be some configures about Qt not correctly. 


I have noticed I used win10, so there is a qwinrtd.dll ranther than qwindowsd.dll, I guess it may because manta not support winrt/win10 platforms or some other reason? I have no idea about why Qt not initialized platform plugin, some sample test code about qapplication in Qtcreator work well and load winrt plugin successfully, Could you give some suggestions?






Nils Thuerey

unread,
Mar 25, 2018, 2:20:37 PM3/25/18
to mantaflow Forum
Yeah, looks like it's almost working - you might be missing "platforms/qwindow.dll", and it seems sometimes libEGL.dll is also required. If Qt is causing problems, you could also check whether it works without Qt first. 

Cheers, Nils

盐水冲茶

unread,
Mar 27, 2018, 1:23:47 AM3/27/18
to mantaflow Forum
Thank you for the advice, I have notice the qwindow.dll, in fact, I didnt get the qwindow.dll after I installed uwp/winrt Qt version, so I have compiled Qt to get qwindow.dll. It doesnot work, either.

I try to transform the mantaflow uwp project to win32 project as this(https://msdn.microsoft.com/en-us//library/windows/apps/mt186164.aspx), other errors have came up.

Luckily, I have solve the problem finally, I uninstalled the uwp Qt, and reinstalled a msvc version Qt. It has the qwindow.dll, so it works well. I think it maybe something not compatible to uwp's qwinrt.dll


在 2018年3月26日星期一 UTC+8上午2:20:37,Nils Thuerey写道:

Nils Thuerey

unread,
Mar 27, 2018, 3:56:22 AM3/27/18
to mantaflow Forum
Ah, good to hear it's working! The different pre-compiled Qt versions for windows unfortunately regularly cause problems...

盐水冲茶

unread,
Mar 27, 2018, 4:33:19 AM3/27/18
to mantaflow Forum
Yes, you are right. Hope my experience could help others to avoid this problem.

在 2018年3月27日星期二 UTC+8下午3:56:22,Nils Thuerey写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages