Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install from source code on windows #62

Closed
lynnsky opened this issue Mar 23, 2016 · 10 comments
Closed

install from source code on windows #62

lynnsky opened this issue Mar 23, 2016 · 10 comments

Comments

@lynnsky
Copy link

lynnsky commented Mar 23, 2016

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
Copy link
Contributor

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
Copy link
Member

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

@lynnsky
Copy link
Author

lynnsky commented Mar 24, 2016

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
Copy link
Contributor

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

@matlabbe
Copy link
Member

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?

  • For Qt4, make sure the bin directory of Qt is in the PATH environment variable so that CMake can find qmake tool when searching for Qt.
  • For Qt5, you can put in the PATH the directory containing Qt5Config.cmake (somewhere inside the Qt5 installation directory) or execute CMake like this: cmake -DRTABMAP_QT_VERSION=5 -DQt5_DIR=path/to/directory/of/Qt5Config.cmake

cheers

@lynnsky
Copy link
Author

lynnsky commented Mar 25, 2016

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
Copy link
Member

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

@lynnsky
Copy link
Author

lynnsky commented Mar 26, 2016

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
Copy link
Member

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
Copy link
Author

lynnsky commented Mar 26, 2016

OK.Thank for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants