Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Questions about building 32 bit and 64 bit version of QT.

Questions about building 32 bit and 64 bit version of QT.

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cshong
    wrote on last edited by
    #1

    Platform: Windows and Linux
    QT version: 4.8.3
    Compiler to be used on Windows: Microsoft Visual Studio 2012 on Windows (Using command prompt)

    I would like to compile both 32 bit and 64 bit version on Windows and Linux.

    Assume that I build 32 bit version first, and then followed by 64 bit version. If I build both in the same directory, will the files of 32 bit version being replaced (overwritten) by files of 64 bit version? On linux, even if I use different directories for building, when installing, will the 64 bit files being installed in the same directory as 32 bit files and replace (overwrite) the 32 bit files?

    I may have more questions to ask in the future.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I hate saying this, but the framework is Qt, not QT (which stands for Quick Time).

      I quite frankly don't know whether libs will be overwritten (but it seems likely), since I usually don't go into multiarch compilation.

      What I do know, though, is that you can prevent the problem from happening by doing in-source builds. This way Qt is not being installled globally, but only locally. Here is how to do it (using Unix shell syntax. With minor adjustments it also works on Windows):
      @
      cd qt/source/code
      unset QTDIR
      export PATH=$PWD/bin:$PATH
      ./configure -prefix $PWD // plus all other configure switches you need
      make -j5 // number of cores + 1
      @

      And that is it. Do NOT run "make install" afterwards - Qt will be, as I've mentioned, installed locally, with libraries in lib/, includes in include/, and binaries and tools in bin/.

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved