Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with buildAmalgamation #534

Open
nekyouto opened this issue Jan 5, 2021 · 1 comment
Open

Build failed with buildAmalgamation #534

nekyouto opened this issue Jan 5, 2021 · 1 comment

Comments

@nekyouto
Copy link

nekyouto commented Jan 5, 2021

Expected Behavior: Build can be completed
Actual Behavior: Build failed at buildAmalgamation

Steps to Reproduce

Run: SQLCIPHER_ROOT=/home/ng/opt/android-database-sqlcipher-master OPENSSL_ROOT=/home/ng/opt1/openssl-master SQLCIPHER_ANDROID_VERSION="4.4.2" OPENSSL_ANDROID_LIB_ROOT=/home/ng/opt2 make build-release

Getting following error:
ng@ng-VirtualBox:~/opt1/android-database-sqlcipher-master$ SQLCIPHER_ROOT=/home/ng/opt/android-database-sqlcipher-master OPENSSL_ROOT=/home/ng/opt1/openssl-master SQLCIPHER_ANDROID_VERSION="4.4.2" OPENSSL_ANDROID_LIB_ROOT=/home/ng/opt2 make build-release
./gradlew android-database-sqlcipher:bundleReleaseAar
-PdebugBuild=false
-PsqlcipherRoot="/home/ng/opt/android-database-sqlcipher-master"
-PopensslRoot="/home/ng/opt1/openssl-master"
-PopensslAndroidLibRoot="/home/ng/opt2"
-PsqlcipherCFlags=""
-PsqlcipherAndroidClientVersion="4.4.2"

Task :android-database-sqlcipher:buildAmalgamation FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':android-database-sqlcipher:buildAmalgamation'.

A problem occurred starting process 'command './configure''

  • 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

When executing using ./gradlew android-database-sqlcipher:buildAmalgamation --info
Shows:

  • What went wrong:
    Could not evaluate onlyIf predicate for task ':android-database-sqlcipher:buildAmalgamation'.

Could not get unknown property 'sqlcipherDir' for task ':android-database-sqlcipher:buildAmalgamation' of type org.gradle.api.DefaultTask.

Tried hardcoding all the 'sqlcipherDir' with absolute path of android-database-sqlcipher folder gives:
Build cache is disabled
Task ':android-database-sqlcipher:buildAmalgamation' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command './configure''. Working directory: /home/ng/opt1/android-database-sqlcipher-master Command: ./configure --enable-tempstore=yes --with-crypto-lib=none
:android-database-sqlcipher:buildAmalgamation (Thread[Daemon worker Thread 13,5,main]) completed. Took 0.017 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':android-database-sqlcipher:buildAmalgamation'.

A problem occurred starting process 'command './configure''

  • 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

@developernotes
Copy link
Member

Hi @nekyouto

A couple of items. First, from your comment above:

SQLCIPHER_ROOT=/home/ng/opt/android-database-sqlcipher-master

This should be in reference to SQLCipher core, not SQLCipher for Android. Second, you will also want to include SQLCIPHER_CFLAGS in your command line, I have updated the build instructions to reflect this. If you have any other questions regarding building the software, please feel free to post on the SQLCipher Discuss site.

@sqlcipher sqlcipher locked and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants