alicevision / CCTag

Detection of CCTag markers made up of concentric circles.
https://cctag.readthedocs.io
Mozilla Public License 2.0
358 stars 89 forks source link

CCTag not getting linked #212

Closed dkhusted closed 1 month ago

dkhusted commented 1 year ago

I am trying to make a python wrapper using code from #136, but i manage to build the project. I am very new to cmake so could use some pointers as to what i am doing wrong: I only have one CMakeLists that builds the wrapper.

CMakeLists.txt

cmake_minimum_required(VERSION 3.17.3)

project(pycctag) 

find_package(CCTag CONFIG REQUIRED)

add_subdirectory(pybind11) #cmakelists.txt and pybind11-2.5.0(or another version) folder are in same directory

pybind11_add_module(pycctag pycctag.cpp)

target_link_libraries(pycctag PUBLIC CCTag::CCTag)
`

When trying to build i get
`fatal error: CCTag/ICCTag.hpp: No such file or directory
   12 | #include <CCTag/ICCTag.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

I have installed CCTag by following the INSTALL.md, and the installation went fine.

anand97 commented 1 year ago

Try setting CCTag_DIR with the path to your CCTag installation's cmake config files, before invoking the find command.

set(CCTag_DIR /usr/local/lib/cmake/CCTag)

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.