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
Linux ARM / aarch64 support #3647
Comments
Yes indeed there is! In particular, I started out using vcpkg for a few projects with the hope that it supported ARM to make targeting the Raspberry Pi a possibility. At the very least, it would be desirable to note this lack of architecture support in the documentation (README or readthedocs). There is no mention of x86 dependence that I could find. |
Our team is also very much interested in this feature! Would make deploying to devices significantly simpler. |
vcpkg can be build quite easily on a raspberry pi Then simply: but then triplets have to be defined... |
build cmake-3.15 from source and install to /usr/bin and /usr/share |
@meitiever thanks steve |
on jetson nano ubuntu 18.04lts is using 3.10.2 |
On Debian 10, I have to compile CMake 3.14+ from source and |
This works for me for now
|
Here's how I got it working:
./bootstrap-vcpkg.sh -useSystemBinaries
set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
export VCPKG_DEFAULT_TRIPLET=arm64-linux
export VCPKG_FORCE_SYSTEM_BINARIES=1
cmake -B [build directory] -S . -DVCPKG_TARGET_TRIPLET=arm64-linux -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake |
Please also improve #12362 |
The |
@jagrme00 I am having the same issue with Ubuntu 20.04 shell hangs and nothing happens. Did you ever figure it out? |
@jagrme00 why sudo? |
@advra Unfortunately I had no time to analyze this behavior. Since I needed only a few libraries, I built them from source with CMake.
@linquize I'm not a linux expert, but I thought it's better to try it with sudo because I don't know what commands are executed by this script. In addition I was too lazy to look inside the script. As far as I can see it shouldn't be the reason for the problem. The device I was using was based on a NVIDIA Tegra X2. Maybe someone got it running on this platform? |
@jagrme00 |
@linquize Thanks for this information. |
Move the discussion to #17738. |
based on these suggestions from this issue microsoft/vcpkg#3647
Currently ./bootstrap-vcpkg.sh does not attempt to detect architecture, assuming x86_64 on Linux. This means that the bootstrap tools that are fetched cannot run. I see the following output in the terminal:
Is there interest from the project in supporting aarch64 (and maybe other architectures?)
The text was updated successfully, but these errors were encountered: