Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5.1.0-rc2 building for Centos 6.4

    Installation and Deployment
    3
    5
    2919
    Loading More Posts
    • 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.
    • T
      timoc last edited by

      Hi,

      I'm having all sorts of trouble building from source using these instructions:
      http://qt-project.org/wiki/Building_Qt_5_from_Git

      I have had problems ranging from making gcc crash (yes crash!) to unmet freetype dependencies at link time.

      Does anyone have any Centos build instructions they can point to? or working configuration options?

      1 Reply Last reply Reply Quote 0
      • S
        sahumada last edited by

        what configure options are you using and what's the error log ?

        Sergio Ahumada

        1 Reply Last reply Reply Quote 0
        • T
          timoc last edited by

          I was building with:
          ./configure -prefix /opt/local/qt-5.1.0 -developer-build -opensource -nomake tests -no-gtkstyle -opensource -confirm-license -nomake examples -fully-process -qt-xcb -qt-zlib -no-sql-mysql -no-glib

          but i have it building now with:

          ./configure -prefix /opt/local/qt-5.1.0 -opensource -nomake tests -no-gtkstyle -opensource -confirm-license -nomake examples -fully-process -qt-zlib -no-sql-mysql -no-glib -no-eglfs -no-opengl

          This is after installing a bunch of extra devel packages, which i have no idea as to if they are needed or not. I think the only requirement is -no-eglfs and -no-sql-mysql. I'm tweaking the configure to see what i can build, and will post back to this thread if i have anything new.

          Here is a script i have concocted for prepping a vanilla centos 6.4 box for development, which I've added the qt devel requirements to, which should make life easier for those QT developers that want to try it for themselves in a Centos VM.

          @
          #!/bin/bash

          REQUIRED_PACKAGES+=" GitPython SDL-devel apr autoconf automake bc binutils bison bzip2 cairo-devel cairo-spice-devel cairomm-devel"
          REQUIRED_PACKAGES+=" ccache chrpath cmake curl cvs dbus-c++-devel dbus-devel dbus-glib-devel dbus-python-devel dbus-qt-devel"
          REQUIRED_PACKAGES+=" device-mapper-multipath diffstat docbook-dtds docbook-style-dsssl docbook-style-xsl docbook-utils"
          REQUIRED_PACKAGES+=" doxygen expect flex fontconfig-devel freeglut-devel freetype freetype-devel ftp gawk gcc gcc-c++"
          REQUIRED_PACKAGES+=" gedit gettext git gitosis glib-devel glib2-devel glibc-devel glibc-static glibc.i686 glibmm24-devel"
          REQUIRED_PACKAGES+=" gnome-doc-utils gperf graphviz groff gtkglext-devel gzip help2man kernel-devel kernel-headers kpartx"
          REQUIRED_PACKAGES+=" lftp libICE-devel libSM-devel libX11-devel libXScrnSaver-devel libXau-devel libXaw-devel libXcomposite-devel"
          REQUIRED_PACKAGES+=" libXcursor-devel libXdamage-devel libXdmcp-devel libXevie-devel libXext-devel libXfixes-devel libXfont-devel"
          REQUIRED_PACKAGES+=" libXft-devel libXi-devel libXinerama-devel libXmu-devel libXp-devel libXpm-devel libXrandr-devel libXrender"
          REQUIRED_PACKAGES+=" libXrender-devel libXres-devel libXt-devel libXtst-devel libXv-devel libXvMC-devel libXxf86dga-devel"
          REQUIRED_PACKAGES+=" libXxf86misc-devel libXxf86vm-devel libdmx-devel libfontenc-devel libgudev1-devel-147 libicu-devel"
          REQUIRED_PACKAGES+=" libtool libxcb libxcb-devel libxkbfile-devel libxml2-python libxml2-static libxslt-devel linuxdoc-tools"
          REQUIRED_PACKAGES+=" m4 make mercurial mesa-libGL-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libOSMesa-devel mysql-devel"
          REQUIRED_PACKAGES+=" nano ncurses openjade openldap-clients patch pcre pcre-devel perl perl-ExtUtils-MakeMaker python"
          REQUIRED_PACKAGES+=" python-devel python-ldap python-lxml python-unittest2 quilt redhat-lsb ruby sed spice-glib sqlite-devel"
          REQUIRED_PACKAGES+=" subversion syslinux tar tcl-devel telnet tetex-IEEEtran tetex-tex4ht texi2html texinfo unzip"
          REQUIRED_PACKAGES+=" vim-common wget wine xcb-util xcb-util-devel xorg-x11-drv-evdev-devel xorg-x11-drv-intel-devel"
          REQUIRED_PACKAGES+=" xorg-x11-drv-mouse-devel xorg-x11-drv-openchrome-devel xorg-x11-drv-synaptics-devel xorg-x11-drv-wacom-devel"
          REQUIRED_PACKAGES+=" xorg-x11-proto-devel xorg-x11-server-devel xorg-x11-xkb-utils-devel xorg-x11-xtrans-devel "
          REQUIRED_PACKAGES+=" xterm xz zlib-devel"

          sudo yum -y groupinstall "Development Tools"
          sudo yum -y install ${REQUIRED_PACKAGES}

          @

          1 Reply Last reply Reply Quote 0
          • T
            timoc last edited by

            Now getting:
            @
            ./configure -prefix /opt/local/qt-5.1.0 -opensource -nomake tests -opensource -confirm-license -nomake examples -fully-process -no-sql-mysql -no-eglfs

            In file included from css/BasicShapeFunctions.cpp:36:
            css/CSSPrimitiveValueMappings.h: In constructor ‘WebCore::CSSPrimitiveValue::CSSPrimitiveValue(T) [with T = WebCore::CustomFilterMeshBoxType]’:
            css/CSSPrimitiveValueMappings.h:3511: error: ‘CSSValueFilterBox’ was not declared in this scope
            css/CSSPrimitiveValueMappings.h: In member function ‘WebCore::CSSPrimitiveValue::operator T() const [with T = WebCore::CustomFilterMeshBoxType]’:
            css/CSSPrimitiveValueMappings.h:3528: error: ‘CSSValueFilterBox’ was not declared in this scope
            gmake[3]: *** [.obj/release-shared/css/BasicShapeFunctions.o] Error 1
            gmake[3]: *** Waiting for unfinished jobs....
            In file included from css/CSSComputedStyleDeclaration.cpp:37:
            css/CSSPrimitiveValueMappings.h: In constructor ‘WebCore::CSSPrimitiveValue::CSSPrimitiveValue(T) [with T = WebCore::CustomFilterMeshBoxType]’:
            css/CSSPrimitiveValueMappings.h:3511: error: ‘CSSValueFilterBox’ was not declared in this scope
            css/CSSPrimitiveValueMappings.h: In member function ‘WebCore::CSSPrimitiveValue::operator T() const [with T = WebCore::CustomFilterMeshBoxType]’:
            css/CSSPrimitiveValueMappings.h:3528: error: ‘CSSValueFilterBox’ was not declared in this scope
            css/CSSComputedStyleDeclaration.cpp: In member function ‘WTF::PassRefPtrWebCore::CSSValue WebCore::CSSComputedStyleDeclaration::valueForFilter(const WebCore::RenderObject*, const WebCore::RenderStyle*) const’:
            css/CSSComputedStyleDeclaration.cpp:954: error: ‘CSSValueDetached’ was not declared in this scope
            gmake[3]: *** [.obj/release-shared/css/CSSComputedStyleDeclaration.o] Error 1
            gmake[3]: Leaving directory /home/timoc/tmp/qt5/qtwebkit/Source/WebCore' gmake[2]: *** [sub-Target-pri-make_first-ordered] Error 2 gmake[2]: Leaving directory /home/timoc/tmp/qt5/qtwebkit/Source/WebCore'
            gmake[1]: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
            gmake[1]: Leaving directory `/home/timoc/tmp/qt5/qtwebkit'
            gmake: *** [module-qtwebkit-make_first] Error 2
            @

            1 Reply Last reply Reply Quote 0
            • I
              iwyc last edited by

              Have been using Qt4.8.5 on CentOS 6.4 for a while now. More recently just built latest Qt5.3.0.
              CentOS requires the development tools installed.
              Added the xcb-util-devel package to resolve xcb.
              Added gstreamerdevel packages to enable Phonon support
              Then ./configure -prefix <destination>

              1 Reply Last reply Reply Quote 0
              • First post
                Last post