hengli / camodocal

CamOdoCal: Automatic Intrinsic and Extrinsic Calibration of a Rig with Multiple Generic Cameras and Odometry
Other
1.16k stars 389 forks source link

Make error——cannot find -lCamOdoCal #96

Closed EmiyaEstelle closed 4 years ago

EmiyaEstelle commented 4 years ago

Hi, I have successfully got the camera intrinsic parameters with CamOdoCal and I want to use initUndistortMap() to correct the raw image. In my plan, I make a new project to call the functions of CamOdoCal. My CMakelists is :

`cmake_minimum_required(VERSION 2.8) project(Camera_Undistort)

add_subdirectory(./CamOdoCal)

Set the opencv path and not find the ros opencv

SET(OpenCV_DIR /usr/local/share/OpenCV) find_package(OpenCV REQUIRED)

include_directories( "/usr/include/eigen3" ${OpenCV_INCLUDE_DIRS} )

add_executable(Camera_Undistort Undistort.cpp)

target_link_libraries(Camera_Undistort ${OpenCV_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR} CamOdoCal)`

But when making, it meets some trouble. [ 0%] Building CXX object CMakeFiles/Camera_Undistort.dir/Undistort.cpp.o [ 1%] Linking CXX executable Camera_Undistort /usr/bin/ld: cannot find -lCamOdoCal

I am not sure that what lCamOdoCal is. Is there someone to say someting? Thank you!