Closed Postea-CS closed 4 years ago
Hi @Postea-CS we are currently trying to port the ifm3d
(successor of libo3d3xx
) to windows. It looks like the hardest part is getting the xmlrpc-c
compiled. If you are interested I can share my xmlrpc-c CMake stuff I have at the moment.
@Postea-CS I have some good news for you. Today I released a Version of xmlrpc-c which is capable to be build with the latest version of CMake on Visual Studio 2017 Community Edition. I requires a libcurl as transport layer. If there are any questions, feel free to create an issue on this project.
Make sure that you have installed CMake and VS2017 64bit before you move to the next step.
Start with downloading Glog, Gtest and XMLRPC libraries from repository listed below to 3rdParty
folder.
Install the necessary libraries on your system. In the following example we assume D:\3rdparty
is used as a base path.
In case of using Visual Studio 15 2017 we need to adapt "opencv/build/OpenCVConfig.cmake" file.
Replace:
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
set(OpenCV_RUNTIME vc15)
With:
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
set(OpenCV_RUNTIME vc14)
After instalation you need to set paths to each of three libraries in "ifm3d/CMakeLists.txt" file.
# Where to find Boost path
set(BOOST_INCLUDEDIR "D:/locallibs/boost_1_64_0/")
set(BOOST_LIBRARYDIR "D:/locallibs/boost_1_64_0/lib64-msvc-14.1")
set(BOOST_ROOT "D:/locallibs/boost_1_64_0/boost/")
# Where to find OpenCV path
set(OpenCV_DIR "D:/locallibs/opencv/build/")
# Where to find PCL path
set(PCL_DIR "D:/locallibs/pcl1.8.1/cmake/")
Due to the fact the Visual Studio compiler needs some command line variables correct initialized. It is recommended to use the the Visual Studio command line.
$ mkdir build
$ cd build
$ cmake ..\ifm3d -G "Visual Studio 15 2017 Win64" -DBUILD_SHARED_LIBS=ON -DMUST_BUILD_CURL_CLIENT=ON -DBUILD_TESTING=OFF
You will find IFM3D.sln in build folder, created in previous step, launch it.
:exclamation: For the libo3d3xx library it is recommended to build the modules separately and not with the top-level CMake file.
We have recently added Microsoft Windows support for the camera module on the ifm3d library which is the successor of the libo3d3xx. Discussion and feedback about this feature takes place in this issue #21 any feedback is appreciated.
Closing out stale issues (older than a year). Feel free to reactivate as appropriate.
Hi I am wondering if i only need the camera module, are there any issues with compilation the code on windows?
cheers, CS