manfreddiaz / openal-android-sample

A working sample of openal4android library.
6 stars 1 forks source link

ninja: build stopped, no such file or directory #1

Closed monatis closed 7 years ago

monatis commented 7 years ago

I get the following error when building this project. If I understand correctly, some scripts refers to 'files/android-sdk', but my sdk is placed in 'C:\Program Files\android-sdk'. Where should I correct this path?

screenshot 2017-09-06 17 47 39

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/Asus/AndroidStudioProjects/openal-android-sample/openAL4Android/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files/android-sdk/cmake/3.6.4111459/bin/ninja.exe" "cmTC_2926d" [1/2] Building C object CMakeFiles/cmTC_2926d.dir/testCCompiler.c.o

FAILED: C:\PROGRA~1\ANDROI~1\NDK-BU~1\TOOLCH~1\llvm\prebuilt\WINDOW~1\bin\clang.exe --target=armv7-none-linux-androideabi --gcc-toolchain="C:/Program Files/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64" --sysroot="C:/Program Files/android-sdk/ndk-bundle/sysroot" -isystem C:/Program Files/android-sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=9 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -o CMakeFiles/cmTC_2926d.dir/testCCompiler.c.o -c C:\Users\Asus\AndroidStudioProjects\openal-android-sample\openAL4Android.externalNativeBuild\cmake\release\armeabi-v7a\CMakeFiles\CMakeTmp\testCCompiler.c

clang.exe: error: no such file or directory: 'Files/android-sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi'

ninja: build stopped: subcommand failed.

monatis commented 7 years ago

I've just found out that spaces in the path to android-sdk breaks ndk build. So I moved my sdk directory to 'C:\android-sdk', and it's working now. Thanks.

manfreddiaz commented 7 years ago

@monatis Good to hear it is working now!