64 bit application to 32 bit



  • I created a QT project using visual studio and QT 64 bit version .

    What would the easiest way to convert this project to 32 bit version ?
    I need to use QT 5 and 32 bit version and compile everything I created up till now over it but I am
    not that familiar with QT Creator and have been using the QT plugin for visual studio .

    Problem for me is that only 64 BIT QT 5 works with Visual Studio 2012 and the plugin that comes with it . If I want 32 bit QT , i have to use version 4.7 QT .



  • bq. What would the easiest way to convert this project to 32 bit version ?

    Build the source using a 32-bit Qt.

    bq. If I want 32 bit QT , i have to use version 4.7 QT .

    Where did you get that idea from?

    There are no pre-compiled 32-bit Qt 5.0.2 libraries for MSVC 2012 so you can either:

    • Build 32-bit Qt 5.0.2 libraries from source,
    • Downgrade your compiler to MSVC 2010 and use the precompiled Qt 5.0.2 binaries for that compiler, or
    • Be brave and use the Qt 5.1RC 32-bit binaries for MSVC 2012.


  • [quote author="ChrisW67" date="1372138931"]
    bq. If I want 32 bit QT , i have to use version 4.7 QT .

    Where did you get that idea from?
    [/quote]

    Well , QT 5.0 only comes in 64 bit for visual studio . Correct me if I am wrong .

    [quote author="ChrisW67" date="1372138931"]

    • Downgrade your compiler to MSVC 2010 and use the precompiled Qt 5.0.2 binaries for that compiler
      [/quote]

    I tried this but it is a big pain . Linker errors and I couldn't find out what is wrong . I set the include directories etc. in visual studio and just won't compile . Of course , I can keep trying for days and days but I am hoping there is an easier way .

    [quote author="ChrisW67" date="1372138931"]

    • Be brave and use the Qt 5.1RC 32-bit binaries for MSVC 2012.

    [/quote]

    Where is the Qt 5.1RC 32-bit binaries for MSVC 2012 ? I couldn't find it .

    [quote author="ChrisW67" date="1372138931"]

    • Build 32-bit Qt 5.0.2 libraries from source,
      [/quote]

    Where can I find instructions for that ? Thanks .


  • Moderators

    [quote author="great88" date="1372140360"]
    Where is the Qt 5.1RC 32-bit binaries for MSVC 2012 ? I couldn't find it .
    [/quote]

    http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc1/

    [quote author="great88" date="1372140360"]
    Where can I find instructions for that ? Thanks .
    [/quote]

    http://qt-project.org/wiki/Building-Qt-5-from-Git

    Both easily findable via google...

    [/quote]



  • .



  • bq. Well , QT 5.0 only comes in 64 bit for visual studio . Correct me if I am wrong .

    No, Qt 5.0.2 comes in 64-bit for MSVC 2012, and 32- or 64-bit for MSVC 2010.
    The 5.1RC comes in 32- or 64-bit for MSVC 2012

    [quote author="raven-worx" date="1372140743"]
    Both easily findable via google...[/quote]
    Or using the link on the same "download page":http://qt-project.org/downloads#qt-lib you get all the released versions from.

    bq. Looking for Qt 5.1.0 RC 1? Please visit "download.qt-project.org":http://download.qt-project.org/development_releases/qt/5.1/5.1.0-rc1/


Log in to reply
 

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