Closed giangdao1402 closed 1 month ago
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.
@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 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.
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 !
I have encountered this issue when use catkin_make Can you provide solution to solve it ? Thank you !!!