GaseousStates / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

build-binary.mk:315 recipe for target failed #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when i want to build the .so file with ndk-build command in cygwin, i got an 
error as follow:

Compile++ thumb  : webpbackport <= android_backport_webp_WebPFactory.cpp
StaticLibrary  : libstdc++.a
SharedLibrary  : libwebpbackport.so
./obj/local/armeabi/objs/webpbackport/android_backport_webp_WebPFactory.o: In fu
nction `Java_android_backport_webp_WebPFactory_nativeEncodeBitmap':
C:\Users\lenovoG470\ndk\webp-android-backport-library/jni/webpbackport/android_b
ackport_webp_WebPFactory.cpp:204: undefined reference to `WebPGetEncoderVersion'

C:\Users\lenovoG470\ndk\webp-android-backport-library/jni/webpbackport/android_b
ackport_webp_WebPFactory.cpp:237: undefined reference to `WebPEncodeRGBA'
C:\Users\lenovoG470\ndk\webp-android-backport-library/jni/webpbackport/android_b
ackport_webp_WebPFactory.cpp:242: undefined reference to `WebPEncodeRGB'
./obj/local/armeabi/objs/webpbackport/android_backport_webp_WebPFactory.o: In fu
nction `Java_android_backport_webp_WebPFactory_nativeDecodeByteArray':
C:\Users\lenovoG470\ndk\webp-android-backport-library/jni/webpbackport/android_b
ackport_webp_WebPFactory.cpp:31: undefined reference to `WebPGetDecoderVersion'
C:\Users\lenovoG470\ndk\webp-android-backport-library/jni/webpbackport/android_b
ackport_webp_WebPFactory.cpp:40: undefined reference to `WebPGetInfo'
C:\Users\lenovoG470\ndk\webp-android-backport-library/jni/webpbackport/android_b
ackport_webp_WebPFactory.cpp:94: undefined reference to `WebPDecodeRGBAInto'
collect2: ld returned 1 exit status
/cygdrive/c/Users/lenovoG470/ndk/build/core/build-binary.mk:315: recipe for targ
et 'obj/local/armeabi/libwebpbackport.so' failed
make: *** [obj/local/armeabi/libwebpbackport.so] Error 1

i try to search this problem in Internet, but havent got a soloved answer. 
Anyone can help? Thank you.

Original issue reported on code.google.com by hwl...@gmail.com on 25 Apr 2015 at 8:43

GoogleCodeExporter commented 9 years ago
I'm not familiar with the webpbackport project, is it using the Android.mk from 
our repository to build libwebp?
I don't see any libwebp files in the output, but the link error implies there's 
a missing dependency. If it's building libwebp within its own makefiles then 
the module which contains them should be added to LOCAL_STATIC_LIBRARIES. 
Similarly if using the Android.mk from this project LOCAL_STATIC_LIBRARIES 
should contain 'webp'.

Original comment by jz...@google.com on 29 Apr 2015 at 2:32

GoogleCodeExporter commented 9 years ago
Thank you for your answers.Yes, you are right. It dose miss a dependency, which 
is a submodule from other project. I have solved this problem by adding 
--recursive as argument when using git clone command.

Original comment by hwl...@gmail.com on 30 Apr 2015 at 7:14

GoogleCodeExporter commented 9 years ago
Thanks for the update. I'll close this now since it doesn't directly involve 
this project.

Original comment by jz...@google.com on 30 Apr 2015 at 11:07