EinsTian1 / iftd

Image Feature Triangle Descriptor for Loop Detection in Driving Scenes
GNU General Public License v2.0
23 stars 1 forks source link

catkin_make error #1

Closed giangdao1402 closed 1 month ago

giangdao1402 commented 1 month ago

Screenshot-from-2024-07-20-12-37-01 I have encountered this issue when use catkin_make Can you provide solution to solve it ? Thank you !!!

EinsTian1 commented 1 month ago

Screenshot-from-2024-07-20-12-37-01 I have encountered this issue when use catkin_make Can you provide solution to solve it ? Thank you !!!

Does the version of the library file correspond to the requirements and have any relevant changes been made? I just checked the code and there is no conversion from 'const' to 'int' in the code.

giangdao1402 commented 1 month ago

@EinsTian1 I realized that the error occur because of xfeatures2d in opencv How you installed opencv, i have tried different version but still the same error !

EinsTian1 commented 1 month ago

@EinsTian1 I realized that the error occur because of xfeatures2d in opencv How you installed opencv, i have tried different version but still the same error !

This is my small mistake. I installed two versions of OpenCV, 3.4.16 and 4.9.0, respectively. The code used OpenCV version 4.9.0, which was my small mistake when writing readme.md. And the additional contrib installed corresponds to OpenCV.

giangdao1402 commented 1 month ago

just remove this in cmakelist message("Current CPU archtecture: ${CMAKE_SYSTEM_PROCESSOR}") if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" ) include(ProcessorCount) ProcessorCount(N) message("Processer number: ${N}") if(N GREATER 5) add_definitions(-DMP_EN) add_definitions(-DMP_PROC_NUM=4) message("core for MP: 4") elseif(N GREATER 3) math(EXPR PROC_NUM "${N} - 2") add_definitions(-DMP_EN) add_definitions(-DMP_PROC_NUM="${PROC_NUM}") message("core for MP: ${PROC_NUM}") else() add_definitions(-DMP_PROC_NUM=1) endif() else() add_definitions(-DMP_PROC_NUM=1) endif() Now i can compile !