Last active
June 20, 2018 15:45
-
-
Save LaurentBerger/88da75a01ca715c4fe2bed71fa50ad0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MAJGitRepo | |
# $1=nom $2 $3=url | |
{ | |
if [ ! -d "$myRepo/$1" ]; then | |
echo "clonning ${1}" | |
git clone $2 | |
mkdir Build/$1 | |
else | |
echo "update $1" | |
cd $1 | |
git pull | |
cd .. | |
fi | |
} | |
#!/bin/bash | |
echo "Installation de ceres et vtk" | |
myRepo=$(pwd) | |
CMAKE_CONFIG_GENERATOR="Visual Studio 14 2015 Win64" | |
echo $CMAKE_CONFIG_GENERATOR | |
MAJGitRepo eigen https://github.com/eigenteam/eigen-git-mirror | |
RepoSource=gflags | |
MAJGitRepo $RepoSource https://github.com/gflags/gflags.git | |
cd Build/$RepoSource | |
optCMAKE='-DINTTYPES_FORMAT:STRING=C99 -DNAMESPACE:STRING=google -DCMAKE_INSTALL_PREFIX=../../Install/gflags' | |
echo $CMAKE_CONFIG_GENERATOR | |
echo $optCMAKE | |
cmake -G"$CMAKE_CONFIG_GENERATOR" $optCMAKE ../../"$RepoSource" | |
cd .. | |
echo "************************* $Source_DIR -->debug" | |
cmake --build $RepoSource --config debug | |
echo "************************* $Source_DIR -->release" | |
cmake --build $RepoSource --config release | |
cd .. | |
RepoSource=glog | |
MAJGitRepo $RepoSource https://github.com/google/glog.git | |
cd Build/$RepoSource | |
optCMAKE='-DCMAKE_INSTALL_PREFIX=../../Install/glog' | |
cmake -G"$CMAKE_CONFIG_GENERATOR" $optCMAKE ../../"$RepoSource" | |
cd .. | |
echo "************************* $Source_DIR -->debug" | |
cmake --build $RepoSource --config debug | |
echo "************************* $Source_DIR -->release" | |
cmake --build $RepoSource --config release | |
#cmake --build $RepoSource --target install --config debug | |
rename $myRepo/Install/glog/lib/glog.lib $myRepo/Install/glog/lib/glogd.lib | |
cmake --build $RepoSource --target install --config release | |
cd .. | |
RepoSource=ceres-solver | |
MAJGitRepo $RepoSource https://github.com/ceres-solver/ceres-solver.git | |
cd Build/$RepoSource | |
optCMAKE='-DEIGEN_INCLUDE_DIR=../../eigen -DCMAKE_INSTALL_PREFIX=../../Install/ceres-solver' | |
cmake -G"$CMAKE_CONFIG_GENERATOR" $optCMAKE -Dglog_DIR:PATH="$myRepo"/Install/glog/lib/cmake/glog -Dgflags_DIR:PATH="$myRepo"/Build/gflags ../../"$RepoSource" | |
cd .. | |
echo "************************* $Source_DIR -->debug" | |
cmake --build $RepoSource --config debug | |
echo "************************* $Source_DIR -->release" | |
cmake --build $RepoSource --config release | |
cmake --build $RepoSource --target install --config release | |
cmake --build $RepoSource --target install --config debug | |
cd .. | |
RepoSource=opencv | |
cd Build/$RepoSource | |
optCMAKE=( ) | |
echo $optCMAKE | |
gebtBuild | |
General configuration for OpenCV 4.0.0-pre ===================================== | |
Version control: 3.4.1-698-gd1a598c65-dirty | |
Extra modules: | |
Location (extra): G:/Lib/opencv_contrib/modules | |
Version control (extra): 3.3.0-455-g2231018c | |
Platform: | |
Timestamp: 2018-05-31T20:05:29Z | |
Host: Windows 10.0.17134 AMD64 | |
CMake: 3.11.0 | |
CMake generator: Visual Studio 15 2017 Win64 | |
CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/MSBuild/15.0/Bin/MSBuild.exe | |
MSVC: 1913 | |
CPU/HW features: | |
Baseline: SSE SSE2 SSE3 | |
requested: SSE3 | |
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 | |
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX | |
SSE4_1 (3 files): + SSSE3 SSE4_1 | |
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 | |
FP16 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX | |
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX | |
AVX2 (9 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 | |
C/C++: | |
Built as dynamic libs?: YES | |
C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe (ver 19.13.26129.0) | |
C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP12 /MD /O2 /Ob2 /DNDEBUG | |
C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP12 /MDd /Zi /Ob0 /Od /RTC1 | |
C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/cl.exe | |
C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP12 /MD /O2 /Ob2 /DNDEBUG | |
C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP12 /MDd /Zi /Ob0 /Od /RTC1 | |
Linker flags (Release): /machine:x64 /INCREMENTAL:NO | |
Linker flags (Debug): /machine:x64 /debug /INCREMENTAL | |
ccache: NO | |
Precompiled headers: YES | |
Extra dependencies: | |
3rdparty dependencies: | |
OpenCV modules: | |
To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 python_bindings_generator reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz xfeatures2d ximgproc xobjdetect xphoto | |
Disabled: js world | |
Disabled by dependency: - | |
Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java matlab ovis python2 | |
Applications: tests examples apps | |
Documentation: NO | |
Non-free algorithms: NO | |
Windows RT support: NO | |
GUI: | |
Win32 UI: YES | |
VTK support: YES (ver 8.1.0) | |
Media I/O: | |
ZLib: build (ver 1.2.11) | |
JPEG: build-libjpeg-turbo (ver 1.5.3-62) | |
WEBP: build (ver encoder: 0x020e) | |
PNG: build (ver 1.6.34) | |
TIFF: build (ver 42 - 4.0.9) | |
JPEG 2000: build (ver 1.900.1) | |
OpenEXR: build (ver 1.7.1) | |
HDR: YES | |
SUNRASTER: YES | |
PXM: YES | |
Video I/O: | |
Video for Windows: YES | |
DC1394: NO | |
FFMPEG: YES (prebuilt binaries) | |
avcodec: YES (ver 57.107.100) | |
avformat: YES (ver 57.83.100) | |
avutil: YES (ver 55.78.100) | |
swscale: YES (ver 4.8.100) | |
avresample: YES (ver 3.7.0) | |
GStreamer: NO | |
DirectShow: YES | |
Media Foundation: YES | |
Parallel framework: Concurrency | |
Other third-party libraries: | |
Intel IPP: 2017.0.3 [2017.0.3] | |
at: G:/Lib/build/opencv/3rdparty/ippicv/ippicv_win | |
Intel IPP IW: sources (2017.0.3) | |
at: G:/Lib/build/opencv/3rdparty/ippicv/ippiw_win | |
Lapack: NO | |
Eigen: YES (ver 3.3.90) | |
Custom HAL: NO | |
Protobuf: build (3.5.1) | |
OpenCL: YES (no extra features) | |
Include path: G:/Lib/opencv/3rdparty/include/opencl/1.2 | |
Link libraries: Dynamic load | |
Python 3: | |
Interpreter: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe (ver 3.6.3) | |
Libraries: optimized C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36.lib debug C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36_d.lib (ver 3.6.3) | |
numpy: C:/Users/Laurent/AppData/Roaming/Python/Python36/site-packages/numpy/core/include (ver 1.14.0) | |
packages path: C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/Lib/site-packages | |
Python (for build): C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe | |
Java: | |
ant: NO | |
JNI: C:/Program Files/Java/jdk1.8.0_152/include C:/Program Files/Java/jdk1.8.0_152/include/win32 C:/Program Files/Java/jdk1.8.0_152/include | |
Java wrappers: NO | |
Java tests: NO | |
Matlab: NO | |
Install to: G:/Lib/install/opencv | |
----------------------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment