### Start TuxGuitar Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Launches TuxGuitar from the command line after installation. ```sh $ tuxguitar ``` -------------------------------- ### Start TuxGuitar on Linux Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Starts the built TuxGuitar application from the target directory. ```sh $ cd target/tuxguitar-* $ ./tuxguitar.sh ``` -------------------------------- ### Download and Install SWT for Windows Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Downloads SWT 4.37 for Windows and installs it into the local Maven repository. ```sh $ wget https://download.eclipse.org/eclipse/downloads/drops4/R-4.37-202509050730/swt-4.37-win32-win32-x86_64.zip $ mkdir swt-4.37-win32-win32-x86_64 $ cd swt-4.37-win32-win32-x86_64 $ unzip ../swt-4.37-win32-win32-x86_64.zip $ mvn install:install-file -Dfile=swt.jar -DgroupId=org.eclipse.swt -DartifactId=org.eclipse.swt.win32.win32 -Dpackaging=jar -Dversion=4.37 $ cd .. ``` -------------------------------- ### Download and install SWT for Linux Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Downloads SWT 4.37 for Linux, extracts it, and installs the jar into the local Maven repository. ```sh $ wget https://download.eclipse.org/eclipse/downloads/drops4/R-4.37-202509050730/swt-4.37-gtk-linux-`uname -m`.zip $ mkdir swt-4.37-gtk-linux-`uname -m` $ cd swt-4.37-gtk-linux-`uname -m` $ unzip ../swt-4.37-gtk-linux-`uname -m`.zip $ mvn install:install-file -Dfile=swt.jar -DgroupId=org.eclipse.swt -DartifactId=org.eclipse.swt.gtk.linux -Dpackaging=jar -Dversion=4.37 $ cd .. ``` -------------------------------- ### Build and install TuxGuitar Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Builds the Debian package with native modules and installs it using dpkg. ```sh $ cd desktop/build-scripts/tuxguitar-linux-swt-deb $ mvn -e clean verify -P native-modules $ sudo dpkg -i target/tuxguitar-*.deb ``` -------------------------------- ### Install prerequisites on FreeBSD with pkg Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Installs required packages for building TuxGuitar on FreeBSD, including OpenJDK 11, Maven, SWT, and other dependencies. Optionally install the wqy-fonts package for Asian character display. ```sh $ sudo pkg install openjdk11 alsa-plugins maven swt gcc gmake fluidsynth wget git lilv suil ``` -------------------------------- ### Get the TuxGuitar sources Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Clones the TuxGuitar repository and changes into the source directory. ```sh $ git clone https://github.com/helge17/tuxguitar.git $ cd tuxguitar ``` -------------------------------- ### Build and start TuxGuitar on macOS Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Builds TuxGuitar for macOS using Maven with the native-modules profile. The resulting app is located in the target folder and can be started by double-clicking. ```sh $ cd desktop/build-scripts/tuxguitar-macosx-swt-cocoa $ mvn -e clean verify -P native-modules $ cd - ``` -------------------------------- ### Install SWT for FreeBSD Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Installs the system SWT jar (version 4.21 on FreeBSD 14.2) into the local Maven repository with the FreeBSD GTK artifact coordinates. ```sh mvn install:install-file -Dfile=/usr/local/share/java/classes/swt.jar -DgroupId=org.eclipse.swt -DartifactId=org.eclipse.swt.gtk.freebsd -Dpackaging=jar -Dversion=4.21 ``` -------------------------------- ### Build script hint Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Refer to this script for hints and workarounds needed to build TuxGuitar from source. ```sh misc/build_tuxguitar_from_source.sh ``` -------------------------------- ### Install prerequisites on Debian/Ubuntu Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Installs required packages for building TuxGuitar on Debian/Ubuntu Linux. Optionally install fonts-wqy-zenhei for Asian character display. ```sh $ sudo apt install wget unzip git build-essential default-jdk maven libwebkit2gtk-4.1-0 libfluidsynth-dev libjack-jackd2-dev libasound2-dev liblilv-dev libsuil-dev qtbase5-dev ``` -------------------------------- ### Install Prerequisites for Windows Cross-Compilation Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Installs required packages for cross-compiling TuxGuitar for Windows on Ubuntu/Debian using Mingw-w64. ```sh $ sudo apt install wget unzip git default-jdk maven gcc-mingw-w64-x86-64 g++-mingw-w64-i686-win32 ``` -------------------------------- ### Install WSL2 and Ubuntu Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Run in PowerShell as Administrator on Windows 10 version 2004+ or Windows 11. Installs WSL2, the Ubuntu distro by default, and sets everything up. May require a restart. ```powershell wsl --install ``` -------------------------------- ### Build TuxGuitar for Linux (Generic GNU/Linux) Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Builds TuxGuitar for Linux using Maven with native modules. Run from the desktop/build-scripts/tuxguitar-linux-swt directory. ```sh $ cd desktop/build-scripts/tuxguitar-linux-swt $ mvn -e clean verify -P native-modules ``` -------------------------------- ### Build TuxGuitar on FreeBSD Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Builds TuxGuitar for FreeBSD using Maven with the native-modules profile. ```sh $ cd desktop/build-scripts/tuxguitar-freebsd-swt $ mvn -e clean verify -P native-modules ``` -------------------------------- ### Download and install SWT for macOS Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Downloads SWT 4.37 for macOS, extracts it, and installs the jar into the local Maven repository. The architecture is detected automatically (arm64 mapped to aarch64). ```sh $ TUX_ARCH=`uname -m | sed 's/arm64/aarch64/'` $ wget https://download.eclipse.org/eclipse/downloads/drops4/R-4.37-202509050730/swt-4.37-cocoa-macosx-${TUX_ARCH}.zip $ mkdir swt-4.37-cocoa-macosx-${TUX_ARCH} $ cd swt-4.37-cocoa-macosx-${TUX_ARCH} $ unzip ../swt-4.37-cocoa-macosx-${TUX_ARCH}.zip $ mvn install:install-file -Dfile=swt.jar -DgroupId=org.eclipse.swt -DartifactId=org.eclipse.swt.cocoa.macosx -Dpackaging=jar -Dversion=4.37 $ cd .. ``` -------------------------------- ### Install prerequisites on macOS with Homebrew Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Installs OpenJDK, Maven, and wget via Homebrew, required to build TuxGuitar on macOS. ```sh $ brew install openjdk maven wget ``` -------------------------------- ### Copy build output to Windows filesystem Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md After a successful build, copy the resulting folder to your Windows filesystem. Adjust the /mnt/ folder as needed. ```sh $ cp -r desktop/build-scripts/tuxguitar-windows-swt-x86_64/target/tuxguitar-9.99-SNAPSHOT-windows-swt-x86_64 /mnt/c/tuxguitar ``` -------------------------------- ### Install Maven and SWT dependencies in Eclipse workspace Source: https://github.com/helge17/tuxguitar/blob/master/docs/IDEs.md Run these commands in the Eclipse workspace terminal to install Maven, create an 'externals' folder, download the SWT 4.37 package, and install the swt.jar into the local Maven repository. The version 4.37 and the artifact ID org.eclipse.swt.gtk.linux are required for the SWT build. ```sh eclipse-workspace$ sudo apt install maven eclipse-workspace$ mkdir externals eclipse-workspace$ cd externals eclipse-workspace$ wget https://archive.eclipse.org/eclipse/downloads/drops4/R-4.37-202509050730/swt-4.37-gtk-linux-x86_64.zip eclipse-workspace/externals$ mkdir swt-4.37-gtk-linux-x86_64 eclipse-workspace/externals$ cd swt-4.37-gtk-linux-x86_64 eclipse-workspace/externals$ unzip ../swt-4.37-gtk-linux-x86_64.zip eclipse-workspace/externals$ mvn install:install-file -Dfile=swt.jar -DgroupId=org.eclipse.swt -DartifactId=org.eclipse.swt.gtk.linux -Dpackaging=jar -Dversion=4.37 ``` -------------------------------- ### VM arguments for TuxGuitar debug configuration Source: https://github.com/helge17/tuxguitar/blob/master/docs/IDEs.md Set these VM arguments in the debug configuration's Arguments tab. Replace the placeholder paths with your actual TuxGuitar source folder path. The share path points to the 'share' folder in the build target, and the home path points to the installation folder. ```text -Dtuxguitar.share.path="(path to your tuxguitar source folder)/desktop/build-scripts/tuxguitar-linux-swt/target/tuxguitar-9.99-SNAPSHOT-linux-swt/share/" -Dtuxguitar.home.path="(path to your tuxguitar source folder)/desktop/build-scripts/tuxguitar-linux-swt/target/tuxguitar-9.99-SNAPSHOT-linux-swt/" ``` -------------------------------- ### Build TuxGuitar for Windows on Linux Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Builds the Windows version of TuxGuitar on Linux by explicitly deactivating the Linux profile and selecting the Windows profile. ```sh $ cd desktop/build-scripts/tuxguitar-windows-swt-x86_64 $ mvn -e clean verify -P native-modules -P -platform-linux -P platform-windows $ cd - ``` -------------------------------- ### Build TuxGuitar without running unit tests using -DskipTests Source: https://github.com/helge17/tuxguitar/blob/master/INSTALL.md Use this Maven command to build TuxGuitar when the build fails due to broken unit tests or other configuration-specific issues. Adding the -DskipTests flag skips unit tests, but this is not recommended. ```bash $ mvn -e clean verify -P native-modules -DskipTests ``` -------------------------------- ### Maven build goals for TuxGuitar SWT Source: https://github.com/helge17/tuxguitar/blob/master/docs/IDEs.md Enter 'clean verify' in the Goals field of the Maven Build run configuration. After running, expect 'BUILD SUCCESS' after a short delay. ```text clean verify ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.