Re: building for Android
Posted: Thu Apr 20, 2017 12:51 am
Ah, try "-fPIE -pie"jdart wrote:It is built from the branch I mentioned, except -fPIE has been added to the flags.
Ah, try "-fPIE -pie"jdart wrote:It is built from the branch I mentioned, except -fPIE has been added to the flags.
Code: Select all
10:18:09 folkert@belle:~/t/trunk-temop trunk(1) 130 ‡ /usr/src/android-ndk-r14b/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=/usr/src/android-ndk-r14b/sources/third_party/vulkan/src/build-android/jni/Android.mk
[arm64-v8a] Compile++ : VkLayer_core_validation <= core_validation.cpp
/usr/src/android-ndk-r14b/sources/third_party/vulkan/src/build-android/jni/../../layers/core_validation.cpp:31:10: fatal error: 'algorithm' file not found
#include <algorithm>
^
1 error generated.
make: *** [obj/local/arm64-v8a/objs/VkLayer_core_validation/__/__/layers/core_validation.o] Error 1
10:18:16 folkert@belle:~/t/trunk-temop trunk(1) 2s 2 ‡
This one is proper pie, but traps on an illegal instruction on any first input.jdart wrote:Ok, I added that, and updated the executable on arasanchess.org.
Code: Select all
# ./arasanx-android-arm
Arasan v20.0.0-54-g2be3283 Copyright 1994-2017 by Jon Dart. All Rights Reserved.
uci
Illegal instruction
Unfortunately the sd-card is always mounted with "noexec" which means that you can't execute anything from here.jdart wrote:I am going to try a PIC executable because at least I can get that to build.
But the actual error I am getting now is "Permission denied". I copied the file to sdcard/My Documents and it appears that strips off the execute permissions. And the phone is not rooted so I can't change them.
It appears adb can set permissions so maybe I need to install that.
--Jon