Results 1 to 2 of 2

Thread: Compiling 64-bit Code

  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Compiling 64-bit Code

    Hi, I'm trying to compile some 64-bit code and wouldn't know where to begin. I'm using Qt Creator 2.2.0 - based on Qt 4.7.4 (32 bit). I tried simply changing win32 to win64 in the .pro file but looks like win64 doesn't exist. What needs to be done to compile 64 bit code?

  2. #2
    Join Date
    May 2006
    Location
    Leeds, West Yorkshire, UK.
    Posts
    17
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Compiling 64-bit Code

    Morning Atomic_Sheep,

    while 64 bit systems can install and run 32 bit applications quite happily, the reverse is not true. If your system is 32 bit then you cannot compile 64 bit code as the whole environment, including Qt Creator, will need to be running as 64 bit. Even if your system is 64 bit, you cannot - as far as I am aware - compile 32 bit unless you have installed a suitable compiler toolchain, and configured Qt Creator with a 32 bit compiler.

    On my Linux 64 bit laptop, I can go to tools->options, select Build & Run, and in there I see two auto-detected compilers, GCC 64 bit and GCC 32 bit. Windows might be different of course.

    When you put "win32" in the pro file, you are telling the build system that "qmake will run in win32 mode. In this mode, Windows file naming and path conventions will be used, additionally testing for win32 (as a scope) will succeed. This is the default mode on Windows." (From the Qmake manual.)

    HTH

    Cheers,
    Norm.
    Why do they put lightning conductors on churches?

Similar Threads

  1. Replies: 2
    Last Post: 9th January 2016, 11:38
  2. Compiling 4.7 code on 4.2
    By stefan in forum Qt Programming
    Replies: 6
    Last Post: 15th July 2011, 11:46
  3. Problem compiling Qt 4.7.0 code with d3d10.h
    By pogo11 in forum Qt Programming
    Replies: 2
    Last Post: 12th October 2010, 23:20
  4. Replies: 0
    Last Post: 27th August 2010, 10:36
  5. Compiling QT4 Code using cmake 2.6
    By Serenity in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2008, 20:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.