wiki:RlsUS3CentOS6.6

US3 Build instructions for Centos 6.6 Get base dependencies

  • sudo yum update
  • sudo yum install epel-release-6-8.noarch
  • sudo yum install tigervnc
  • sudo yum install torque
  • sudo yum install munge
  • sudo yum install rsh
  • sudo yum install mesa-libGLU
  • sudo yum install gstreamer
  • sudo yum install openmpi
  • sudo yum install rsh
  • sudo yum install mesa-libGLU
  • sudo yum install gstreamer
  • sudo yum install openmpi
  • sudo yum install php-mysql
  • sudo yum install php-devel
  • sudo yum install ImageMagick
  • sudo yum install httpd-devel
  • sudo yum install mailx
  • sudo yum install mod_nss

Get US3 dependencies

    cd
    mkdir us3_build
    cd us3_build
    sudo yum install gcc gcc-c++ make openssl-devel
    sudo yum install libtiff libjpeg libpng
    sudo yum install qt qt-devel qt-x11 qt-mysql mlocate mysql mysql-devel

Build qt

    wget https://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
    tar xvf qt-everywhere-opensource-src-4.8.6.tar.gz
    cd qt-everywhere-opensource-src-4.8.6
    ./configure -prefix /opt/qt-4.8.6 -debug-and-release -developer-build -qt-sql-mysql -nomake examples -nomake demos -opengl -svg -v
    gmake -j12
    sudo gmake install
    sudo ln -v -sfn /opt/qt-4.8.6 /opt/qt
    cd ..

Build Qwt (tested with v5.2.2)

    wget http://netcologne.dl.sourceforge.net/project/qwt/qwt/5.2.2/qwt-5.2.2.tar.bz2
    tar xvf qwt-5.2.2.tar.bz2
    cd qwt-5.2.2
    qmake-qt4
    make -j12
    sudo make install
    sudo ln -v -sfn /usr/local/qwt-5.2.2 /usr/local/qwt
    cd ..

Build QtSingleApplication (part of the Qt Solutions)

    wget -O qt-solutions-master.zip https://github.com/qtproject/qt-solutions/archive/master.zip
    unzip qt-solutions-master.zip
    cd qt-solutions-master/qtsingleapplication
    ./configure
    qmake-qt4
    make
    cd ..

Buid US3

  • sudo yum install subversion
  • sudo yum install qwtplot3d-qt4
  • sudo yum install perl-HTML-Template perl-Template-Toolkit
  • sudo ln -s /usr/bin/qmake-qt4 /usr/bin/qmake
  • svn co svn://bcf2.uthscsa.edu/ultrascan3/trunk ultrascan3
  • cd ultrascan3

UltraScan-III compilation consists of next steps:

    cp local.pri.template local.pri

Edit local.pri

    vi local.pri
    #SetUp QWTPATH = /usr/local/qwt
    #QWTLIB = -L../../lib -L../lib -L/usr/local/qwt/lib -lqwtplot3d-qt4 -lqwt -lGLU
    #SINGLEDIR = /home/$USER/us3_build/qt-solutions-master/qtsingleapplication/src
    #MYSQLDIR = /usr/lib64/mysql/
    #MYSQLPATH = /usr/include/mysql

Edit build script

    export PATH=/opt/qt-4.8.6/bin:$PATH:/home/mazhar/stage/us3/ultrascan3/bin
    export LD_LIBRARY_PATH=/usr/lib64/mysql/:/usr/local/qwt/lib/:/home/mazhar/stage/us3/ultrascan3/lib:$LD_LIBRARY_PATH
    bash makeall.sh

Finish setup

  • Setup environment variables
  • add US3_DIR/bin to PATH
  • add US3_DIR/lib to LD_LIBRARY_PATH

Start VNC

   sudo yum install tigervnc-server

AWS instructions:

  • sudo yum update
  • sudo yum group install "Development Tools"
  • sudo yum install qt qt-devel qt-x11 qt-mysql mlocate mysql mysql-devel
  • sudo yum install tigervnc-server
   export PATH=/usr/lib64/qt4/bin/:$PATH
   wget http://netcologne.dl.sourceforge.net/project/qwt/qwt/5.2.2/qwt-5.2.2.tar.bz2
   tar xvf qwt-5.2.2.tar.bz
   cd qwt-5.2.2
   qmake
   make -j 12
   sudo make install
   sudo ln -v -sfn /usr/local/qwt-5.2.2 /usr/local/qwt
   wget -O qt-solutions-master.zip https://github.com/qtproject/qt-solutions/archive/master.zip
   unzip qt-solutions-master.zip
   cd qt-solutions-master/qtsingleapplication
   ./configure
   qmake
   make
   make install
   cd ../../ git
   clone https://github.com/bitfusionio/us3.git
   cd us3
   bash makeall.sh
   source setenv.sh
Last modified 3 years ago Last modified on Jan 28, 2016 8:51:31 PM