![logo-1080x.png](https://static.wixstatic.com/media/325b65_4b0687ae13c74331aeef88aad172b618~mv2.png/v1/fill/w_194,h_196,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/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"