libiconv-libicu-android icon indicating copy to clipboard operation
libiconv-libicu-android copied to clipboard

fail to identify Win11

Open pupymk1 opened this issue 2 years ago • 0 comments

Line 9-16 in Boost-for-Android-master\libiconv-libicu-android\setEnvironment-$(arch).sh

if uname -s | grep -i "linux" > /dev/null ; then
	MYARCH=linux-$(arch)
	NDK=`readlink -f $NDK`
elif uname -s | grep -i "darwin" > /dev/null ; then
	MYARCH=darwin-x86_64
elif uname -s | grep -i "windows" > /dev/null ; then
	MYARCH=windows-x86_64
fi

these codes fail to identify Windows( Mine is Win11 ), which makes $MYARCH an empty string. Then I got this error:

checking for aarch64-linux-android21-gcc... /d/Android/Sdk/ndk/android-ndk-r23c/toolchains/llvm/prebuilt//bin/aarch64-linux-android21-clang
checking whether the C compiler works... no
configure: error: in '/e/Download/Boost-for-Android-master/libiconv-libicu-android/arm64-v8a/libiconv-1.15':
configure: error: C compiler cannot create executables
See 'config.log' for more details
+ exit 1

I changed elif uname -s | grep -i "windows" > /dev/null ; then to just else to make it work. I don't know whether it happens on all windows or just win11, but uname -s returns MINGW32_NT-6.2 in my shell.

pupymk1 avatar Jul 29 '22 08:07 pupymk1