-
-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package architecture (amd64) does not match system (arm64) #1673
Comments
Thanks for testing. Sounds like we need to fix that package! |
Let's see if #1674 fixes it. |
Let's see if https://github.com/mavlink/MAVSDK/releases/tag/v1.0.2 works for you. |
Thanks @julianoes . It is installed successfully. But I encountered one more problem while building the example takeoff_and_land.cpp Error logs -- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
Could not find a package configuration file provided by "CURL" with any of
the following names:
CURLConfig.cmake
curl-config.cmake
Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
"CURL_DIR" to a directory containing one of the above files. If "CURL"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
/usr/lib/cmake/MAVSDK/MAVSDKConfig.cmake:7 (find_dependency)
CMakeLists.txt:12 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/dep/build/CMakeFiles/CMakeOutput.log".
|
The MAVSDK package does not come with curl, does it? Is curl installed on your system? |
@JonasVautherin I was assuming everything would be included because I was building a static library with superbuild, but I guess that's not what happened. |
Hmm the MAVSDKConfig.cmake we provide does not do anything for static builds, so it will still try to link the dependencies. The static build works for What do you think? |
I can reproduce it on a RPi 4. And I installed |
@JonasVautherin you're right. let's make it a dynamic build and require the dependencies. |
Ok, the release v1.0.3 now configures successfully, but it fails to link for me on Ubuntu 20.04 because the glibc version is too old there
|
Switching to LTS dockcross images with older glibc: #1676 |
Same error with release v1.0.4 Scanning dependencies of target takeoff_and_land
[ 50%] Building CXX object CMakeFiles/takeoff_and_land.dir/takeoff_and_land.cpp.o
[100%] Linking CXX executable takeoff_and_land
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `stat64@GLIBC_2.33'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `std::__atomic_futex_unsigned_base::_M_futex_wait_until_steady(unsigned int*, unsigned int, bool, std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >)@GLIBCXX_3.4.29'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `pthread_detach@GLIBC_2.34'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `__libc_single_threaded@GLIBC_2.32'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `pthread_join@GLIBC_2.34'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `stat@GLIBC_2.33'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `pthread_create@GLIBC_2.34'
/usr/bin/ld: /usr/lib/libmavsdk.so.1.0.4: undefined reference to `pthread_cond_clockwait@GLIBC_2.34'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/takeoff_and_land.dir/build.make:85: takeoff_and_land] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/takeoff_and_land.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
|
Yep, working on it. I believe I needed to clear the cache. |
I got the docker tags wrong, fix is coming. |
Still wrong, working on it. |
This is now working with v1.0.8 on aarch64 on a RPi 4 with Debian Buster, as well as armv6 on a RPi 3. |
Thanks @julianoes . It is working 😄 . |
Hello,
I am trying to install mavsdk library (without mavsdk server) on linux arm64. DPKG could not process the package as the architecture is different. To reproduce the error, the following docker file can be used.
Building docker image using buildx
Error logs
We can build mavsdk from the source using cmake. But using package would speed up our build process.
The text was updated successfully, but these errors were encountered: