I canât get the 32-bit Qt to work. It gives me the error:
3>c:\qt\qt5.1.0-32-no-opengl\5.1.0\msvc2012\include\qtgui\qopengl.h(82): fatal error C1083: Cannot open include file: 'GLES2/gl2.h': No such file or directory
Interestingly, I encounter this error only with ANGLE (no-opengl) Qt build. OpenGL build should work⌠but it is available only in 64 bits. (Why?)
Warmonger, could you check in your qopengl.h how does your VS resolve that GLES2/gl2.h header? Where is that file?
open the VCMI_global_user property sheet either by property manager or manually edit the props filse/ and set user macro QTDIR to the path of your path of installation of Qt (folder that contains such folders as âbinâ, âincludeâ and so on)
run compilation once. Moc will generate its files but they will not be compiled, so build will fail with linker error.
run compilation again â this time moc-generated files are present from the start and launcher should be built fine.
Possible issue:
Qt provides only ANGLE-dependant 32-bit VC11 binaries. ANGLE means it likely wonât work on Windows XP. Building XP-compatible Qt is more than I can handle now, so upcoming dev release will likely wonât support Launcher on WinXP
Please let me know if the new project files work for you.
Huh⌠try this: Open launcher project properties -> Debugging
in the Working Directory paste: $(outdir)
in the Environment field paste: PATH=$(QTDIR)\bin;%PATH%
(this should also fix any possible issues with missing Qt DLLs)
If you have trouble capturing the console screenshot because it immediately closes, you can use âStart without debuggingâ command. After program finishes, console remains open and waits for pressing key. (and you can attach debugger at any time later if you want)
Launcher needs libEGL.dll to be next to it or in the PATH.
If you set Visual debugger to feed Launcher with PATH pointing to Qt stuff (including libEGL), it works but only if you are starting the launcher by Visual Studio.
Otherwise you need to copy the file or put qtenv2.bat (it shows Qt where to look for your installation).
Well, after latest changes I canât run it at all. Neither extracted directly from package or build with recent trunk :/. And yes, libEGL.dll is present in both locations.
EDIT: It worked when I copied all libraries from bin\ to game folder.
Huh⌠on my system it was libEGL that caused that behaviour. It seems to vary from machine to machine. Bad.
Could you check exactly which DLL is that you need to run launcher? Try âbinary searchâ on non-debug DLL-s. I really would like to avoid packaging the whole Qt binaries with VCMI.
Not very reliable test but still - I managed to run launcher via wine. It seems that /platforms/qwindows.dll is missing. It can be found in /msvc2012/plugins/platforms/qwindows.dll
BTW - I noticed that there are a huge icu.dllâs. Is there a way to remove them? According to this it is needed only for webkit. Which we donât use anyway: stackoverflow.com/questions/1673 ⌠pendencies
I also noticed libflac (just 300 kb but unused AFAIK) and two versions of msvc dllâs - msvcp100.dll and msvcp110.dll. First one seems to be unused.
Mods/witchking-arts should be removed (leftover from launcher test I assume)
The fun this is I use just same package. Installer is named
qt-windows-opensource-5.1.1-msvc2012-x86-offline.exe
Still, for now I can tell that dlls from pack didnât work, while mine do, so something must be wrong here. I can replace one with another at any time to break or fix launcher.
Could you have by any chance copies also qtenv2.bat file from Qt bin/ directory? Apparently it is used to append to PATH you Qt installation dir, so that could explain why it suddenly started working.
If not⌠does extracting the 0.93b package overwriting your launcher DLLs stops launcher from working? From what I see the Qt binaries we have in out packages are the same.