apriltags icon indicating copy to clipboard operation
apriltags copied to clipboard

Exclude the github download

Open g41903 opened this issue 8 years ago • 4 comments

May I know how to exclude the github download in the CMakeList.txt file? I would like to build the code without the Internet.

g41903 avatar Nov 21 '16 02:11 g41903

This latest version of the code should not require a download during build. Instead, it requires checking out two repositories into your catkin workspace, apriltags and apriltags-cpp.

This was changed in https://github.com/personalrobotics/apriltags/pull/25.

https://github.com/personalrobotics/apriltags https://github.com/personalrobotics/apriltags-cpp

psigen avatar Nov 21 '16 03:11 psigen

2 questions:

  1. I clone apriltags and it shows

Could not find a package configuration file provided by "apriltagscpp" with any of the following names: apriltagscppConfig.cmake apriltagscpp-config.cmake Add the installation prefix of "apriltagscpp" to CMAKE_PREFIX_PATH or set "apriltagscpp_DIR" to a directory containing one of the above files. If "apriltagscpp" provides a separate development package or SDK, be sure it has been installed.

  1. I clone apriltags-cpp and it shows

This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead.

g41903 avatar Nov 21 '16 04:11 g41903

The second error message is correct. apriltagscpp is a standard CMake (i.e. non-Catkin) package. catkin_make only supports building a homogeneous workspace (i.e. only Catkin packages), so it not possible to build a a mixture of Catkin and non-Catkin packages.

You need to build to workspace with catkin build or catkin_make_isolated, which do support non-homogeneous workspaces. I recommend catkin build because it supports building multiple packages in parallel.

Alternatively, you can use cmake to manually install apriltagscpp into a directory of your choice and add that directory to CMAKE_PREFIX_PATH before building apriltags.

mkoval avatar Nov 21 '16 14:11 mkoval

2 questions:

  1. I clone apriltags and it shows

Could not find a package configuration file provided by "apriltagscpp" with any of the following names: apriltagscppConfig.cmake apriltagscpp-config.cmake Add the installation prefix of "apriltagscpp" to CMAKE_PREFIX_PATH or set "apriltagscpp_DIR" to a directory containing one of the above files. If "apriltagscpp" provides a separate development package or SDK, be sure it has been installed.

I have the same problem. Is there another package needed called apriltagscpp (not apriltags-cpp)?

IndustrialEngStudent avatar Feb 06 '19 12:02 IndustrialEngStudent