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. Install qt 5.6.1 x86 in platform CentOS7.0 x64
Forum Updated to NodeBB v4.3 + New Features

Install qt 5.6.1 x86 in platform CentOS7.0 x64

Scheduled Pinned Locked Moved Solved Installation and Deployment
22 Posts 3 Posters 11.0k 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.
  • F fighter

    gmake executed normally. But qt 32bit header files cannot find in the disk, instead of 64bit header files have been found(for example, qconfig-32.h did not exist in the disk, instead qconfig-64.h was found in the disk. )I don't know the reason. Can anyone help me?
    Thank you. The following is my installation steps:

    yum install libgcc-4.8.5-11.el7.i686
    yum install libstdc++-4.8.5-11.el7.i686
    yum install glibc-devel.i686
    yum install openssl-devel.i686
    ../qt-source/configure -prefix /opt/Qt5.6.1 -platform linux-g++-32 -no-compile-examples
    gmake
    gmake install
    
    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #13

    @fighter You can check whether built Qt libraries are 32bit or 64 bit like this (in a terminal):

    $ file PATH_TO_QT/lib/libQt5Core.so
    

    If libQt5Core.so is a symbolic link then just use the file it points to.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fighter
      wrote on last edited by
      #14

      @jsulm Thank you for your reply.

      [root@localhost ~]# find / -name "libQt5Core.so"
      /home/fighter/qt-build/qtbase/lib/libQt5Core.so
      /usr/lib64/libQt5Core.so
      /opt/Qt5.6.1/lib/libQt5Core.so

      [root@localhost ~]# file /usr/lib64/libQt5Core.so.5.6.1
      /usr/lib64/libQt5Core.so.5.6.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=b148d33ba6c8e59e0a1 61ff2a0c2af35ee42ad6c, stripped

      [root@localhost ~]# file /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1
      /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=2434bdcd 1cc892d42e5ff1ba772a48237a8a3e66, stripped

      jsulmJ 1 Reply Last reply
      0
      • F fighter

        @jsulm Thank you for your reply.

        [root@localhost ~]# find / -name "libQt5Core.so"
        /home/fighter/qt-build/qtbase/lib/libQt5Core.so
        /usr/lib64/libQt5Core.so
        /opt/Qt5.6.1/lib/libQt5Core.so

        [root@localhost ~]# file /usr/lib64/libQt5Core.so.5.6.1
        /usr/lib64/libQt5Core.so.5.6.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=b148d33ba6c8e59e0a1 61ff2a0c2af35ee42ad6c, stripped

        [root@localhost ~]# file /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1
        /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=2434bdcd 1cc892d42e5ff1ba772a48237a8a3e66, stripped

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #15

        @fighter said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

        /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1

        is a 32bit binary

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        F 1 Reply Last reply
        0
        • jsulmJ jsulm

          @fighter said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

          /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1

          is a 32bit binary

          F Offline
          F Offline
          fighter
          wrote on last edited by
          #16

          @jsulm Yes. /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1 is 32bit. But it is strange that qconfig-32.h
          did not exist in the disk, instead qconfig-64.h was found in the disk.

          jsulmJ 1 Reply Last reply
          0
          • F fighter

            @jsulm Yes. /opt/Qt5.6.1/lib/libQt5Core.so.5.6.1 is 32bit. But it is strange that qconfig-32.h
            did not exist in the disk, instead qconfig-64.h was found in the disk.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #17

            @fighter said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

            qconfig-32.h

            The file is actually called qconfig.h

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            F 1 Reply Last reply
            0
            • jsulmJ jsulm

              @fighter said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

              qconfig-32.h

              The file is actually called qconfig.h

              F Offline
              F Offline
              fighter
              wrote on last edited by
              #18

              @jsulm said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

              qconfig.h
              The content of qconfig.h have qconfig-32.h and qconfig-64.h. Please look at the following:

              [root@localhost ~]# ls -l /usr/include/QtCore/qconfig.h
              lrwxrwxrwx. 1 root root 18 Jul 21 17:01 /usr/include/QtCore/qconfig.h -> qconfig-multilib.h
              [root@localhost ~]# cat /usr/include/QtCore/qconfig-multilib.h
              /* qconfig.h */
              /* This file is here to prevent a file conflict on multiarch systems.  A
               * conflict will occur because qconfig.h has arch-specific definitions.
               *
               * DO NOT INCLUDE THE NEW FILE DIRECTLY -- ALWAYS INCLUDE THIS ONE INSTEAD. */
              
              #ifndef QCONFIG_MULTILIB_H
              #define QCONFIG_MULTILIB_H
              #include <bits/wordsize.h>
              
              #if __WORDSIZE == 32
              #include "QtCore/qconfig-32.h"
              #elif __WORDSIZE == 64
              #include "QtCore/qconfig-64.h"
              #else
              #error "unexpected value for __WORDSIZE macro"
              #endif
              
              #endif
              
              jsulmJ 1 Reply Last reply
              0
              • F fighter

                @jsulm said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

                qconfig.h
                The content of qconfig.h have qconfig-32.h and qconfig-64.h. Please look at the following:

                [root@localhost ~]# ls -l /usr/include/QtCore/qconfig.h
                lrwxrwxrwx. 1 root root 18 Jul 21 17:01 /usr/include/QtCore/qconfig.h -> qconfig-multilib.h
                [root@localhost ~]# cat /usr/include/QtCore/qconfig-multilib.h
                /* qconfig.h */
                /* This file is here to prevent a file conflict on multiarch systems.  A
                 * conflict will occur because qconfig.h has arch-specific definitions.
                 *
                 * DO NOT INCLUDE THE NEW FILE DIRECTLY -- ALWAYS INCLUDE THIS ONE INSTEAD. */
                
                #ifndef QCONFIG_MULTILIB_H
                #define QCONFIG_MULTILIB_H
                #include <bits/wordsize.h>
                
                #if __WORDSIZE == 32
                #include "QtCore/qconfig-32.h"
                #elif __WORDSIZE == 64
                #include "QtCore/qconfig-64.h"
                #else
                #error "unexpected value for __WORDSIZE macro"
                #endif
                
                #endif
                
                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by jsulm
                #19

                @fighter said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

                /usr/include/QtCore/qconfig-multilib.h

                This header file is not from your own build which is in /opt/Qt5.6.1
                Same for /usr/include/QtCore/qconfig.h

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                F 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @fighter said in Install qt 5.6.1 x86 in platform CentOS7.0 x64:

                  /usr/include/QtCore/qconfig-multilib.h

                  This header file is not from your own build which is in /opt/Qt5.6.1
                  Same for /usr/include/QtCore/qconfig.h

                  F Offline
                  F Offline
                  fighter
                  wrote on last edited by
                  #20

                  @jsulm
                  You mean I should use my own build header file in /opt/Qt5.6.1?

                  The file /usr/include /QtCore/qconfig.h is a link to qconfig-multilib.h.
                  The size of /usr/include /QtCore/qconfig-multilib.h is not same with /opt/Qt5.6.1/include/QtCore/qconfig.h.
                  [root@localhost ~]# ls -l /opt/Qt5.6.1/include/QtCore/qconfig.h
                  -rw-r--r--. 1 root root 4339 Jul 25 16:41 /opt/Qt5.6.1/include/QtCore/qconfig.h
                  [root@localhost ~]# ls -l /usr/include/QtCore/qconfig-multilib.h
                  -rw-r--r--. 1 root root 501 Nov 5 2016 /usr/include/QtCore/qconfig-multilib.h

                  jsulmJ 1 Reply Last reply
                  0
                  • F fighter

                    @jsulm
                    You mean I should use my own build header file in /opt/Qt5.6.1?

                    The file /usr/include /QtCore/qconfig.h is a link to qconfig-multilib.h.
                    The size of /usr/include /QtCore/qconfig-multilib.h is not same with /opt/Qt5.6.1/include/QtCore/qconfig.h.
                    [root@localhost ~]# ls -l /opt/Qt5.6.1/include/QtCore/qconfig.h
                    -rw-r--r--. 1 root root 4339 Jul 25 16:41 /opt/Qt5.6.1/include/QtCore/qconfig.h
                    [root@localhost ~]# ls -l /usr/include/QtCore/qconfig-multilib.h
                    -rw-r--r--. 1 root root 501 Nov 5 2016 /usr/include/QtCore/qconfig-multilib.h

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #21

                    @fighter If you want to use your build then yes you need to use the header files from your build. How else should it work?
                    /opt/Qt5.6.1/include/QtCore/qconfig.h is not a link, so nothing is missing.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    F 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @fighter If you want to use your build then yes you need to use the header files from your build. How else should it work?
                      /opt/Qt5.6.1/include/QtCore/qconfig.h is not a link, so nothing is missing.

                      F Offline
                      F Offline
                      fighter
                      wrote on last edited by
                      #22

                      @jsulm
                      Thank you for your patient reply. Thank you very much.

                      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