Results 1 to 5 of 5

Thread: 64 bit compatibility

  1. #1
    Join Date
    Dec 2009
    Posts
    47
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Question 64 bit compatibility

    I am rebuilding an older 32 bit app (now in MFC) with Qt, but I have customers who are moving to 64 bit Windows. Are the 32 bit Qt libraries compatible with 64 bit Windows? What precautions need to be taken in design to allow the source to be compiled with both compilers? Any links on this issue would be appreciated. I searched on 64 bit and got nothing. Thanks.
    Last edited by johnmauer; 22nd December 2009 at 16:08. Reason: email response requested

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 64 bit compatibility

    Applications on 64 bit machines can still use 32 bit libraries. I think the application has to be 32 bit as well, not sure about that. Obviously it is possible to rebuild the Qt libraries for 64 bit targets.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. The following user says thank you to franz for this useful post:

    johnmauer (22nd December 2009)

  4. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: 64 bit compatibility

    I'm programming application on Windows7 64bit (previously Vista Business 64bit) with Qt compiled with VS2005 for 32bit and it's working ok on my system but once I faced problem with "Application configuration is incorrect" when trying to run my application on WinXP. But going in another direction is ok (I used to program on WinXP 32bit and it was working in Vista 64bit with no problems). I also compiled Qt for x64 on my Windows7 with no problems and done some simple apps for x64. The problem is when you need some 3rd party libraries and they are 32bit only - linker complains when trying to build app for x64 and link with x86 libraries.

    I noticed some performance gain in x64 application (compared x64 version on Vista x64 with x86 version on WinXP 32bit), even 30% faster with some simple but time consuming alghoritm. But running 32bit app on x64 Windows can result in performance loss (didn't measure but sometimes it is noticeable but nothing serious) because of running apps on WoW64 -> Windows on Windows64.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  5. The following user says thank you to faldzip for this useful post:

    johnmauer (25th December 2009)

  6. #4
    Join Date
    Dec 2009
    Posts
    47
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: 64 bit compatibility

    Thanks, I appreciate the response. I'm programming on WinXp with VS 2008 because Vista(32 bit) had too many problems. I, too, have had problems with 3rd party libraries that would not work on 64 bit, which is why I asked the question.

  7. #5
    Join Date
    Sep 2009
    Location
    Tashkent, Uzbekistan
    Posts
    107
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: 64 bit compatibility

    Guys, not so fast. Of course you can run 32-bit code on 64-bit OS but it is emulation mode. That means that some of your hardware or optimization tricks will stop to work. Also it is unwise not to use full 64 bit data types. I suggest to write down native 64 bit code or use preprocessor's #ifdef's to provide 32/64 compliant code base with ability to produce both 32 and 64 bit native versions.

    Regards,
    -- tanuki

Similar Threads

  1. ffdshow compatibility manager popup
    By rbp in forum Installation and Deployment
    Replies: 5
    Last Post: 20th May 2010, 20:31
  2. Application deployment on Mac OS X (10.5)
    By ghorwin in forum Installation and Deployment
    Replies: 1
    Last Post: 11th March 2010, 14:38
  3. Fail with new GCC and backward compatibility
    By estanisgeyer in forum General Programming
    Replies: 0
    Last Post: 4th July 2009, 14:02
  4. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  5. Replies: 15
    Last Post: 21st April 2007, 17:46

Tags for this Thread

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.