150 likes | 198 Views
Learn how to build DLP 3D SDK with Visual Studio 2015 and overcome common compiling errors on Windows 10. Utilize OpenCV 3.1.0, Cmake, and 3rd party libs for optimal development. Follow step-by-step instructions for successful integration.
E N D
How to build DLP 3d SDK with VS2015 TW FSE Frank Liu
Why change to VS2015 • PG library(2.9.3.43_x86) for original SDK is out of date and cannot download it from Pointgrey website. There is compiling error with new PG library. • OpenCV in original SDK is v2.4.10. if wanting to use newer openCV version, there is many compilation error with old Mingw(4.8.2) compiler. • There is a lot of compilation error when compiling the DLP SDK with Mingw(4.8.2) on windows 10 OS. • VS2015 is common development platform.
download • visual studio community 2015 • https://my.visualstudio.com/Downloads?q=Visual%20Studio%202015%20with%20Update%203 • opencv 3.1.0 • https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.1.0/ • Cmake 3.6.1 • https://cmake.org/files/v3.6/cmake-3.6.1-win64-x64.msi • 3rd party lib for opencv • Opencv_ffmpeg • https://raw.githubusercontent.com/Itseez/opencv_3rdparty/8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb/ffmpeg/opencv_ffmpeg.dll • https://raw.githubusercontent.com/Itseez/opencv_3rdparty/8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb/ffmpeg/opencv_ffmpeg_64.dll • https://raw.githubusercontent.com/Itseez/opencv_3rdparty/8aeefc4efe3215de89d8c7e114ae6f7a6091b8eb/ffmpeg/ffmpeg_version.cmake • ippicv • https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_windows_20151201.zip • https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_macosx_20151201.tgz • https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz • [ ↓ ] FlyCapture 2.12.3.31 SDK - Windows (64-bit) — 06/20/2018 - 311.1456MB
Cmakeopencv-1 1. Select build folder 2. Click “configure” It shows errors NO CMAKE_CXX_COMPILER_could_be_found. =>go to VS->select new project->visual C++=>install all item in below=>close VS =>go to Cmake, click “configure” again It shows errors again due to cannot download 3rd party lib. =>go next page
Cmake Opencv-2: Copy 3rd party Lib • Put opencv_ffmpeg.dll to folder to folder sources\3rdparty\ffmpeg\downloads\89c783eee1c47bfc733f08334ec2e31c1 • Put opencv_ffmpeg_64.dll to folder sources\3rdparty\ffmpeg\downloads\35fe6ccdda6d7a04e9056b0d73b98e761 • Put ffmpeg_version.cmake to folder sources\3rdparty\ffmpeg\downloads\8606f947a780071f8fcce8cbf39ceef5 • WindowsOS,put ippicv_windows_20151201.zip to folder • sources\3rdparty\ippicv\downloads\windows-04e81ce5d0e329c3fbc606ae32cad44d
Cmake Opencv-3 • Click “configure” again • It should be no error. • Enable BUILD_opencv_world • Copy ws2_32.lib to C:/windows/System32/ • Click “configure” again • It should be no error. • Click “generate”
VS2015 Opencv • Open the C:/opencv-3.6.1-2/opencv.sln by vs2015 • Select batch build and only check INSTALL below. And Build. • After a while, it should be no error as below.
VS2015 Opencv • Go to environment variable and paste the install path to PATH • Open new project->properties->linker->input
C:\opencv-3.6.1-2\install\include C:\opencv-3.6.1-2\install\include\opencv C:\opencv-3.6.1-2\install\include\opencv2 C:\opencv-3.6.1-2\install\x64\vc14\lib
opencv_world310d.lib opencv_world310d.lib opencv_ts310d.lib opencv_ts310.lib
Build SDK • Same cmake process as opencv • Change the Cmakelists.txt • Lost link for WIN32_WS2_32_LIB • Wrong definition for ASIO in config.hpp \DLP-ALC-LIGHTCRAFTER-SDK\3rd_party\asio-1.10.4\include\asio\detail\config.hpp • \DLP-ALC-LIGHTCRAFTER-SDK\include\common\other.hpp • For LCR6500 • Change the DLP_SDK_config.cmake.in
Cmakeconfig for app Release
Build app • Add setupapi.lib to linker->input->additional dependencies: setupapi.lib
reference Build open CV • https://blog.csdn.net/u013832707/article/details/53127710 Build SDK: • https://github.com/chriskohlhoff/asio/issues/35