renard314 / textfairy

Android OCR App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build compilation failed with ./gradlew app:assembleDevelopDebug

puneetgupta1808 opened this issue · comments

DC2-DEV53:textfairy admin53$ ./gradlew app:assembleDevelopDebug

Configure project :app
signing.properties not found
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.
Configuration 'releaseCompile' in project ':app' is deprecated. Use 'releaseImplementation' instead.
Configuration 'androidTestCompile' in project ':app' is deprecated. Use 'androidTestImplementation' instead.
Configuration 'testCompile' in project ':app' is deprecated. Use 'testImplementation' instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)

Configure project :tess-two:tess-two
Configuration 'compile' in project ':tess-two:tess-two' is deprecated. Use 'implementation' instead.

Task :app:processDevelopDebugGoogleServices
Parsing json file: /Users/admin53/Documents/textfairy/app/google-services.json

Task :app:externalNativeBuildDevelopDebug
Build jpeg x86
Android NDK: WARNING:/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../hocr2pdf/src/Android.mk:hocr2pdf: non-system libraries in linker flags: -lpngo
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:/Users/admin53/Documents/textfairy/app/src/main/jni/image_processing/Android.mk:image_processing_jni: non-system libraries in linker flags: -llept
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[x86] Compile : jpeg <= jcapimin.c
[x86] Compile : jpeg <= jcapistd.c
[x86] Compile : jpeg <= jccoefct.c
[x86] Compile : jpeg <= jccolor.c
[x86] Compile : jpeg <= jcdctmgr.c
[x86] Compile : jpeg <= jchuff.c
[x86] Compile : jpeg <= jcinit.c
[x86] Compile : jpeg <= jcmainct.c
[x86] Compile : jpeg <= jcmarker.c
[x86] Compile : jpeg <= jcmaster.c
[x86] Compile : jpeg <= jcomapi.c
[x86] Compile : jpeg <= jcparam.c
[x86] Compile : jpeg <= jcphuff.c
[x86] Compile : jpeg <= jcprepct.c
[x86] Compile : jpeg <= jcsample.c
[x86] Compile : jpeg <= jctrans.c
[x86] Compile : jpeg <= jdapimin.c
[x86] Compile : jpeg <= jdapistd.c
[x86] Compile : jpeg <= jdatadst.c
[x86] Compile : jpeg <= jdatasrc.c
[x86] Compile : jpeg <= jdcoefct.c
[x86] Compile : jpeg <= jdcolor.c
[x86] Compile : jpeg <= jddctmgr.c
[x86] Compile : jpeg <= jdhuff.c
[x86] Compile : jpeg <= jdinput.c
[x86] Compile : jpeg <= jdmainct.c
[x86] Compile : jpeg <= jdmarker.c
[x86] Compile : jpeg <= jdmaster.c
[x86] Compile : jpeg <= jdmerge.c
[x86] Compile : jpeg <= jdphuff.c
[x86] Compile : jpeg <= jdpostct.c
[x86] Compile : jpeg <= jdsample.c
[x86] Compile : jpeg <= jdtrans.c
[x86] Compile : jpeg <= jerror.c
[x86] Compile : jpeg <= jfdctflt.c
[x86] Compile : jpeg <= jfdctfst.c
[x86] Compile : jpeg <= jfdctint.c
[x86] Compile : jpeg <= jidctflt.c
[x86] Compile : jpeg <= jidctred.c
[x86] Compile : jpeg <= jquant1.c
[x86] Compile : jpeg <= jquant2.c
[x86] Compile : jpeg <= jutils.c
[x86] Compile : jpeg <= jmemmgr.c
[x86] Compile : jpeg <= jmem-android.c
/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../libjpeg/jmem-android.c
:135:5: warning:
implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration]
unlink(path);
^
/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../libjpeg/jmem-android.c:141:45: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
snprintf(path, 1023, "/sdcard/.%d.tmp", getpid());
^
2 warnings generated.
[x86] Compile : jpeg <= jidctint.c
[x86] Compile : jpeg <= jidctfst.c
[x86] SharedLibrary : libjpeg.so
Build image_processing_jni x86
Android NDK: WARNING:/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../hocr2pdf/src/Android.mk:hocr2pdf: non-system libraries in linker flags: -lpngo
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:/Users/admin53/Documents/textfairy/app/src/main/jni/image_processing/Android.mk:image_processing_jni: non-system libraries in linker flags: -llept
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[x86] Compile++ : image_processing_jni <= binarize.cpp
/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../image-processing/src/binarize.cpp:84:43: error: use of undeclared identifier 'GPLOT_X11'
gplot = gplotCreate(name.str().c_str(), GPLOT_X11, name.str().c_str(),
^
1 error generated.
make: *** [/Users/admin53/Documents/textfairy/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/objs/image_processing_jni//Users/admin53/Documents/textfairy/app/src/main/jni/////image-processing/src/binarize.o] Error 1

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:externalNativeBuildDevelopDebug'.

Build command failed.
Error while executing process /Users/admin53/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/admin53/Documents/textfairy/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/admin53/Documents/textfairy/app/src/main/jni/Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-15 NDK_OUT=/Users/admin53/Documents/textfairy/app/build/intermediates/ndkBuild/develop/debug/obj NDK_LIBS_OUT=/Users/admin53/Documents/textfairy/app/build/intermediates/ndkBuild/develop/debug/lib /Users/admin53/Documents/textfairy/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/libimage_processing_jni.so}
Android NDK: WARNING:/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../hocr2pdf/src/Android.mk:hocr2pdf: non-system libraries in linker flags: -lpngo
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:/Users/admin53/Documents/textfairy/app/src/main/jni/image_processing/Android.mk:image_processing_jni: non-system libraries in linker flags: -llept
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[x86] Compile++ : image_processing_jni <= binarize.cpp
/Users/admin53/Documents/textfairy/app/src/main/jni/../../../../image-processing/src/binarize.cpp:84:43: error: use of undeclared identifier 'GPLOT_X11'
gplot = gplotCreate(name.str().c_str(), GPLOT_X11, name.str().c_str(),
^
1 error generated.
make: *** [/Users/admin53/Documents/textfairy/app/build/intermediates/ndkBuild/develop/debug/obj/local/x86/objs/image_processing_jni//Users/admin53/Documents/textfairy/app/src/main/jni/////image-processing/src/binarize.o] Error 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 34s
31 actionable tasks: 31 executed
DC2-DEV53:textfairy admin53$

fixed on master