VectorLinux
July 25, 2014, 02:49:44 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Qt 4.3.4  (Read 962 times)
Dweeberkitty
Packager
Vectorian
****
Posts: 836



WWW
« 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


« Reply #1 on: March 24, 2008, 04: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:
# 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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!