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

undefined reference #4

Open
rainleong opened this issue May 28, 2021 · 4 comments
Open

undefined reference #4

rainleong opened this issue May 28, 2021 · 4 comments

Comments

@rainleong
Copy link

Hello author, I have completed the compilation process, but there was a link failure problem during the final linking process.such as :CMakeFiles/DefSLAMGT.dir/Apps/stereo_groundtruth.cc.o:in function‘cvflann::anyimpl::big_any_policycv::String::static_delete(void**)’:
stereo_groundtruth.cc:(.text._ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE13static_deleteEPPv[_ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE13static_deleteEPPv]+0x15):对‘cv::String::deallocate()’undefined reference.
how can i solve it
thanks

@JoseLamarca
Copy link
Collaborator

Hi! It seems a problem with the library Opencv linking. Take a look if you have only one version of Opencv installed. With multiple versions, It usually fails.
Best,

@rainleong
Copy link
Author

Thanks for your answer, I have solved this problem because I have installed multiple versions of opencv, so adding a new opencv include path and lib path to the cmakelist file solved the problem. The changes are as follows:
include_directories(
${OpenCV_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/Thirdparty/ORBSLAM_2/include/
${PROJECT_SOURCE_DIR}/Thirdparty/BBS
${PROJECT_SOURCE_DIR}/Modules/Common
${PROJECT_SOURCE_DIR}/Modules/GroundTruth
${PROJECT_SOURCE_DIR}/Modules/Mapping
${PROJECT_SOURCE_DIR}/Modules/Matching
${PROJECT_SOURCE_DIR}/Modules/Settings
${PROJECT_SOURCE_DIR}/Modules/Template
${PROJECT_SOURCE_DIR}/Modules/Tracking
${PROJECT_SOURCE_DIR}/Modules/Viewer
${EIGEN3_INCLUDE_DIR}
${Pangolin_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
)
link_directories(${OpenCV_LIBRARY_DIRS})

@rainleong
Copy link
Author

Hello author, I have another question, that is, where are the camera position and attitude files generated by DFMSLAM, just like CameraTrajectory.txt.
thanks~

@JoseLamarca
Copy link
Collaborator

Hi!
thanks for the note for Opencv is not the first time that it happens!
The camera trajectory is not saved. The program only evaluates the relative distance between the map and the camera. The base class for our tracking is the ORBSLAM tracking yet, so I guess that including it should be straightforward.

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

2 participants