Salome HOME
bos #30109 bos #29947 and PERSALYS documentation switched on
[tools/sat_salome.git] / products / compil_scripts / qt-5.6.1.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "Qt" $VERSION
5 echo "##########################################################################"
6
7
8
9 # OP 28/04/2017 Artifact 8644 : probleme de longueur sur certaines commandes
10 #                               de compilation Qt. On fait tout dans les sources
11 #CURRENT_DIR=`pwd`
12 cd $SOURCE_DIR
13 if [ $? -ne 0 ]
14 then
15     echo "ERROR on $SOURCE_DIR access"
16     exit 1
17 fi
18
19 echo
20 echo "*** configure"
21 # OP 28/04/2017 Artifact 8644 : probleme de longueur sur certaines commandes
22 #                               de compilation Qt. On fait tout dans les sources
23 #CXXFLAGS="-fpermissive" $SOURCE_DIR/configure -prefix $PRODUCT_INSTALL -release -opensource -no-rpath \
24 #    -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime
25 CXXFLAGS="-fpermissive" ./configure -prefix $PRODUCT_INSTALL -release -opensource -no-rpath \
26     -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine
27 if [ $? -ne 0 ]
28 then
29     echo "ERROR on configure"
30 # OP 28/04/2017 Artifact 8644 : modification du numero d'erreur +
31 #                               repositionnement dans le repertoire d'origine
32 #    exit 1
33 #    cd $CURRENT_DIR
34     exit 2
35 fi
36
37 echo
38 echo "*** make" $MAKE_OPTIONS
39 make $MAKE_OPTIONS
40 if [ $? -ne 0 ]
41 then
42     echo "ERROR on make"
43     # OP 28/04/2017 Artifact 8644 : modification du numero d'erreur +
44 #                               repositionnement dans le repertoire d'origine
45 #    exit 2
46 #    cd $CURRENT_DIR
47     exit 3
48 fi
49
50 echo
51 echo "*** make install"
52 make install
53 if [ $? -ne 0 ]
54 then
55     echo "ERROR on make install"
56     # OP 28/04/2017 Artifact 8644 : modification du numero d'erreur +
57 #                               repositionnement dans le repertoire d'origine
58 #    exit 3
59 #    cd $CURRENT_DIR
60     exit 4
61 fi
62
63 # OP 04/03/2017 Artifact 8644 : ajout du make clean pour nettoyer les sources
64 echo
65 echo "*** make clean"
66 make clean
67 if [ $? -ne 0 ]
68 then
69     echo "ERROR on make clean"
70 # OP 04/05/2017 Artifact 8644 : repositionnement dans le repertoire d'origine
71 #    cd $CURRENT_DIR
72     exit 5
73 fi
74
75 if [[ $BITS == "64" ]]
76 then
77     echo "*** create link for lib64"
78     cd $PRODUCT_INSTALL
79 # OP 04/05/2017 Artifact 8644 : verif de la bonne execution de la commande
80     if [ $? -ne 0 ]
81     then
82         echo "ERROR on $PRODUCT_INSTALL access"
83         exit 6
84     fi
85     ln -s lib lib64
86     # OP 04/05/2017 Artifact 8644 : verif de la bonne execution de la commande
87     if [ $? -ne 0 ]
88     then
89         echo "ERROR on create link for lib64 in $PRODUCT_INSTALL"
90         exit 7
91     fi
92 fi
93
94 echo
95 echo "########## END"
96