Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile for 32 bit on 64 Bit Linux

Compile for 32 bit on 64 Bit Linux

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 3.1k Views 1 Watching
  • 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.
  • Bear35645B Offline
    Bear35645B Offline
    Bear35645
    wrote on last edited by
    #1

    Hello All,

    I have a 64-Bit machine and have installed Qt 5.4 on it. The Operating system is Fedora 21. I need to compile my code for a 32 bit machine. I have installed the 32 bit libraries, but my program still will not make cleanly. One of the errors I get is the following:
    :-1: error: skipping incompatible /home/kbrooks/Qt/5.4/gcc_64/lib/libQt5Gui.so when searching for -lQt5Gui

    I am assuming there is a way to install these Qt Libraries for 32 bit. What would be the quickest way to do this?

    Thanks in advance,
    Kevin

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The quickest would be to grab the 32bit installer for Qt 5.4.0

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Bear35645B Offline
        Bear35645B Offline
        Bear35645
        wrote on last edited by
        #3

        SGaist,

        Thanks for the reply, when I attempt to install the 32 bit version of Qt 5.4, I get "error while loading shared librarys: libSM.so.6: cannot open shared object file: No such file or directory.

        I attempted to use yum to installed it, but it said it was up to date.

        Kevin

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you install the 32bit bit dependencies on your system ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Bear35645B Offline
            Bear35645B Offline
            Bear35645
            wrote on last edited by
            #5

            What dependencies do I need to install. I am sure they are not.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              AFAIK you can install the same you have currently but for the i686 architecture

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Bear35645B Offline
                Bear35645B Offline
                Bear35645
                wrote on last edited by
                #7

                This got so painful, I decided to install Fedora 32 bit on my machine. Now when I try to compile just a basic program, I get an error "cannot find -lGL." For the life of me, I cannot find where this libraries lives, or how to fix this error.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  The -lGL error question has been asked many time on the forum (search for "lGL error").

                  You are missing the OpenGL dev libraries.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • Bear35645B Offline
                    Bear35645B Offline
                    Bear35645
                    wrote on last edited by
                    #9

                    Thank you. I now have it working.

                    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