introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.75k stars 785 forks source link

install from source code on windows #62

Closed lynnsky closed 8 years ago

lynnsky commented 8 years ago

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: zpx lxa 8 jxx vrq7puz 9 aqka5g3 j4 fm _ 4dw

ss780217 commented 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. _032416_092518_am

matlabbe commented 8 years ago

Indeed, RTAB-Map.exe is built only if Qt is detected by CMake.

lynnsky commented 8 years ago

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. 0 l9365hqo 10f p x3l qaeern r kogzst1icpv

ss780217 commented 8 years ago

Set the "QT_MOC_EXECUTABLE" a full path for the executable file, moc.exe.

matlabbe commented 8 years ago

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?

cheers

lynnsky commented 8 years ago

Thanks to you all. @matlabbe I use qt4 and bin directory of Qt is in thepathenvironment.I wonder there is no FindQT.cmakefile in cmake_modules directory ,how can it find qt? @Wade5566 I set a full path.It works.

matlabbe commented 8 years ago

FindQt4.cmake is already in CMake installation (cmake/share/modules/FindQt4.cmake). What is your CMake output?

lynnsky commented 8 years ago

I findFindQt4.cmakein 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") 8n qaj1a t8 jsg vd 9jjp

matlabbe commented 8 years ago

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.

lynnsky commented 8 years ago

OK.Thank for your help.