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. Building Qt 4.8.0 on Redhat linux
Qt 6.11 is out! See what's new in the release blog

Building Qt 4.8.0 on Redhat linux

Scheduled Pinned Locked Moved General and Desktop
17 Posts 4 Posters 17.3k 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.
  • W Offline
    W Offline
    Weilly
    wrote on last edited by
    #7

    Dear AcerExtensa,

    Thanks! I will try it

    Best regards,
    Weilly

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Weilly
      wrote on last edited by
      #8

      Dear AcerExtensa,

      I search for it using
      grep -r "Werror" ./src/3rdparty/webkit

      I just found QMAKE_CXXFLAGS += -Werror in Wenkit.pri .I remove it to configure and make. I got the errror as http://developer.qt.nokia.com/forums/viewthread/14542/

      So, is there anything I miss?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AcerExtensa
        wrote on last edited by
        #9

        Which version of gcc do you have?

        can you post output of following cmd:
        @gcc -v@

        God is Real unless explicitly declared as Integer.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #10

          Are you cross-compiling QT for mobile device?

          bq. ./wtf/MathExtras.h:252: error: ‘std::isfinite’ has not been declared

          Problem can be old gcc version, or <cmath> is not included.

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Weilly
            wrote on last edited by
            #11

            Yes. I use cross-compiling Qt for arm device.

            1. My Deshtop PC OS:Ubuntu 10.10
            2. Toolchian: arm-2007q1-10-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar
            3. I modify qt-everywhere-opensource-arc-4.8.0/mkspecs/qws/linux-arm-g++/qmake.conf as below:
              ================================================

            #qmake configuration for building with arm-linux-g++

            include(../../common/linux.conf)
            include(../../common/gcc-base-unix.conf)
            include(../../common/g++-unix.conf)
            include(../../common/qws.conf)
            #modifications to g++.conf
            QMAKE_CC = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-gcc
            QMAKE_CXX = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-g++
            QMAKE_LFLAGS = -Wl,-rpath=/home/tslib/lib
            QMAKE_LINK = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-g++
            QMAKE_LINK_SHLIB = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-guneabi-g++
            #modifications to linux.conf
            QMAKE_AR = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-ar cqs
            QMAKE_OBJCOPY = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-objcopy
            QMAKE_STRIP = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-strip

            QMAKE_INCDIR = /home/tslib/include
            QMAKE_LIBDIR = /home/tslib/lib

            load(qt_config)

            1. qt4.8.0 download from http://qt.nokia.com/downloads/embedded-linux-cpp

            2. My configure line: ./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vnc

            3. gcc -v shows
              gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

            Thank you!

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AcerExtensa
              wrote on last edited by
              #12

              Ok, what does following cmd says:
              bq. /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-gcc -v

              cross-compiling Qt is always tricky...

              look in wtf/MathExtras.h file in webkit dir and ensure what <cmath> is included if not include it
              @#include <cmath>@

              recompile and post next compiler error...

              God is Real unless explicitly declared as Integer.

              1 Reply Last reply
              0
              • W Offline
                W Offline
                Weilly
                wrote on last edited by
                #13

                /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-gcc -v
                shows 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)

                Yes. wtf/MathExtras.h has already included
                #include <cmath>

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AcerExtensa
                  wrote on last edited by
                  #14

                  can you try to compile it with at least 4.5.2 cross compiled gcc version?

                  God is Real unless explicitly declared as Integer.

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    Weilly
                    wrote on last edited by
                    #15

                    Dear AcerExtensa,

                    I'm trying it. Wish i works.

                    Thanks

                    Regards,
                    Weilly

                    1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      Weilly
                      wrote on last edited by
                      #16

                      Dear AcerExtensa,

                      I use arm-none-linux-gnueabi-gcc -v 4.6.1. I works. Thank you so much.

                      Regards,
                      Weilly

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AcerExtensa
                        wrote on last edited by
                        #17

                        Happy for you :) , have fun ;)

                        God is Real unless explicitly declared as Integer.

                        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