Building Qt5 on CentOS 6.3

I am using following method to build Qt5 on CentOS6.3.
Make two dir's. Extract Qt source in source dir. Keep following script in home dir. Execute it from there.

Also go through configure, make and make install phases one-by-one.

#!/bin/sh
export QTBUILD=/home/user/qtsource/qt-everywhere-opensource-build-5.0.2
export QTSOURCE=/home/user/qtsource/qt-everywhere-opensource-src-5.0.2
cd $QTBUILD
$QTSOURCE/configure -opensource -confirm-license -qt-sql-psql -platform linux-g++ -prefix /opt/Qt-5.0.2 -nomake examples -nomake tests -no-gtkstyle
#make -j4 all
#make install
cd -


Comments

  1. One small observation here.
    Following was the original script:
    #-----------------------------------------------------------
    #!/bin/sh
    export QTBUILD=/home/user/qtsource/qt-everywhere-opensource-build-5.0.2
    export QTSOURCE=/home/user/qtsource/qt-everywhere-opensource-src-5.0.2
    cd $QTBUILD
    $QTSOURCE/configure -opensource -confirm-license -qt-sql-psql -platform linux-g++ -prefix /opt -nomake examples -nomake tests -no-gtkstyle
    #make -j4 all
    #make install
    cd -
    #-----------------------------------------------------------
    In there I had set the prefix to /opt; which caused 'make install' to install the bin, lib etc folders to be installed in /opt while I wanted them in /opt/Qt-5.0.2.
    Now this was unwanted, so I thought why don't I create a /opt/Qt-5.0.2 folder and put all these files there.
    So after I tried that I ended up with a platform plug-in error.
    Searching on the net gave me the reason that prefix causes some hardcoded paths in installed stuff like plugins, makespaces etc. So moving 'make install' ed stuff around doesn't help.
    But a complete rebuild is necessary.
    I have updated the above script with proper prefix.

    ReplyDelete

Post a Comment

Popular posts from this blog

Morning Quotes

QCalendarWidget CSS Stylesheeting