Last active
January 22, 2018 10:15
-
-
Save snikulov/4037650 to your computer and use it in GitHub Desktop.
BUILD for used libs
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
Boost build | |
MS VS2012 x64 | |
.\b2 --build-type=complete --toolset=msvc-11.0 address-model=64 --prefix=C:\DEV64\boost -j4 install | |
# mingw | |
.\b2 --build-type=complete --toolset=gcc address-model=64 --prefix=%MINGW_ROOT%\usr\local -j4 install | |
MS VS2015 x64 | |
.\b2 --build-type=complete --toolset=msvc-14.0 address-model=64 --prefix=C:\WORK\MSVC2015.64\boost -j4 install | |
With c++11 support | |
./b2 --toolset=clang cxxflags="-std=c++11" | |
With c++17 support and libc++ library from clang | |
clang v5.0 | |
./b2 --build-type=complete --toolset=clang cxxflags="-std=c++17 -stdlib=libc++" --prefix=/home/snikulov/tools --layout=versioned install -j8 | |
gcc | |
./b2 --build-type=complete --toolset=gcc cxxflags="-std=c++1y" --prefix=/home/snikulov/tools --layout=versioned install -j8 | |
OpenCV (Linux) | |
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=/home/snikulov/libs -DWITH_GSTREAMER=0 -DWITH_GSTREAMER_0_10=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment