A simple invoice creation tool
Create Makefiles with
cmake -S . --preset linux-default
This will create the Makefiles for debug configuration in directory _build/linux/debug
and the release configuration in _build/linux/release
.
Compile the application with for debug configuration with
cmake --build --preset linux-default-debug -- -j
and for release configuration with
cmake --build --preset linux-default-release -- -j
Finally, run the application, compiled for debug configuration with
_build/linux/src/ui/nina/Debug/nina
and for release configuration with
_build/linux/src/ui/nina/Relase/nina
The following steps show how to setup an environment to compile the nina application for Windows within Linux.
-
Clone MXE repository:
git clone --branch master --single-branch https://github.com/mxe/mxe.git
-
Build necessary libraries with MXE with
cd mxe make qtbase_CONFIGURE_OPTS="-debug-and-release -no-opengl" qt5 boost -j MXE_TARGETS='x86_64-w64-mingw32.shared'
This will create release and debug libraries for Qt.
If a release configuration is sufficient one can use instead:
make qtbase_CONFIGURE_OPTS="-no-opengl" qt5 boost -j MXE_TARGETS='x86_64-w64-mingw32.shared
-
Get source code
cd .. git clone --recurse-submodules https://github.com/tiropp/nina.git cd nina
-
Create build configuration
cmake -S . --preset win-cross-default -DMXE_DIR=`pwd`/../mxe
-
Build application
cmake --build --preset win-cross-default-release
-
Create app installer with
cpack --preset win-cross-default
The installer is to be found at
_build/win-linux/nina-0.2.3-win64.exe
WORK IN PROGRESS
- Install Mingw-w64 toolchain, see Using Mingw-w64 natively on Windows. The following commands are executed in MSYS2 shell.
- Install additional tools with:
pacman -S --needed cmake ninja
- Get source code
git clone --recurse-submodules https://github.com/tiropp/nina.git cd nina
- Setup vcpkg with
extern/vcpkg/bootstrap-vcpkg.sh -disableMetrics
- Configure project with
cmake -S . --preset win-default