[llvm-dev] Help Building LLVM for Android
Justin Giannone via llvm-dev
llvm-dev at lists.llvm.org
Sat Jun 8 08:59:49 PDT 2019
I'm working on a project in Android related to System-level Audio DSP
Effects for Tuning Android Audio. I want to leverage Faust (
https://faust.grame.fr/) to allow users to program their own filters.
Faust provides a libfaust implementation which includes a JIT Compiler
which leverages LLVM and seems to be the best path for me to use.
Unfortunately I'm having problems cross-compiling LLVM for Android on my
Windows Dev machine. Wondering if anyone has any advice for me?
I've been trying to use the android-ndk cmake & toolchains to build LLVM so
that I can cross-compile Faust against the Android LLVM build. I've
managed to get Android's cmake to generate an Android Gradle Ninja project,
but when I try to build it I get lots of errors that seem to indicate that
the Ninja project is invalid, such as the following errors :
> cmd.exe /C "cd . &&
> CMakeFiles/cmTC_4a28c.dir/testCCompiler.c.obj -o cmTC_4a28c.exe
> -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32
> -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
> -ladvapi32 && cd ."
> clang: error: unable to execute command: program not executable
> clang: error: linker command failed with exit code 1 (use -v to see
> ninja: build stopped: subcommand failed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev