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
Forum Updated to NodeBB v4.3 + New Features

Building Qt 4.8.0 on Redhat linux

Scheduled Pinned Locked Moved General and Desktop
17 Posts 4 Posters 15.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.
  • L Offline
    L Offline
    ludde
    wrote on last edited by
    #2

    Do you need WebKit? If not, you can add the configure flag -no-webkit, and Qt will be compiled without WebKit, hopefully avoiding the problem.

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

      bq. cc1plus: warnings being treated as errors

      You can try to delete -Werror flag from Makefile in /scratchvnarveka/Qt_built/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkitSource/JavaScriptCore folder

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vivek.narvekar
        wrote on last edited by
        #4

        Hello ludde and AcerExtensa,

        Thanks a lot for responding.

        @ ludde - I have already tried with -no-webkit option, while I was waiting for someone to reply here, and the builds were successful. I was just wondering If I am missing some prerequisites, because of which, I am getting build error in the standard Qt package.

        @AcerExtensa -i will definitely give a try, to your suggestion

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

          Dear all,

          I have the same problem. However, I need webkit. How do I do to past the error? I can not find -Werror in /scratchvnarveka/Qt_built/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkitSource/JavaScriptCore folder.

          Thanks all

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

            bq. cc1plus: warnings being treated as errors

            It's definitely Werror flag somewhere. search for it:
            @grep -r "Werror" /path/to/qt/3rdpart/webkit/dir@

            You also can try to disable this warning:

            bq. warning: lowering visibility of

            add -fpermessive to Project Makefile. or a better way, add
            @QMAKE_CXXFLAGS = -fpermissive@
            to Qt project.pro... you also need to clean config and rerun configure.

            Where is many way to diagnose and switch warnings in gcc. Read "this":http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc/Warning-Options.html

            God is Real unless explicitly declared as Integer.

            1 Reply Last reply
            0
            • 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