Skip to content

Schine/StarMadeNative

Repository files navigation

StarMadeNative

Recommeded compilers/IDEs:

Windows - Visual Studio 2015

Linux - CodeBlocks GCC 4.7+

OSX - XCode

Notes

You made need to update the JDK location in the compiler includes

The configured JDK location on CodeBlocks is "../java/jdk1.8.0_92/"

To change the configured location in CodeBlocks navigate to 'Project -> Build Options'

Check the image below for the location, make sure you select "StarMadeNative" on the left side CBP JDK Settings

Compiling with the Makefile

Clone this repo and navigate to the StarMadeNative directory;
git clone https://github.com/Schine/StarMadeNative.git && cd StarMadeNative

Check compiler options in the Makefile are correct (you must check that the JAVADIR and JAVAOSDIR variables are set to your Java 8 installation directories;
JAVADIR should look like this, but it will differ depending on your operating system, these examples are for Debian Linux 11 with Oracle Java 8 installed.
JAVADIR= /usr/lib/jvm/jdk1.8.0_321/include
JAVAOSDIR should look like this, again, will differ depending on operating system.
JAVAOSDIR = /usr/lib/jvm/jdk1.8.0_321/include/linux
However if you are not on Linux, for example you are on FreeBSD, then the include/linux will instead be include/FreeBSD
Once the compiler options in the Makefile are adapted to your system, run
make clean && make all
You will then find the compiled StarMade native library in StarMadeNative/bin/Releases/libStarMadeNative64.so.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published