-
Notifications
You must be signed in to change notification settings - Fork 94
Description
Hey, I'm trying to build C++ bindings to use iceoryx2 in a C++ project. I followed the instructions here as well as in the quickstart guide link.
I am using a Jetson AGX Orin running Jetpack 5.1.1 and trying to build iceoryx2 v0.7.0
cmake -S . -B target/ff/cc/build
cmake --build target/ff/cc/build
cmake --install target/ff/cc/build --prefix target/ff/cc/install
After running the above commands, I added the following to my CMakeLists.txt,
list(APPEND CMAKE_PREFIX_PATH "/full/abs/path/to/target/ff/cc/install")
find_package(iceoryx2-cxx REQUIRED)
target_link_libraries(target iceoryx2-cxx)
I get the following error,
CMake Error at CMakeLists.txt:24 (find_package):
By not providing "Findiceoryx2-cxx.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"iceoryx2-cxx", but CMake did not find one.
Could not find a package configuration file provided by "iceoryx2-cxx" with
any of the following names:
iceoryx2-cxxConfig.cmake
iceoryx2-cxx-config.cmake
Add the installation prefix of "iceoryx2-cxx" to CMAKE_PREFIX_PATH or set
"iceoryx2-cxx_DIR" to a directory containing one of the above files. If
"iceoryx2-cxx" provides a separate development package or SDK, be sure it
has been installed.
If I remove those changes from the CMakeLists.txt, and add the following,
include_directories("/abs/path/to/iceoryx2/iceoryx2-cxx/include")
target_link_libraries(target
/abs/path/to/iceoryx2/target/ff/cc/install/lib/libiceoryx2_ffi_c.so
)
then I have a header include issue,
fatal error: iox2/publisher.hpp: No such file or directory
17 | #include <iox2/publisher.hpp>
| ^~~~~~~~~~~~~~~~~~~~