Difference between revisions of "Compiling LuxCore"

From LuxCoreRender Wiki
Jump to navigation Jump to search
(added a note about pulling and a section about contributing)
Line 21: Line 21:
cd LuxCore
cd LuxCore
./bin/luxcoreui ./scenes/luxball/luxball-hdr.cfg
./bin/luxcoreui ./scenes/luxball/luxball-hdr.cfg
</pre>
=== Updating ===
To update to the latest sources, use standard git commands:
<pre>
git pull
</pre>
</pre>


=== Recompiling ===
=== Recompiling ===


In case you edit any source files and want to recompile quickly, go to the LuxCore sources directory and run make:
In case you edit or update any source files and want to recompile quickly, go to the LuxCore sources directory and run make:
 
<pre>
<pre>
cd LuxCore
cd LuxCore
make -j8
make -j8
</pre>
</pre>
(-j<n> specifies number of threads for the compilation process)
(-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/
The compiled binaries are in LuxCore/bin/, the compiled libraries (e.g. pyluxcore.so) are in LuxCore/lib/
== Contributing ==
If you want to contribute to LuxCore development or just submit a quick patch, the easiest way to start is to fork the repository on github.<br>
You can then edit your fork, commit your changes and [https://help.github.com/articles/creating-a-pull-request-from-a-fork/ send us a pull request].<br>
If you continue to contribute, we will eventually give you direct access to the repositories.

Revision as of 18:49, 6 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

Updating

To update to the latest sources, use standard git commands:

git pull

Recompiling

In case you edit or update 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/

Contributing

If you want to contribute to LuxCore development or just submit a quick patch, the easiest way to start is to fork the repository on github.
You can then edit your fork, commit your changes and send us a pull request.
If you continue to contribute, we will eventually give you direct access to the repositories.