-
Notifications
You must be signed in to change notification settings - Fork 6
/
update_micmac.sh
34 lines (34 loc) · 1.38 KB
/
update_micmac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
echo "*******************************************************"
echo "********* UPDATE MICMAC *********"
echo "*******************************************************"
cd
cd /
echo "*******************************************************"
echo "********** DOWNLOADING THE LAST CHANGES **********"
echo "********** (This may take several minutes) **********"
echo "********** user : culture3d **********"
echo "********** password : culture3d **********"
echo "*******************************************************"
hg pull https://culture3d:culture3d@geoportail.forge.ign.fr/hg/culture3d micmac
hg update
cd build/
echo "*******************************************************"
echo "******** BUILDING MICMAC *********"
echo "*******************************************************"
cmake \
-DWITH_QT5=1 \
-DBUILD_POISSON=1 \
-DBUILD_RNX2RTKP=1 \
-DWITH_OPENCL=ON \
-DWITH_OPEN_MP=ON \
-DWITH_ETALONPOLY=ON \
-DWITH_DOXYGEN=ON \
../
NBRP=$(cat /proc/cpuinfo | grep processor | wc -l)
make -j$NBRP
make install
echo "*******************************************************"
echo "******** MICMAC UPDATED *********"
echo "******** Edit by Sylvain POULAIN for Docker **********"
echo "******** <sylvain.poulain@giscan.com> **********"
echo "*******************************************************"