You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works when host=build (or compatible arch). However, if I build for arm on intel, this does not work. The executable can not be run (unless i set up automatic emulation using qemu and binfmt). Or in my case, i just do not have the correct libs installed:
[build] [1/7] Building CXX object src/codegen/CMakeFiles/codegen_main.dir/main.cpp.o
[build] [2/7] Linking CXX executable src/codegen/codegen_main
[build] [3/7] Generating code /home/user/testprojects/conan/build/armv8-linux-gcc-release/src/generated.cpp
[build] FAILED: src/generated.cpp /home/user/testprojects/conan/build/armv8-linux-gcc-release/src/generated.cpp
[build] cd /home/user/testprojects/conan/build/armv8-linux-gcc-release/src && /home/user/testprojects/conan/build/armv8-linux-gcc-release/src/codegen/codegen_main /home/user/testprojects/conan/build/armv8-linux-gcc-release/src/generated.cpp ---baked\ into\ generated\ code---
[build] aarch64-binfmt-P: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory
What is conan2's suggested solution to this problem? I guess, there must be a solution how I can build the target codegen_main with the build-profile?
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
What is your question?
Hi,
I got a project that generates code. I create an executable that needs to run at build time producing input for another compile step.
I made a demo project using the the regular cmake template (
conan new ...
).conan.zip
This works when host=build (or compatible arch). However, if I build for arm on intel, this does not work. The executable can not be run (unless i set up automatic emulation using qemu and binfmt). Or in my case, i just do not have the correct libs installed:
What is conan2's suggested solution to this problem? I guess, there must be a solution how I can build the target
codegen_main
with the build-profile?Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: