Giter VIP home page Giter VIP logo

Comments (6)

nshmyrev avatar nshmyrev commented on May 20, 2024

You missed few more lines in the output above

from vosk-api.

zli18 avatar zli18 commented on May 20, 2024

I did build-kaldi.sh first, and commented out kaldi in build.gradle to avoid rebuilding it. Here is the full message from gradle build:

> Task :swig FAILED
Unable to open file build/generated-src/cpp/kaldi_recognizer_wrap.cc: No such file or directory

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':swig'.
> Process 'command 'swig'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

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

BUILD FAILED in 0s
2 actionable tasks: 2 executed

But I don't seem to have the generated-src folder under build. Is that supposed to be there?

from vosk-api.

nshmyrev avatar nshmyrev commented on May 20, 2024

Run with --info or --debug option to get more log output

from vosk-api.

zli18 avatar zli18 commented on May 20, 2024
ubuntu:~/test-kaldi-android/kaldi-android$ gradle build --info
Initialized native services in: /home/ubuntu/.gradle/native
The client will now receive all logging from the daemon (pid: 22726). The daemon log file: /home/ubuntu/.gradle/daemon/5.4.1/daemon-22726.out.log
Starting 28th build in daemon [uptime: 4 hrs 9 mins 48.368 secs, performance: 100%, non-heap usage: 45% of 268.4 MB]
Using 8 worker leases.
Starting Build
Settings evaluated using settings file '/home/ubuntu/test-kaldi-android/kaldi-android/settings.gradle'.
Projects loaded. Root project using build file '/home/ubuntu/test-kaldi-android/kaldi-android/build.gradle'.
Included projects: [root project 'kaldi-android']

> Configure project :
Evaluating root project 'kaldi-android' using build file '/home/ubuntu/test-kaldi-android/kaldi-android/build.gradle'.
Creating configuration androidTestUtil
Creating configuration compile
Creating configuration publish
Creating configuration provided
Creating configuration api
Creating configuration implementation
Creating configuration runtimeOnly
Creating configuration compileOnly
Creating configuration wearApp
Creating configuration annotationProcessor
Creating configuration androidTestCompile
Creating configuration androidTestPublish
Creating configuration androidTestProvided
Creating configuration androidTestApi
Creating configuration androidTestImplementation
Creating configuration androidTestRuntimeOnly
Creating configuration androidTestCompileOnly
Creating configuration androidTestWearApp
Creating configuration androidTestAnnotationProcessor
Creating configuration testCompile
Creating configuration testPublish
Creating configuration testProvided
Creating configuration testApi
Creating configuration testImplementation
Creating configuration testRuntimeOnly
Creating configuration testCompileOnly
Creating configuration testWearApp
Creating configuration testAnnotationProcessor
Creating configuration debugCompile
Creating configuration debugPublish
Creating configuration debugProvided
Creating configuration debugApi
Creating configuration debugImplementation
Creating configuration debugRuntimeOnly
Creating configuration debugCompileOnly
Creating configuration debugWearApp
Creating configuration debugAnnotationProcessor
Creating configuration androidTestDebugCompile
Creating configuration androidTestDebugPublish
Creating configuration androidTestDebugProvided
Creating configuration androidTestDebugApi
Creating configuration androidTestDebugImplementation
Creating configuration androidTestDebugRuntimeOnly
Creating configuration androidTestDebugCompileOnly
Creating configuration androidTestDebugWearApp
Creating configuration androidTestDebugAnnotationProcessor
Creating configuration testDebugCompile
Creating configuration testDebugPublish
Creating configuration testDebugProvided
Creating configuration testDebugApi
Creating configuration testDebugImplementation
Creating configuration testDebugRuntimeOnly
Creating configuration testDebugCompileOnly
Creating configuration testDebugWearApp
Creating configuration testDebugAnnotationProcessor
Creating configuration releaseCompile
Creating configuration releasePublish
Creating configuration releaseProvided
Creating configuration releaseApi
Creating configuration releaseImplementation
Creating configuration releaseRuntimeOnly
Creating configuration releaseCompileOnly
Creating configuration releaseWearApp
Creating configuration releaseAnnotationProcessor
Creating configuration testReleaseCompile
Creating configuration testReleasePublish
Creating configuration testReleaseProvided
Creating configuration testReleaseApi
Creating configuration testReleaseImplementation
Creating configuration testReleaseRuntimeOnly
Creating configuration testReleaseCompileOnly
Creating configuration testReleaseWearApp
Creating configuration testReleaseAnnotationProcessor
All projects evaluated.
Selected primary task 'build' from project :
android.ndkVersion from module build.gradle is not set
ndk.dir in local.properties is not set
ANDROID_NDK_HOME environment variable is /usr/lib/android-sdk/ndk/20.1.5948944
sdkFolder is /usr/lib/android-sdk
Support for ANDROID_NDK_HOME is deprecated and will be removed in the future. Use android.ndkVersion in build.gradle instead.
Considering /usr/lib/android-sdk/ndk/20.1.5948944 by ANDROID_NDK_HOME
Considering /usr/lib/android-sdk/ndk-bundle in SDK ndk-bundle folder
Considering /usr/lib/android-sdk/ndk/20.1.5948944 in SDK ndk folder
Rejected /usr/lib/android-sdk/ndk-bundle in SDK ndk-bundle folder because that location has no source.properties
No user requested version, choosing /usr/lib/android-sdk/ndk/20.1.5948944 which is version 20.1.5948944
No CMake version was specified in build.gradle. Choosing a suitable version.
Trying to locate CMake in local SDK repository.
- CMake found in SDK at '/usr/lib/android-sdk/cmake/3.6.4111459' had version '3.6.0'
No CMake version was specified in build.gradle. Choosing a suitable version.
Trying to locate CMake in local SDK repository.
- CMake found in SDK at '/usr/lib/android-sdk/cmake/3.6.4111459' had version '3.6.0'
Tasks to be executed: [task ':mkdir', task ':swig', task ':preBuild', task ':preDebugBuild', task ':compileDebugAidl', task ':compileDebugRenderscript', task ':checkDebugManifest', task ':generateDebugBuildConfig', task ':generateDebugResValues', task ':generateDebugResources', task ':packageDebugResources', task ':parseDebugLibraryResources', task ':processDebugManifest', task ':generateDebugRFile', task ':javaPreCompileDebug', task ':compileDebugJavaWithJavac', task ':extractDebugAnnotations', task ':mergeDebugGeneratedProguardFiles', task ':mergeDebugConsumerProguardFiles', task ':mergeDebugShaders', task ':compileDebugShaders', task ':generateDebugAssets', task ':packageDebugAssets', task ':packageDebugRenderscript', task ':prepareLintJarForPublish', task ':processDebugJavaRes', task ':mergeDebugJavaResource', task ':transformClassesAndResourcesWithSyncLibJarsForDebug', task ':generateJsonModelDebug', task ':externalNativeBuildDebug', task ':mergeDebugJniLibFolders', task ':mergeDebugNativeLibs', task ':stripDebugDebugSymbols', task ':transformNativeLibsWithSyncJniLibsForDebug', task ':bundleDebugAar', task ':compileDebugSources', task ':assembleDebug', task ':preReleaseBuild', task ':compileReleaseAidl', task ':compileReleaseRenderscript', task ':checkReleaseManifest', task ':generateReleaseBuildConfig', task ':generateReleaseResValues', task ':generateReleaseResources', task ':packageReleaseResources', task ':parseReleaseLibraryResources', task ':processReleaseManifest', task ':generateReleaseRFile', task ':javaPreCompileRelease', task ':compileReleaseJavaWithJavac', task ':extractReleaseAnnotations', task ':mergeReleaseGeneratedProguardFiles', task ':mergeReleaseConsumerProguardFiles', task ':mergeReleaseShaders', task ':compileReleaseShaders', task ':generateReleaseAssets', task ':packageReleaseAssets', task ':packageReleaseRenderscript', task ':processReleaseJavaRes', task ':mergeReleaseJavaResource', task ':transformClassesAndResourcesWithSyncLibJarsForRelease', task ':generateJsonModelRelease', task ':externalNativeBuildRelease', task ':mergeReleaseJniLibFolders', task ':mergeReleaseNativeLibs', task ':stripReleaseDebugSymbols', task ':transformNativeLibsWithSyncJniLibsForRelease', task ':bundleReleaseAar', task ':compileReleaseSources', task ':mergeReleaseResources', task ':verifyReleaseResources', task ':assembleRelease', task ':assemble', task ':prepareLintJar', task ':lint', task ':bundleLibResDebug', task ':preDebugUnitTestBuild', task ':javaPreCompileDebugUnitTest', task ':compileDebugUnitTestJavaWithJavac', task ':processDebugUnitTestJavaRes', task ':testDebugUnitTest', task ':bundleLibResRelease', task ':preReleaseUnitTestBuild', task ':javaPreCompileReleaseUnitTest', task ':compileReleaseUnitTestJavaWithJavac', task ':processReleaseUnitTestJavaRes', task ':testReleaseUnitTest', task ':test', task ':check', task ':build']
:mkdir (Thread[Execution worker for ':',5,main]) started.

> Task :mkdir
Task :mkdir in kaldi-android Starting
Caching disabled for task ':mkdir' because:
  Build cache is disabled
Task ':mkdir' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Task :mkdir in kaldi-android Finished
:mkdir (Thread[Execution worker for ':',5,main]) completed. Took 0.001 secs.
:swig (Thread[Execution worker for ':',5,main]) started.

> Task :swig FAILED
Task :swig in kaldi-android Starting
Caching disabled for task ':swig' because:
  Build cache is disabled
Task ':swig' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Starting process 'command 'swig''. Working directory: /home/ubuntu/test-kaldi-android/kaldi-android Command: swig -c++ -java -package org.kaldi -outdir build/generated-src/java -o build/generated-src/cpp/kaldi_recognizer_wrap.cc src/main/cpp/kaldi_recognizer.i
Successfully started process 'command 'swig''
Unable to open file build/generated-src/cpp/kaldi_recognizer_wrap.cc: No such file or directory
Task :swig in kaldi-android Finished
:swig (Thread[Execution worker for ':',5,main]) completed. Took 0.049 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':swig'.
> Process 'command 'swig'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

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

BUILD FAILED in 0s
2 actionable tasks: 2 executed

from vosk-api.

zli18 avatar zli18 commented on May 20, 2024

OK, I manually created generated-src/cpp and generated-src/java under build. it seems to fix it for now.

from vosk-api.

nshmyrev avatar nshmyrev commented on May 20, 2024

Ok, they should be created in mkdirs task.

from vosk-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.