Comments (3)
sorry for the late reply... I guess this is still an issue for you currently right?
Probably not immediately something to worry about I would say. @whoenig is more acquinted with python binding though.
from crazyflie-link-cpp.
Yes, it's still an issue with the latest master
, although the messages are a bit different now:
ld: warning: direct access in function 'pybind11_init_cflinkcpp(pybind11::module_&)' from file 'CMakeFiles/cflinkcpp.dir/src/python_bindings.cpp.o' to global weak symbol 'bitcraze::crazyflieLinkCpp::Packet::valid() const' from file 'libcrazyflieLinkCpp.a(Connection.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'pybind11_init_cflinkcpp(pybind11::module_&)' from file 'CMakeFiles/cflinkcpp.dir/src/python_bindings.cpp.o' to global weak symbol 'bitcraze::crazyflieLinkCpp::Packet::valid() const' from file 'libcrazyflieLinkCpp.a(Connection.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'pybind11_init_cflinkcpp(pybind11::module_&)' from file 'CMakeFiles/cflinkcpp.dir/src/python_bindings.cpp.o' to global weak symbol 'bitcraze::crazyflieLinkCpp::Packet::port() const' from file 'libcrazyflieLinkCpp.a(Connection.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'pybind11_init_cflinkcpp(pybind11::module_&)' from file 'CMakeFiles/cflinkcpp.dir/src/python_bindings.cpp.o' to global weak symbol 'bitcraze::crazyflieLinkCpp::Packet::port() const' from file 'libcrazyflieLinkCpp.a(Connection.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'unsigned long std::__1::__str_rfind<char, unsigned long, std::__1::char_traits<char>, 18446744073709551615ul>(char const*, unsigned long, char const*, unsigned long, unsigned long)' from file 'CMakeFiles/cflinkcpp.dir/src/python_bindings.cpp.o' to global weak symbol 'std::__1::char_traits<char>::eq(char, char)' from file 'libcrazyflieLinkCpp.a(Connection.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'unsigned long std::__1::__str_rfind<char, unsigned long, std::__1::char_traits<char>, 18446744073709551615ul>(char const*, unsigned long, char const*, unsigned long, unsigned long)' from file 'CMakeFiles/cflinkcpp.dir/src/python_bindings.cpp.o' to global weak symbol 'std::__1::char_traits<char>::eq(char, char)' from file 'libcrazyflieLinkCpp.a(Connection.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
Furthermore, I needed to patch CMakeLists.txt
to build on macOS:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2f972c..a543583 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,8 +75,8 @@ add_library(crazyflieLinkCpp
# Apple macOS libraries
if (APPLE)
- set(CMAKE_EXE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation")
- set(CMAKE_MODULE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation")
+ set(CMAKE_EXE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation -framework Security")
+ set(CMAKE_MODULE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation -framework Security")
endif()
# Link pthread on Linux and Mac only
Required linker flags were taken from the pkg-config
configuration file from libusb
:
Libs.private: -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-framework,Security
from crazyflie-link-cpp.
CMakeLists.txt
patch as outlined in the previous comment is not necessary any more now that 2095781 was committed.
The original warnings are still there, but indeed they don't seem to cause any problems.
from crazyflie-link-cpp.
Related Issues (14)
- Bootloader very slow when using cpp link HOT 3
- Windows build broken in CI HOT 3
- Crash when accessing Crazyradio with libusb-win32 driver HOT 12
- Why not make crazyflie-crtp-cpp a separate repository and add it as a submodule to this repo? HOT 12
- Add rate_limit flag
- Handling of Commander Packets HOT 4
- Please add ninja-build in your installation instructions HOT 1
- Builds not working for python 3.10 and 3.11 HOT 1
- Broadcast and console example not working consistently HOT 2
- Sleep vs. yield in CrazyradioThread HOT 9
- Benchmark example does not work for me HOT 1
- Client uses old param API error HOT 5
- Swarm Control & Broadcasting HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crazyflie-link-cpp.