Skip to content
Krazer edited this page Dec 6, 2020 · 13 revisions

Compiling:

FastNoise2 use cmake for compilation, install cmake with your os support.

Install CMake

Windows:

Download from https://cmake.org/download/ and install

Linux:

ubuntu

sudo apt-get install cmake

and others...

Running CMake

Once you have cmake cd to the FastNoise repo directory and run

cmake -H. -Bbuild

(with the latest versions of cmake you can use -S. rather then -H.)

after cmake completes, cd to the build directory and run make.

Building FastNoise

Windows

You can either open the solution file in the FastNoise repo/build directory with Visual Studio and compile or run

cmake --build build --config {build type}

{build type} either Debug or Release.

Linux

Either run make

cd build
make

or with cmake

cmake --build build --config {build type}

{build type} either Debug or Release.

Include/Linking to project

Windows

cmake - (install will be added soon)

Visual Studio - (soon to be added)

Linux

cmake - (install will be added soon)

native - clang

clang++ -o main {yourcpp}.cpp -I{directory of FastNoise includes} -L{directory of FastNoise libs} -lFastNoise

You may need the following depending on shared/static mode when compiling

-Wl,-Bstatic 

or

-Wl,-Bdynamic