Wiki
Clone wikisqlite4java / Platforms / BuildingForAlpine
Install Required SDKs and Libraries
Install JDK 1.8+
- This guide uses openjdk8, which can be installed with the following command:
sudo apk add openjdk8
- Configure the JAVA_HOME environment variable:
echo "export JAVA_HOME='/usr/lib/jvm/default-jvm'" >> ~/.bashrc
Install Gant version 1.10.0.
- This guide uses the standalone version, but other gant packages may work.
- The following steps will install the Gant standalone:
wget https://gant.github.io/distributions/gant-1.10.0.tgz
tar xf gant-1.10.0.tgz && sudo mv gant-1.10.0 /usr/libexec/
sudo ln -s /usr/libexec/gant-1.10.0/bin/gant /usr/bin/gant
- Configure the GANT_HOME environment variable:
echo "export GANT_HOME='/usr/libexec/gant-1.10.0'" >> ~/.bashrc
Install git, gcc, swig, libc-dev
sudo apk add git gcc swig libc-dev
Install ant-junit
- add ant-junit: https://mvnrepository.com/artifact/org.apache.ant/ant-junit to $GANT_HOME/lib For example, version 1.8, use the following commands:
wget http://central.maven.org/maven2/org/apache/ant/ant-junit/1.8.4/ant-junit-1.8.4.jar
sudo mv ant-junit-1.8.4.jar "$GANT_HOME/lib"
Clone the Repository
- Get sqlite4java using the following command
git clone https://bitbucket.org/almworks/sqlite4java
Build the Code
- From the sqlite4java/ant directory, run command
gant -Dplatform=<platform> release all
to build a release package. Some example platforms:- linux-i386 for x86
- Example:
gant -Dplatforms=linux-i386 release all
- Example:
- linux-amd64 for x86-64
- Example:
gant -Dplatforms=linux-amd64 release all
- Example:
- You can only use both if you have the build tools for both architectures installed.
- linux-i386 for x86
Updated