Skip to content

Missing build.xml according to build directions & other minor build issues #188

Closed
@brody4hire

Description

@brody4hire

When I followed the build instructions in https://github.com/sqlcipher/android-database-sqlcipher#building on a new system (with Android API 22 installed):

make init
make

it built the native libraries then failed with the following output:

ant release
Buildfile: build.xml does not exist!
Build failed
make: *** [build-java] Error 1

I was able to actually generate build.xml (using the following command):

android update project -p . -t android-22

then finished the build:

make build-java copy-libs

This should be documented.

A couple of other build-related items:

There is a copy-libs-dist target, which is never referenced in the Makefile, that only copies the jar(s) and armeabi native target library:

copy-libs-dist:
    cp ${LIBRARY_ROOT}/*.jar dist/SQLCipherForAndroid-SDK/libs/ && \
    cp ${LIBRARY_ROOT}/armeabi/*.so dist/SQLCipherForAndroid-SDK/libs/armeabi/

We should either fix it to copy the other native target libraries or remove it.

We should also add a "super-clean" target that simply removes all generated artifacts. I started working on this in #171 and then put it on hold.

Unfortunately I cannot promise when I may have a chance to issue a fix for these.

UDPATES with a couple more minor points:

  • add instructions (simply make build-java) to rebuild the Java (JAR) only
  • add clear instructions to sqlcipher-android-tests how to build and install:
android update project -p . -t android-22
ant debug install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions