This document will guide you through the compiling process. QUsb2Snes can be built with Qt 5.8 minimum but we recommend using Qt 6.5 or higher.
If you get the source code with a git clone
, you need to set up the git submodules.
git submodule init
git submodule update
-
You need the development files for Qt
-
You will need the development files for websocket and serialport libraries that goes with your Qt version
-
You can either use the Qbs build tool or the regular qmake build too to build it. QMake is simpler to use.
qmake QUsb2snes.pro CONFIG+='release'
make
Then, start the QUsb2Snes binary directory that is created.
If you want to build a version that does not use a Gui (to use it without a XServer):
qmake "QUSB2SNES_NOGUI=1" CONFIG+='release'
make
QUsb2snes will compile by default in a standalone mode where the config file is set on its current directory.
You need to use the sqpackager_unix_installer.sh
script that will set all the proper things and install all the related files
like the localizations, desktop and man according to the specified prefix
sh ./sqpackager_unix_installer.sh --build --install --prefix /usr/local/
If you need to specify which qmake version to use you can use the --qmake-cmd
argument