forked from JARVIS-MoCap/JARVIS-AcquisitionTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
63 lines (50 loc) · 2.16 KB
/
setup.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
echo ${machine}
cd libs/OpenCV
mkdir build
cd build
cmake -DOPENCV_ENABLE_ALLOCATOR_STATS=OFF -DCMAKE_BUILD_TYPE=RELEASE \
-DBUILD_TIFF=OFF -DWITH_TIFF=OFF -DBUILD_JPEG=OFF -DBUILD_ZLIB=OFF \
-DBUILD_WEBP=OFF -DBUILD_PNG=OFF -DWITH_OPENEXR=OFF -DWITH_OPENJPEG=OFF \
-DWITH_JASPER=OFF -DWITH_PROTOBUF=OFF -DWITH_QUIRC=OFF -DWITH_1394=OFF \
-DWITH_V4L=OFF -DWITH_GSTREAMER=ON -DWITH_FFMPEG=ON -DWITH_GTK=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_LIST="core,calib3d,imgproc,videoio,aruco, gapi" \
-DCMAKE_INSTALL_PREFIX=../opencv_install \
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ../opencv
cmake --build . --parallel 16
cmake --install .
cd ../../
cd Qt/qt
pwd
./init-repository -f --module-subset=qtbase,qtsvg,qtmultimedia,qttools,qttranslations,qtdoc,qtrepotools,qtqa,qt3d,qtimageformats,qtserialbus,qtserialport,qtcharts,qtdatavis3d,qtshadertools
cd ..
mkdir build
cd build
../qt/configure -static -release -no-pch -prefix ../qt_install -opensource \
-confirm-license -nomake tools -nomake tests -nomake examples \
-skip webengine -skip qtandroidextras -skip qtconnectivity \
-skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects \
-skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing \
-skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml \
-skip qtsensors -skip qtserialbus -skip qtspeech -skip qttools \
-skip qtsensors -skip qttranslations -skip qtvirtualkeyboard \
-skip qtwebchannel -skip qtwebengine -skip qtwebsockets \
-skip qtwebview -skip qtwinextras -skip qtxmlpatterns -skip qtwebglplugin \
-no-openssl -skip qtlottie -skip qtmqtt -skip qtopcua -skip qtquicktimeline \
-skip qtquick3d -skip qtquick3dphysics -skip qtwayland
cmake --build . --parallel 16
cmake --install .
cd ../../../
# mkdir build
# cd build
# cmake ..
# cmake --build . --parallel