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