You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The folder BTcpp_test/BehaviorTree.CPP/build is used to build the library using conan using the commands provided in the README.md.
The folder BTcpp_test/installdir is where the package is then installed using the command cmake --install . --prefix "../../installdir" from inside the folder BTcpp_test/BehaviorTree.CPP/build.
BTcpp_test/test/build is used to build the example by running cmake -S . -B build; make -C build inside the folder BTcpp_test/test
BTcpp_test/test/CMakeLists.txt is copied-pasted from the example, and then I added list(APPEND CMAKE_PREFIX_PATH "/home/albi_mt/projects/BTcpp_test/installdir") to "include" the installation directory of the package.
BTcpp_test/test/main.cpp is copied-pasted from the example
When I try to configure the building of the example, no error rises. However, when I try to build it, a sequence of errors rise stating that all function calls result in undefined reference. It seems no source files are linked to the library.
Am I missing some steps or there is a problem in the CMakeLists.txt?
I'm trying to build the basic example to "use BT.CPP in your application" : https://github.com/BehaviorTree/btcpp_sample
My folder structure is the following:
BTcpp_test/BehaviorTree.CPP/build
is used to build the library using conan using the commands provided in the README.md.BTcpp_test/installdir
is where the package is then installed using the commandcmake --install . --prefix "../../installdir"
from inside the folderBTcpp_test/BehaviorTree.CPP/build
.BTcpp_test/test/build
is used to build the example by runningcmake -S . -B build; make -C build
inside the folderBTcpp_test/test
BTcpp_test/test/CMakeLists.txt
is copied-pasted from the example, and then I addedlist(APPEND CMAKE_PREFIX_PATH "/home/albi_mt/projects/BTcpp_test/installdir")
to "include" the installation directory of the package.BTcpp_test/test/main.cpp
is copied-pasted from the exampleWhen I try to configure the building of the example, no error rises. However, when I try to build it, a sequence of errors rise stating that all function calls result in undefined reference. It seems no source files are linked to the library.
Am I missing some steps or there is a problem in the CMakeLists.txt?
P.S.
I can't receive any confirmation email to activate an account on the forum https://discourse.behaviortree.dev/
The text was updated successfully, but these errors were encountered: