
Peter

Moderator: Ras
Code: Select all
util.cpp:26:14: fatal error: 'wordexp.h' file not found
#include <wordexp.h>
Code: Select all
$NDK/build/tools/make_standalone_toolchain.py --arch arm --api 21 --install-dir ./my_android
Code: Select all
WARNING:__main__:make_standalone_toolchain.py is no longer necessary. The
$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin directory contains target-specific scripts that perform
the same task. For example, instead of:
$ python $NDK/build/tools/make_standalone_toolchain.py \
--arch arm --api 21 --install-dir toolchain
$ toolchain/bin/clang++ src.cpp
Instead use:
$ $NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ src.cpp
Code: Select all
#!/bin/bash
exe=rodentIV_android
echo "Building $exe"
OPT="-s -Wall -Wno-char-subscripts -Wno-reorder -DNDEBUG -O3 -flto -std=c++14"
./android/bin/aarch64-linux-android21-clang++ $OPT *.cpp -o $exe
Code: Select all
util.cpp:26:14: fatal error: 'wordexp.h' file not found
#include <wordexp.h>
Code: Select all
FILE *personalityFile = NULL;
if (isabsolute(fileName) // if known locations don't exist we want to load only from absolute paths
|| ChDirEnv("RIIIPERSONALITIES") // try `RIIIPERSONALITIES` env var first (26/08/17: linux only)
|| ChDir(_PERSONALITIESPATH)) // next built-in path
personalityFile = fopen(fileName, "r");