Hello everyone, I am trying to compile RTABMap source code for Visual Studio using the Cmake GUI. I have followed the instructions shown here https://github.com/introlab/rtabmap/wiki/Installation#windows and successfully compiled the source code within the VS command prompt, but I would like to make a Visual studio solution so I could edit the code and make it work for Kinect v2 as it was mentioned at a previous topic in this forum.
I have (successfully?) managed to configure and generate a Visual Studio solution. The trick was to run cmake-gui on the visual studio command prompt so you would not have to worry about dependencies such as psabi and then make sure that you have the correct paths for pcl opencv etc.
The problem appears when I tried to build the solution within visual studio. I have manged to make it build successfully 19 out of the 21 solutions but I am having some errors. Particularly when trying to build rtabmap_core and rtabmap_gui
The errors are:
6>------ Rebuild All started: Project: rtabmap_core, Configuration: Release x64 ------
6> [Creating resources]
6> '..\..\..\bin\uresourcegenerator' is not recognized as an internal or external command,
6> operable program or batch file.
6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 9009.
The problem was that uresourcegenerator is supposed to be found in the bin directory and not the "bin/Release" (or "bin/Debug") directory. I fixed the main CMakeLists.txt so binaries are created in "bin".