Can't compile Qt5.2.1 / 5.3.0a on Win8
-
simply i couldn't compile after couple of days of research and reading.
i get "DXSDK_DIR was not found" error. I use msvc2012 compiler.configure options: -platform win32-msvc2012 -nomake tests -nomake examples
what i've tried:
- Following instructions at http://qt-project.org/wiki/Building_Qt_5_from_Git
- Installing latest version of WinSDK (Win8.1)
- Editing "vcvars32.bat" and "VCVarsQueryRegistry.bat" and locating to the SDK8.1 registry keys
- Tried with "-opengl desktop"
- manually adding "DXSDK_DIR" enV with the location of SDK which then got another error of failed to find some files
- installing latest version of DirectX
- reinstalling visual studio
fails happen with "nmake".
any help would be appreciated guys
-
Hi,
What happens if you use the SDK that came with MSVC 2012?
Did you build from the Developer Command Prompt for VS2012?
How did you clean your build tree when you changed your configuration to use "-opengl desktop"?
-
Hi,
Actually i was success in building Qt since 4 even 5.0.0.
for recent releases i don't know much about working with microsoft SDKs. the only thing i know that ANGLE is looking for directX directory. even if i don't select to use ANGLE it's same scenario (IDKY).
I found that DXSDK is no longer provided separately and it's shipping with the WinSDK that would be expected to set DXSDK_DIR environment variable automatically but doesn't.[quote author="JKSH" date="1393675777"]
What happens if you use the SDK that came with MSVC 2012?
[/quote]
I checked, no difference[quote author="JKSH" date="1393675777"]
Did you build from the Developer Command Prompt for VS2012?
[/quote]
of course[quote author="JKSH" date="1393675777"]
How did you clean your build tree when you changed your configuration to use "-opengl desktop"?[/quote]
nmake clean
tried re-extraction too -
I just experimented with nmake clean, and noticed that it doesn't work properly. (In fact it ADDED files to my build tree :-/)
I don't know what steps are involved in getting MSVC2012 to use Windows Kit 8.
For best results, try:
- Uninstall the DirectX SDK
- Restore Visual Studio to its original state, using its original SDK.
- Delete the Qt source code and re-extract it
- Use this set of commands (from the root folder, not the qtbase folder):
@
configure.bat -opensource -confirm-license -nomake examples -nomake tests -opengl desktop -mp > confout.log 2> conferr.log
nmake
@
(You don't need to specify -platform if you use the Developer Command Prompt)
If it still doesn't work, please provide:
- The full error message
- The contents of confout.log and conferr.log