top of page
logo-1080x.png

Building LigidPainter

Install git

$ sudo apt install git

Download for windows : https://git-scm.com/download/win

Install cmake

$ sudo apt install cmake

Download for windows : https://cmake.org/download/

OpenAL, Freetype & zlib binaries are required.

Compile any library using cmake :

$ cd AnyLibUsingCmake
$ mkdir build && cd build
$ cmake .. -DBUILD_SHARED_LIBS=ON
$ make
$ make install

Create a folder named lib inside of the LigidPainter/Main/thirdparty folder.

Put the static libraries there. The linker will search the static libraries there as it's indicated in the cmake file.

​

Dynamic/shared libraries can be located at the prompt path.

$ cd ./LigidPainter

Get the source code by cloning the repository via git. Then navigate to the cloned folder.

$ cmake -S . -B ./build 

$ cmake --build ./build

These 2 commands should be enough to create the build folder, & build it for both windows & unix-like operating systems

-S : Source cmake file

-B : Destination

cmake -S . -B build -G "Unix Makefiles"

cmake -S . -B build -G "MinGW Makefiles" 

bottom of page