Closed danielweck closed 6 years ago
r15c
(latest, still with GCC compat)
Note that this occurs when invoking gradlew build
from the command line. My local.properties
:
sdk.dir=C\:\\Users\\Daniel\\AppData\\Local\\Android\\android-sdk
ndk.dir=C\:\\Users\\Daniel\\AppData\\Local\\Android\\android-sdk\\ndk-bundle
readium.ndk_experimental=true
readium.ndk_clang=false
readium.ndk_skipX86=true
readium.ndk_skipARM=false
readium.sdk_lib_dir=../../../readium-sdk/Platform/Android/epub3/build/outputs/native/debug/arm/lib/armeabi-v7a/
readium.sdk_include_dir=../../../readium-sdk/Platform/Android/epub3/include/
This same compiler error also occurs when compiling from Android Studio Error:fatal error: streambuffs/crc32_streambuf.h: No such file or directory
(disabled readium.sdk_lib_dir
and readium.sdk_include_dir
vars in local.properties
, and manual copy of readium-sdk/Platform/Android/epub3/build/outputs/native/debug/arm/lib/armeabi-v7a/*.so
into readium-sdk/Platform/Android/epub3/libs/armeabi-v7a/*.so
so that the Gradle build script can find the prebuilt ReadiumSDK shared libraries)
I'm on Windows 10 by the way.
NDK r15c
is installed by Android Studio in PATH/TO/android-sdk/ndk-bundle/
.
https://developer.android.com/ndk/downloads/index.html
I am going to "downgrade" to r14b
and see what happens...
https://developer.android.com/ndk/downloads/older_releases.html
What a waste of time :(
CC @clebeaupin @llemeurfr
May be related to: https://github.com/readium/SDKLauncher-Android/issues/125 ?
Same error with NDK 14 !
Side note:
Strangely, the ReadiumSDK libs are now in readium-sdk\Platform\Android\lib\build\intermediates\binaries\debug\arm\lib\armeabi-v7a
instead of readium-sdk/Platform/Android/epub3/build/outputs/native/debug/arm/lib/armeabi-v7a/
(not sure why)
Ok, so next step: try to build on OSX (last time I tried it worked).
I checked on OSX, works just fine. I made sure to use the exact same SDK platform versions (all the way down to CMake, LLDB etc.) So, this seems to be a Windows-specific problem ... which is a bummer, as my Windows 10 laptop is quicker than my Mac, so I would prefer to use it for Android development :(
Okay, after quite a bit of debugging, trial and experimentations...the code compiles in Windows when the templated C++ classes are moved: https://github.com/readium/readium-lcp-client/tree/develop/src/third-parties/ziplib/Source/ZipLib/streams/streambuffs Bizarre compiler error! (obscure console messages too)
Testing now...