Building Windows Version - markcullen/kura_Windows GitHub Wiki
##Building on A Windows Host
The host system should be running 64 bit Windows 7 or later, and the following tools must be installed.
####JAVA JDK
The JDK provides the runtime environment and tools for the JAVA language used by KURA and the build system.
Select the Windows x64 installer from the download page at
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
####Maven 3.0.5
Maven is a JAVA based build system designed to help automate large JAVA base projects like KURA.
More details are available on the project website at https://maven.apache.org.
The required file can be downloaded from here:
http://archive.apache.org/dist/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.zip
Unpack the .zip file into \Program Files, add the \Program Files\apache-maven-3.0.5\bin directory to the PATH, and create an M2_HOME environment variable set to \Program Files\apache-maven-3.0.5.
Check that maven is installed and working
mvn -version
NB: It is important to use version 3.0.5 as there are some plugin compatibility issues with later versions.
####NSIS
NSIS is an open source project designed to build Windows installer packages.
More details are available on the project website at http://nsis.sourceforge.net/Main_Page
Simply download and run the latest 2.x installer from the downloads page.
Add the NSIS directory (Normally Program Files\NSIS) to your path.
Check that NSIS is installed and working
makensis -v
NB: 3.x versions of NSIS should also work but have not been tested.
####MinGW-w64
MinGW-w64 is a port of the gcc tools designed to create Windows exectuatble.
More details are available on the project website at http://mingw-w64.org/doku.php
From the downloads page select Mingw-builds, then select Sourceforge. This will open the Sourceforge page containing the Mingw-w64 installer. The installer must be run twice once for the 32 bit tools and once for the 64 bit tools.
Run the installer and select i686 for the Architecture on the Settings page to install the 32 bit tools.
Run the installer again and select x86_64 for the Architecture to install the 64 bit tools.
NB: It is important to use MinGW-w64 not MinGW as it includes 64 bit compilers which are required to build KURA.
####Msysgit
Msysgit provides Git tools for Windows and includes a bash style shell used during the KURA build.
More details are available on the project website at https://git-for-windows.github.io/
Simply download and run the Msysgit installer.
From the Git entry on the start menu open, Git Bash to get a bash shell.
Download the sources from Github.
git clone -b develop https://github.com/markcullen/Kura_windows.git
Build the target specific files
cd target-platform
mvn clean install
Build the core components
cd ../kura
mvn -Dmaven.test.skip=true -f manifest_pom.xml -Pcan clean install
mvn -Dmaven.test.skip=true -f pom_pom.xml -Pweb -Pwindows clean install
##Building on A Linux Host