Phylliida / orbslam-windows

Easy build for ORB Slam 2 on Windows
GNU General Public License v3.0
130 stars 73 forks source link

generated g2o.sln is empty #7

Closed lizeyu000 closed 7 years ago

lizeyu000 commented 7 years ago

When using CMake in the second step, cmake has some warnings:

BUILD TYPE:Release

Try OpenMP C flag = [/openmp] Performing Test OpenMP_FLAG_DETECTED Performing Test OpenMP_FLAG_DETECTED - Success CMake Warning (dev) at D:/Program Files/CMake/share/cmake-3.8/Modules/FindOpenMP.cmake:179 (if): if given arguments:

"TRUE"

An argument named "TRUE" appears in a conditional statement. Policy CMP0012 is not set: if() recognizes numbers and boolean constants. Run "cmake --help-policy CMP0012" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): D:/Program Files/CMake/share/cmake-3.8/Modules/FindOpenMP.cmake:224 (_OPENMP_GET_SPEC_DATE) CMakeLists.txt:48 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it.

Try OpenMP CXX flag = [/openmp] Performing Test OpenMP_FLAG_DETECTED Performing Test OpenMP_FLAG_DETECTED - Success CMake Warning (dev) at D:/Program Files/CMake/share/cmake-3.8/Modules/FindOpenMP.cmake:179 (if): if given arguments:

"TRUE"

An argument named "TRUE" appears in a conditional statement. Policy CMP0012 is not set: if() recognizes numbers and boolean constants. Run "cmake --help-policy CMP0012" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): D:/Program Files/CMake/share/cmake-3.8/Modules/FindOpenMP.cmake:266 (_OPENMP_GET_SPEC_DATE) CMakeLists.txt:48 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it.

Found OpenMP: /openmp
Found Eigen3: E:/LearnORBSLAM/Thirdparty/eigen (Required is at least version "3.1.0") Configuring done

and the generated SLN file can be opened. but VS shows that g2o does not contain any configuration, and can not be opened, so nothing is shown.

Thank you very much!

Phylliida commented 7 years ago

Umm this is perhaps a dumb suggestion but once it outputted "Configuring done", did you click the "Generate" button?

lizeyu000 commented 7 years ago

Thank you very much. I just made a stupid mistake.