Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to identify Win11 #16

Open
pupymk1 opened this issue Jul 29, 2022 · 0 comments
Open

fail to identify Win11 #16

pupymk1 opened this issue Jul 29, 2022 · 0 comments

Comments

@pupymk1
Copy link

pupymk1 commented Jul 29, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant