Skip to content
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

how to corss-compile minio-cpp on ubuntu20.04 host for target aarch64 machine #74

Closed
wuxiangchao opened this issue May 24, 2023 · 2 comments

Comments

@wuxiangchao
Copy link

How to cross-compile minio-cpp on host machine ubuntu20.04 with aarch64-linux-gnu?
I'm add

set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_CROSSCOMPILING TRUE)

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

set(CMAKE_C_COMPILER "/usr/bin/aarch64-linux-gnu-gcc")
set(CMAKE_CXX_COMPILER "/usr/bin/aarch64-linux-gnu-g++")
set(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu)
set(CMAKE_INCLUDE_PATH /usr/aarch64-linux-gnu/include)
set(CMAKE_LIBRARY_PATH /usr/aarch64-linux-gnu/lib)
set(CMAKE_PROGRAM_PATH /usr/aarch64-linux-gnu/bin)

to

/minio-cpp/vcpkg-master/scripts/buildsystems/vcpkg.cmake

but without effective

@balamurugana
Copy link
Member

Refer microsoft/vcpkg#13436 and microsoft/vcpkg#24912 to cross compile with vcpkg

@wuxiangchao
Copy link
Author

Refer microsoft/vcpkg#13436 and microsoft/vcpkg#24912 to cross compile with vcpkg

thanks, let me try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants