cross-compiling

Cross compiling gRPC using cmake

假如想象 提交于 2020-12-04 08:24:57
问题 I'm trying to cross-compile a gRPC using cmake. I actually managed to do it. Unfortunately my method involves tinkering inside CMakeLists.txt. Problem was that, when I was trying to compile gRPC it was using protobuffer he just compiled. It cannot run ARM compiled executables on x86 machine. I managed to compile it by specifying path to protoc and grpc_cpp_plugin manually in gRPCs main CMakeLists.txt. It is dirty and since I would like to include gRPC as submodule I need clean way to do it.

Cross compiling gRPC using cmake

大兔子大兔子 提交于 2020-12-04 08:24:39
问题 I'm trying to cross-compile a gRPC using cmake. I actually managed to do it. Unfortunately my method involves tinkering inside CMakeLists.txt. Problem was that, when I was trying to compile gRPC it was using protobuffer he just compiled. It cannot run ARM compiled executables on x86 machine. I managed to compile it by specifying path to protoc and grpc_cpp_plugin manually in gRPCs main CMakeLists.txt. It is dirty and since I would like to include gRPC as submodule I need clean way to do it.

Cross compiling gRPC using cmake

廉价感情. 提交于 2020-12-04 08:24:18
问题 I'm trying to cross-compile a gRPC using cmake. I actually managed to do it. Unfortunately my method involves tinkering inside CMakeLists.txt. Problem was that, when I was trying to compile gRPC it was using protobuffer he just compiled. It cannot run ARM compiled executables on x86 machine. I managed to compile it by specifying path to protoc and grpc_cpp_plugin manually in gRPCs main CMakeLists.txt. It is dirty and since I would like to include gRPC as submodule I need clean way to do it.

Using Xcode to cross-compile Swift to Linux?

荒凉一梦 提交于 2020-12-03 07:26:22
问题 Let's say I have an Xcode project using Swift and some C. All frameworks/dependencies used by the project are available on both platforms. Is there a simple way to tell Xcode to generate the .framework or just build the entire project for, say, a raspberry pi? 来源: https://stackoverflow.com/questions/45595057/using-xcode-to-cross-compile-swift-to-linux