Difference between revisions of "Compiling LuxCore"

From LuxCoreRender Wiki
Jump to navigation Jump to search
Line 4: Line 4:


<pre>
<pre>
# Static compilation scripts
# Download Static compilation scripts
git clone https://github.com/LuxCoreRender/LinuxCompile.git
git clone https://github.com/LuxCoreRender/LinuxCompile.git
cd LinuxCompile
cd LinuxCompile
# LuxCore sources
 
# Download LuxCore sources
git clone https://github.com/LuxCoreRender/LuxCore.git
git clone https://github.com/LuxCoreRender/LuxCore.git



Revision as of 09:56, 2 December 2017

Linux

First Run

# Download Static compilation scripts
git clone https://github.com/LuxCoreRender/LinuxCompile.git
cd LinuxCompile

# Download LuxCore sources
git clone https://github.com/LuxCoreRender/LuxCore.git

# Start build script, pass the path to the LuxCore sources as first argument
# This will take a very long time on the first run because it needs to compile all dependencies
./build-64-sse2 LuxCore

To test LuxCoreUI, you can now start it:

cd LuxCore
./bin/luxcoreui ./scenes/luxball/luxball-hdr.cfg

Recompiling

In case you edit any source files and want to recompile quickly, go to the LuxCore sources directory and run make:

cd LuxCore
make -j8

(-j<n> specifies number of threads for the compilation process)

The compiled binaries are in LuxCore/bin/, the compiled libraries (e.g. pyluxcore.so) are in LuxCore/lib/