VisualStudio 2010 - Qt 4.8.2 - Can't build in platform x64 - Please Help



  • Hello,

    I have the Qt 4.8.2 libraries installed along with the latest version of the Qt VisualStudio addin for VS 2010. I ran a configure of all the Qt code using the x64 version of the VisualStudio x64 Win64 Command Prompt. I then rebuilt the entire Qt solution using the x64 platform in VisualStudio.

    I then created a simple Qt GUI Application project in VisualStudio, which built fine in Win32. However when I try to build the same project in x64, I get the following message:

    The following error occurred.
    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.

    For the life of me I can't find the change Qt version feature. Can someone help me out with this because I am stuck?

    Thank you.


  • Moderators

    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?


  • Moderators

    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...


  • Moderators

    [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:

    1. Close your solution file.
    2. File | Open your Qt .vcxproj file.
    3. Scroll to the bottom and find Qt5Version_x0020_Win32="5.0.1" inside of the UserProperties tag.
    4. 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.