-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
raspberry pi 3 and higher #9570
Comments
One more hack is needed on the raspberry pi vcpkg installation: sudo nano /vcpkg/scripts/buildsystems/vcpkg.cmake Then the vcpkg package manager works. Best regards |
Yup, would really love if it worked flawlessly on ARM like the other platforms |
Please have a look here. [vcpkg] Add community triple arm64-linux and arm-linux. #11880 https://github.com/xieyubo/vcpkg With this build it works out of the box. |
After cloning and compiling from source I get the following error:
Any suggestions? I have tried to set the variable to with both 0 and 1 but that did not help. (src: https://stackoverflow.com/questions/55204593/how-to-specify-cmake-version-used-by-vcpkg) |
@advra how exactly did you set the environment variable? On bash (default shell for Raspbian) this would be:
I also ran into the issue that vcpkg required ./vcpkg to run as root (i.e. sudo) and the variable did not carry over from my current user for some reason. |
@lindkvis when you export it doesnt persist from terminal to terminal (at least I think so). to do this you need to add the line Editing |
It would be nice to have full support for the raspberry pi arm platform. Currently with some hacks it is possible to use vcpkg, but it should be easy to include this in the the standard installation:
For the raspian - buster it is possible to install vcpkg with the following steps:
1.) install cmake 3.14.7 from sources, for example
2.) install vcpkg, for example
3.) install ninja :
4.) add triplet for arm-linux:
sudo cp /vcpkg/triplets/x64-linux.cmake /vcpkg/triplets/arm-linux.cmake sudo nano /vcpkg/triplets/arm-linux.cmake change line #1 to set(VCPKG_TARGET_ARCHITECTURE arm) (from set(VCPKG_TARGET_ARCHITECTURE x64)
5.) now simple packages can be installed,
for example:
cd /vcpkg sudo ./vcpkg install magic-enum:arm-linux sudo ./vcpkg install libuv:arm-linux
6.) almost troublefree:
7.) boost:
We are on arm, but as a hack
you need some files from an existing x64-Linux vcpkg installation:
then mv all installed files (/vcpkg/installed/vcpkg/info/boost-build_1.70.0-1_x64-linux.list) :
sudo mv /vcpkg/installed/x64-linux /vcpkg/installed/arm-linux sudo mv /vcpkg/packages/boost-build_x64-linux /vcpkg/packages/boost-build_arm-linux sudo mkdir /vcpkg/installed/arm-linux/tools sudo mv /vcpkg/installed/arm-linux/x64-linux/tools/boost-build /vcpkg/installed/arm-linux/tools #sudo mv /vcpkg/installed/arm-linux/x64-linux/share/boost-build /vcpkg/installed/arm-linux/tools/boost-build
then run:
build will fail, then:
8.) libwebp:
sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev cd /vcpkg sudo ./vcpkg install libwebp:arm-linux
this will result in a compile error on NEON related code.
sudo nano /vcpkg/buildtrees/libwebp/src/v1.0.2-58f2af1d99/cmake/cpu.cmake 57: + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon ")
then again sudo ./vcpkg install libwebp:arm-linux
9.)opencv: after 8.) do
then you can do sudo ./vcpkg install opencv[contrib,nonfree]:arm-linux
Best regards
The text was updated successfully, but these errors were encountered: