-
Notifications
You must be signed in to change notification settings - Fork 66
Building from source
Install ffpemg and mp4v2 using your favorite package manager or build it from source.
Install OpenJDK 14:
- using you favorite package manager or
- download and install manually from here https://jdk.java.net/14/ or
- follow instruction here https://computingforgeeks.com/how-to-install-java-14-on-ubuntu-debian/
Verify:
java -version
You should see:
openjdk version "14.0.1" 2020-04-14
Install maven:
- using your favourite package manager or
- download from here https://maven.apache.org/download.cgi
Verify:
mvn -V
You shou see:
Apache Maven 3.6.3
All versions 3.+ should work.
Install JavaFX:
- Go here https://gluonhq.com/products/javafx/
- Downloads mods for your platform and unpack them to some directory (i.e. javafx-mods)
- Downloads sdk for your paltform and and unpack them to some directory (i.e. javafx-sdk)
- Download source code or
- checkout it using git
git clone https://github.com/yermak/AudioBookConverter.git
cd AudioBookConverter
This is temporary step until ffmpeg-wrapper does not release version containing my patch (alterntatively you could build https://github.com/bramp/ffmpeg-cli-wrapper from source - master branch and install it)
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=lib/ffmpeg-0.6.3-SNAPSHOT.jar
Edit pom.xml find the line <javafx.mods>DIRECTORY</javafx.mods> in Linux section (very end of the file) and set path to unpacked javafx mods your downloaded earlier. find the line <java.home>DIRECTORY</java.home> in Linux section (very end of the file ) and set path to location where you installed OpenJDK 14
Execute chmod +X src/main/deploy/package/linux/package.sh
Actual build
mvn package
If you have not configured your system to build deb packages, part of the build will fail - please read the manual for jpackager in OpenJDK 14. However, to run a program you could copy jar files file from target directory, it will be called audiobookconverter-[VERSION]-jar-with-depencies to where you would like to keep audiobookconverter. create shell script > abc.sh
java --module-path "[PATH-TO-JAVAFX-SDK]\lib" --add-modules javafx.controls,javafx.fxml,javafx.media,javafx.base,javafx.swing,javafx.graphics -jar audiobookconverter-[VERSION]-jar-with-dependencies.jar
chmod +x abc.sh
TO BE CONTINUED...