Salome HOME
Add the shell command
[tools/sat.git] / data / compil_scripts / qt.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "Qt" $VERSION
5 echo "##########################################################################"
6
7 rm -Rf $PRODUCT_INSTALL
8
9 cp -r $SOURCE_DIR/* .
10
11 echo
12 echo "*** configure"
13 CXXFLAGS="-fpermissive" ./configure -prefix $PRODUCT_INSTALL -release -opensource -no-rpath \
14     -verbose -no-separate-debug-info -confirm-license -qt-libpng -no-sql-cli
15 if [ $? -ne 0 ]
16 then
17     echo "ERROR on configure"
18     exit 1
19 fi
20
21 echo
22 echo "*** make" $MAKE_OPTIONS
23 make $MAKE_OPTIONS
24 if [ $? -ne 0 ]
25 then
26     echo "ERROR on make"
27     exit 2
28 fi
29
30 echo
31 echo "*** make install"
32 make install
33 if [ $? -ne 0 ]
34 then
35     echo "ERROR on make install"
36     exit 3
37 fi
38
39 echo "*** create link for lib64"
40 cd $PRODUCT_INSTALL
41 ln -s lib lib64
42
43
44 echo "*** correction of a problem with webcore and jscore libraries"
45 cd ${PRODUCT_INSTALL}/lib && sed -i "s% -L../../WebCore/release%%g;s% -L../../JavaScriptCore/release%%g;s% -lwebcore%%g;s% -ljscore%%g" libQtWebKit.la
46
47 echo "*** Adding qt.conf file in order to be able to compile using the moved Qt installation"
48 cd ${PRODUCT_INSTALL}/bin && echo -e "[Paths]\nPrefix=..\nBinaries=bin" > qt.conf
49
50 echo
51 echo "########## END"
52