Replies: 2 comments
-
also removed the sqlite logger part from the CMakeLists.txt because otherwse it gives: I see the sqlite.h file for example in ..conan2/p/sqlitc122a8be1c7d0/p/include but i guess its not being linked correctly? |
Beta Was this translation helpful? Give feedback.
-
managed to build with pixi, but still cant run examples, as it gives out an error MSVC90.dll is missing. If i download it from the internet, i get the following error: "an application has made an attempt to load the c runtime library incorrectly ms" |
Beta Was this translation helpful? Give feedback.
-
Hi! I am trying to install Behaviour Tree on windows and run into the following issue:
I follow the steps described in readme
mkdir build; cd build ✅
conan install ../BehaviorTree.CPP --output-folder=. --build=missing✅
cmake ../BehaviorTree.CPP -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"✅
cmake --build . --parallel 📛
I get the reference to unresolved external symbol to __imp_zmq_errno at the last step and cant figure it out :(
Here is the installation process log
`C:\boid4\BT\build>conan install ..\BehaviorTree.CPP-4.5.2 --output-folder=. --build=missing
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
======== Computing dependency graph ========
Graph root
conanfile.txt: C:\boid4\BT\BehaviorTree.CPP-4.5.2\conanfile.txt
Requirements
gtest/1.12.1#84b37f049987f4ea451d3e76ae93fd08 - Cache
libsodium/1.0.19#3ddd1bc0d6b40a078f9441e46b73008c - Cache
sqlite3/3.40.1#c5e96fa97eb3c61b44120e2695f528c9 - Cache
zeromq/4.3.4#dab124c47f871fcb077e6ee326b65b12 - Cache
======== Computing necessary packages ========
gtest/1.12.1: Checking 3 compatible configurations
gtest/1.12.1: Main binary package '036052bef335957d326ed883a2c2dbad14582260' missing. Using compatible package 'e8881c31d7715e9ffccf19b87014654db155beed': compiler.cppstd=14
zeromq/4.3.4: Checking 3 compatible configurations
zeromq/4.3.4: Main binary package 'd20b9c6731ca0258f29a38fe057b1ed4171b7495' missing. Using compatible package 'e76384adfb157507c7c21e699ade4863dda996ea': compiler.cppstd=14
Requirements
gtest/1.12.1#84b37f049987f4ea451d3e76ae93fd08:e8881c31d7715e9ffccf19b87014654db155beed#4ffbd1ff8d5732b8397db4e9fbff3a7d - Cache
libsodium/1.0.19#3ddd1bc0d6b40a078f9441e46b73008c:9dc9581462357bc82bcfa1101078505e2fcf584a#193769af0a15a5801e312f98a2763fad - Cache
sqlite3/3.40.1#c5e96fa97eb3c61b44120e2695f528c9:2390fed5d13307e3b6e2379eb01b1a4af6af2f1c#49e5a84071dfa14417d244b95bc73b09 - Cache
zeromq/4.3.4#dab124c47f871fcb077e6ee326b65b12:e76384adfb157507c7c21e699ade4863dda996ea#5386ccf8a95c164914c62f01b6a4d494 - Cache
======== Installing packages ========
gtest/1.12.1: Already installed! (1 of 4)
libsodium/1.0.19: Already installed! (2 of 4)
sqlite3/3.40.1: Already installed! (3 of 4)
zeromq/4.3.4: Already installed! (4 of 4)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: zeromq/4.3.4, sqlite3/3.40.1, gtest/1.12.1
WARN: deprecated: 'cpp_info.filenames' used in: sqlite3/3.40.1
WARN: deprecated: 'cpp_info.build_modules' used in: zeromq/4.3.4, sqlite3/3.40.1
WARN: deprecated: 'env_info' used in: sqlite3/3.40.1
======== Finalizing install (deploy, generators) ========
conanfile.txt: Writing generators to C:\boid4\BT\build
conanfile.txt: Generator 'CMakeDeps' calling 'generate()'
conanfile.txt: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(GTest)
find_package(ZeroMQ)
find_package(SQLite3)
target_link_libraries(... gtest::gtest libzmq-static SQLite::SQLite3)
conanfile.txt: Generator 'CMakeToolchain' calling 'generate()'
conanfile.txt: CMakeToolchain generated: conan_toolchain.cmake
conanfile.txt: Preset 'conan-default' added to CMakePresets.json. Invoke it manually using 'cmake --preset conan-default' if using CMake>=3.23
conanfile.txt: If your CMake version is not compatible with CMakePresets (<3.23) call cmake like: 'cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=C:\boid4\BT\build\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW'
conanfile.txt: CMakeToolchain generated: CMakePresets.json
conanfile.txt: CMakeToolchain generated: ..\BehaviorTree.CPP-4.5.2\CMakeUserPresets.json
conanfile.txt: Generating aggregated env files
conanfile.txt: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
Install finished successfully
C:\boid4\BT\build>cmake ..\BehaviorTree.CPP-4.5.2 -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"
-- Building for: Visual Studio 17 2022
-- Using Conan toolchain: C:/boid4/BT/build/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 6.2.9200.
-- The C compiler identification is MSVC 19.38.33134.0
-- The CXX compiler identification is MSVC 19.38.33134.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- BehaviourTree is being built with conan.
-- Conan: Component target declared 'libzmq-static'
-- Conan: Target declared 'libsodium::libsodium'
-- ZeroMQ_LIBRARIES: libzmq-static
-- Conan: Component target declared 'SQLite::SQLite3'
-- SQLite3_LIBRARIES: SQLite::SQLite3
-- BTCPP_EXTRA_LIBRARIES: libzmq-static;SQLite::SQLite3
-- BTCPP_LIB_DESTINATION: lib
-- BTCPP_INCLUDE_DESTINATION: include
-- BTCPP_UNIT_TESTS: ON
-- Conan: Component target declared 'GTest::gtest'
-- Conan: Component target declared 'GTest::gtest_main'
-- Conan: Component target declared 'GTest::gmock'
-- Conan: Component target declared 'GTest::gmock_main'
-- Conan: Target declared 'gtest::gtest'
-- Configuring done (18.1s)
-- Generating done (1.0s)
-- Build files have been written to: C:/boid4/BT/build
C:\boid4\BT\build>cmake --build . --parallel
Версия MSBuild 17.8.5+b5265ef37 для .NET Framework
Checking Build System
Building Custom Rule C:/boid4/BT/BehaviorTree.CPP-4.5.2/3rdparty/lexy/src/CMakeLists.txt
file.cpp
lexy_file.vcxproj -> C:\boid4\BT\build\3rdparty\lexy\src\Debug\lexy_file.lib
Building Custom Rule C:/boid4/BT/BehaviorTree.CPP-4.5.2/CMakeLists.txt
action_node.cpp
basic_types.cpp
behavior_tree.cpp
blackboard.cpp
bt_factory.cpp
decorator_node.cpp
condition_node.cpp
control_node.cpp
shared_library.cpp
tree_node.cpp
script_parser.cpp
json_export.cpp
xml_parsing.cpp
test_node.cpp
sleep_node.cpp
delay_node.cpp
inverter_node.cpp
repeat_node.cpp
retry_node.cpp
timeout_node.cpp
subtree_node.cpp
if_then_else_node.cpp
fallback_node.cpp
parallel_node.cpp
parallel_all_node.cpp
reactive_sequence.cpp
reactive_fallback.cpp
sequence_node.cpp
sequence_with_memory_node.cpp
switch_node.cpp
while_do_else_node.cpp
bt_cout_logger.cpp
bt_file_logger_v2.cpp
bt_minitrace_logger.cpp
bt_observer.cpp
tinyxml2.cpp
minitrace.cpp
groot2_publisher.cpp
shared_library_WIN.cpp
Auto build dll exports
Создается библиотека C:/boid4/BT/build/Debug/behaviortree_cppd.lib и объект C:/boid4/BT/build/Debug/behaviortree_c
ppd.exp
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_errno в функции "public: __cdecl
zmq::error_t::error_t(void)" (??0error_t@zmq@@qeaa@XZ). [C:\boid4\BT\build\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_strerror в функции "public: virt
ual char const * __cdecl zmq::error_t::what(void)const " (?what@error_t@zmq@@UEBAPEBDXZ). [C:\boid4\BT\build\behaviortr
ee_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_ctx_new в функции "public: __cde
cl zmq::context_t::context_t(void)" (??0context_t@zmq@@qeaa@XZ). [C:\boid4\BT\build\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_ctx_term в функции "public: void
__cdecl zmq::context_t::close(void)" (?close@context_t@zmq@@QEAAXXZ). [C:\boid4\BT\build\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_init в функции "public: __cd
ecl zmq::message_t::message_t(class zmq::message_t &&)" (??0message_t@zmq@@qeaa@$$QEAV01@@z). [C:\boid4\BT\build\behavi
ortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_init_size в функции "public:
__cdecl zmq::message_t::message_t(void const *,unsigned __int64)" (??0message_t@zmq@@qeaa@PEBX_K@Z). [C:\boid4\BT\buil
d\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_send в функции "public: clas
s std::optional __cdecl zmq::detail::socket_base::send(class zmq::message_t &,enum zmq::send_flags)"
(?send@socket_base@detail@zmq@@qeaa?AV?$optional@_K@std@@AEAVmessage_t@3@W4send_flags@3@@z). [C:\boid4\BT\build\behavio
rtree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_recv в функции "public: clas
s std::optional __cdecl zmq::detail::socket_base::recv(class zmq::message_t &,enum zmq::recv_flags)"
(?recv@socket_base@detail@zmq@@qeaa?AV?$optional@_K@std@@AEAVmessage_t@3@W4recv_flags@3@@z). [C:\boid4\BT\build\behavio
rtree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_close в функции "public: __c
decl zmq::message_t::~message_t(void)" (??1message_t@zmq@@qeaa@XZ). [C:\boid4\BT\build\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_data в функции "public: void
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_size в функции "public: unsi
gned __int64 __cdecl zmq::message_t::size(void)const " (?size@message_t@zmq@@QEBA_KXZ). [C:\boid4\BT\build\behaviortree
_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_msg_more в функции "public: bool
__cdecl zmq::message_t::more(void)const " (?more@message_t@zmq@@QEBA_NXZ). [C:\boid4\BT\build\behaviortree_cpp.vcxproj
]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_socket в функции "public: __cdec
l zmq::socket_t::socket_t(class zmq::context_t &,int)" (??0socket_t@zmq@@qeaa@AEAVcontext_t@1@H@Z). [C:\boid4\BT\build
behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_close в функции "public: void __
cdecl zmq::socket_t::close(void)" (?close@socket_t@zmq@@QEAAXXZ). [C:\boid4\BT\build\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_setsockopt в функции "private: v
oid __cdecl zmq::detail::socket_base::set_option(int,void const *,unsigned __int64)" (?set_option@socket_base@detail@zm
q@@AEAAXHPEBX_K@Z). [C:\boid4\BT\build\behaviortree_cpp.vcxproj]
groot2_publisher.obj : error LNK2019: ссылка на неразрешенный внешний символ __imp_zmq_bind в функции "public: void __c
decl zmq::detail::socket_base::bind(char const *)" (?bind@socket_base@detail@zmq@@QEAAXPEBD@Z). [C:\boid4\BT\build\beha
viortree_cpp.vcxproj]
C:\boid4\BT\build\Debug\behaviortree_cppd.dll : fatal error LNK1120: неразрешенных внешних элементов: 16 [C:\boid4\BT\b
uild\behaviortree_cpp.vcxproj]`
Beta Was this translation helpful? Give feedback.
All reactions