VisualStudio 2010 - Qt 4.8.2 - Can't build in platform x64 - Please Help
-
Do you have a 64bit Qt installed at all? Our binaries only contain 32bit versions AFAIR.
-
No I don't have a 64bit version of Qt installed and didn't know one existed. I thought that I needed to configure and rebuild the libraries in 64-bit to get the 64-bit version.
-
In Visual Studio you have a Qt menu and inside that you can find the settings for Qt and you can add Qt versions in there.
-
Yes, I already added Qt version 4.8.2 but it is only applying it to the 32-bit platform. How can I also add a 64-bit platform?
-
Build it using the 64bit compiler.
I think there was some serious trouble with MSVC2010 compilers in 64bit mode when the list of supported compilers was decided on, so there are no 64bit binaries for windows available.
-
Sorry but what do you mean by "using the 64bit compiler"?
-
Hi,
I have exactly the same problem, I use the Visual Studio x64 Command Prompt to compile the source of Qt 4.8.2. The compile suceed but when I try to compile my project in Visual Studio using x64 solution I get this error (same as yours) :
There is no Qt version assigned to this project for platform x64.
Please use the “change Qt version” feature and choose a valid Qt version for this platform.Do you find a way to fix it ?
Sorry for my english...
-
[quote author="ChazZ710" date="1345199323"]Hi,
I have exactly the same problem, I use the Visual Studio x64 Command Prompt to compile the source of Qt 4.8.2. The compile suceed but when I try to compile my project in Visual Studio using x64 solution I get this error (same as yours) :
There is no Qt version assigned to this project for platform x64.
Please use the “change Qt version” feature and choose a valid Qt version for this platform.Do you find a way to fix it ?
Sorry for my english...[/quote]
Do you require a 32 and a 64 bit version of Qt?
If I understand the discussion correctly, there is no way at the moment to distinguish between 32 and 64 bit versions. IMHO it is worth a try to limit yourself to 64 bit only. Possibly when no 32 bit Qt lib version is on the machine you may be able to compile your project in 64 bit.
However, this is just a guess. -
I require a 64 bit version, I'll try just with a 64 bit version on my computer as you say, thank you for the advice.
-
Hi, I had exactly the same problem. I solved it by using the Visual Studio Add-In 1.1.9. It seems that later Add-In versions are actually getting worse to use...
-
Hi all, I'm not sure if anyone is still following this, but I found a solution. The problem is that the add-in properly adds it for Win32, but doesn't for x64. The solution is that you have to manually add it for the latter. To fix:
- Close your solution file.
- File | Open your Qt .vcxproj file.
- Scroll to the bottom and find Qt5Version_x0020_Win32="5.0.1" inside of the UserProperties tag.
- Add Qt5Version_x0020_x64="5.0.1" right after the Win32 one.
Note: My version is 5.0.1, make yours whatever your Qt version is. Hope that helps and happy 64-bit development.
-
Thank you very very much.
This is the solution i searched for 6 hours!
A year later, this bug is not fixed yet...
-
And still it's not fixed. Thanks for the help!