VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Qt 4.3.4  (Read 1156 times)

Dweeberkitty

  • Packager
  • Vectorian
  • ****
  • Posts: 836
    • Multimedia Bonus Disc
Qt 4.3.4
« on: February 28, 2008, 08:00:29 pm »

Could someone build the latest non-qt4.4 version of Qt? I need it to use on the Multimedia Bonus Disc. Thanks!
Logged
Registered Linux User #443399
Desktop: Intel Pentium D 3.33Ghz, 320GB hard drive, 2 gigs DDR2 533mhz RAM, NVIDIA Geforce 7800 GS, X2GEN 22" widescreen monitor;
Laptop: Dell Mini 9, Intel Atom 1.6Ghz, 1GB ram
Multimedia Bonus Disc website: http://www.vectorlinuxsolutions.com/

BullGates

  • Member
  • *
  • Posts: 3
Re: Qt 4.3.4
« Reply #1 on: March 24, 2008, 05:09:03 am »

I would give you the one I've built, but my system is quite changed so I guess it would be a bad idea... But you can use the crux port that I used to build mine, here it is (the credits go to Hannes Mayer, I've just changed the version to the latest one):

Code: [Select]
# Description: Qt Free Edition
# URL:         http://www.trolltech.com
# Maintainer:  Hannes Mayer, kontakt at ecarux dot de
# Depends on:  x11, libmng

name=qt4
version=4.3.4
release=1
source="http://ftp.ntua.gr/pub/X11/Qt/qt/source/qt-x11-opensource-src-$version.tar.gz"

build()
{
    cd qt-x11-opensource-src-$version

    local SQL
    if pkginfo -i mysql > /dev/null 2>&1; then
        SQL="-qt-sql-mysql -I/usr/include/mysql -L/usr/lib/mysql"
    fi

    if [ -d /usr/include/nvidia ]; then
        export CFLAGS="$CFLAGS -I/usr/include/nvidia"
        export CXXFLAGS="$CXXFLAGS -I/usr/include/nvidia"
    fi

    sed -i "s|-O2|$CXXFLAGS|" mkspecs/linux-g++/qmake.conf
    sed -i "s|-I. |$CXXFLAGS -I. |" qmake/Makefile.unix

    yes yes |
    ./configure \
-prefix /usr/share/qt \
        -bindir /usr/bin \
        -headerdir /usr/include/qt \
        -libdir /usr/lib \
        -plugindir /usr/lib/qt \
        -platform linux-g++ \
        -release -shared -sm \
-fast -pch -qdbus \
        -tablet -nis -verbose -qt-gif \
        -system-zlib -system-lib{png,jpeg,mng} \
        -no-{exceptions,nas-sound} \
-nomake examples -nomake demos \
        -x{cursor,inerama,kb,randr,render} \
        $SQL
    make
    make install INSTALL_ROOT=$PKG

    rm -rf $PKG/usr/share/qt/{doc,phrasebooks,templates,translations}
    find $PKG/usr -name '*debug' -print0|xargs -0 rm -rf

    ln -s /usr/bin        $PKG/usr/share/qt/bin
    ln -s /usr/include/qt $PKG/usr/share/qt/include
    ln -s /usr/lib        $PKG/usr/share/qt/lib
    ln -s /usr/lib/qt     $PKG/usr/share/qt/plugins
    ln -s linux-g++       $PKG/usr/share/qt/mkspecs/default

    chmod -R u+w,g-sw  $PKG
    chown -R root:root $PKG
}
Logged