Cross Compiling Issue #10412
-
I'm trying to transition from my current build system SCons into Meson so I started with a simple project. I'm doing a cross-compilation of a simple project (5 files); it should be straight forward but I'm getting the following error when running this command
If I execute the same command in the command line Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You're not supposed to get an error, but you are supposed to get output, something like:
However, using -c in your This breaks because then -c is always used for all compiler invocations, including the link stage. More specifically, it means that when running the linker detection, the linker is I'm not sure what your goal is in specifying |
Beta Was this translation helpful? Give feedback.
-
Thank you @eli-schwartz for your quick reply! I was using the -c to mimic exactly the build command from the IDE, thanks for the explanation. After removing the -c, meson still shows this error Below is the log file
I did a test and I was able to build the binary files using this command Please notice that I need to add build\meson-private in front of the file. Do I need to specify anything else on my cross-compilation file? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Thank you @eli-schwartz for your quick reply!
I was using the -c to mimic exactly the build command from the IDE, thanks for the explanation.
After removing the -c, meson still shows this error
meson.build:1:0: ERROR: Compiler .\tools\gcc_compiler\bin\ppc-freevle-eabi-gcc can not compile programs.
when running this commandmeson buildDir --cross-file .\cross_file.build
Below is the log file