Closed lynnsky closed 8 years ago
I think you miss some dependent libraries. For example, you do not have rtabmap_gui.dll so I guess you didn't have Qt.
Your project list is a little different from mine. Here is my project list.
Indeed, RTAB-Map.exe is built only if Qt is detected by CMake.
I add these three lines to solve it.But another error appears.I add 'D:\pcl\4.8.0\bin' to noEventsExampleProject -> Properties -> Configuration Properties -> VC++ Directories -> Executable Directories.It does't work.
Set the "QT_MOC_EXECUTABLE" a full path for the executable file, moc.exe.
You don't have to change the CMakeLists.txt
. CMake tries already to find Qt here (setting all Qt macros):
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
ELSE()
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg)
ENDIF()
Which Qt version do you have?
PATH
environment variable so that CMake can find qmake
tool when searching for Qt.cmake -DRTABMAP_QT_VERSION=5 -DQt5_DIR=path/to/directory/of/Qt5Config.cmake
cheers
Thanks to you all.
@matlabbe I use qt4 and bin directory of Qt is in thepath
environment.I wonder there is no FindQT.cmake
file in cmake_modules directory ,how can it find qt?
@Wade5566 I set a full path.It works.
FindQt4.cmake
is already in CMake installation (cmake/share/modules/FindQt4.cmake). What is your CMake output?
I findFindQt4.cmake
in CMake installation.It is so interesting.I don't know why CMake output this:
Could NOT find Qt4 (missing: QT_MOC_EXECUTABLE
QT_RCC_EXECUTABLE
QT_UIC_EXECUTABLE
) (found version "4.8.0")
It is like the development tools are not found by CMake. You could try to execute cmake-gui in Administrator mode. Otherwise, use the solution of @Wade5566 by setting manually the missing tool path.
OK.Thank for your help.
hello,I install it according to https://github.com/introlab/rtabmap/wiki/Installation#windows. I finished the first eight steps.But the next step I did't discover RTABMap.exe.So how can I get the RTABMap.exe.I will show you what I get now: