![]() ![]() Android ndk r10 code#Dynamic compilation also needs to set LD export CFLAGS = "-fPIE -fPIC"#Android 5.0 without fpic (Position-independent code )Cannot be executedĮxport LDFLAGS = "-pie" #Set connection options 3. ![]() Target_host =aarch64-linux-android #Cross compilation prefix is not necessarily this export AR = $target_host-ar #Setup compression tool export AS = $target_host-clang #Set the assembler export CC = $target_host-clang #Set up the C language compiler export CXX = $target_host-clang #Set up the C compiler export LD = $target_host-ld #Setup linker export STRIP = $target_host-strip #Set trim tool #Generally speaking, cross-compilation is enough to set CC. Configure environment variables export PATH = $PATH:path #ndk's installation path Android ndk r10 android##arch is the architecture of the tool chain, generally the target platform #api is the level of Android api, which represents the Android version #install-dir is the installation directory, which should be added to the environment variable after installationĤ. Installation build/tools/make_standalone_toolchain.py \ Unzip after downloading and go to the unzipped directoryģ. Installation steps (recommended to see the link above), because what I wrote may be different from the version you installed, Although i am too COPYOf the official websiteĢ. First download a cross compilation tool chain: ![]() TERM(Terminal type) is also useless, and then the ndk compiled successfully, it was used at the time ndkr20ġ. Android ndk r10 software#A whole cross compilerīecause it is compiled on the Android platform, it is best to use the cross tool chain provided by ndk, for example, I used linaro 4.9As a result, the cursor position of the compiled software is displayed abnormally. PS: This is Lua's official compilation tutorial (non-cross compilation) 2. Go to the official website to download the source code of lua: Tip: If you just plan to use it in the terminal luaYou can try termux, Or just intend to get luaExecutable file can also be installed termux, Directly at ~/./usr/binYou can find the lua executable file in the directory (provided you have installed it) Start 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |