diff options
author | nipos <ni.pos@yandex.com> | 2023-02-28 10:32:56 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-03-04 21:34:54 -0700 |
commit | 1fec1741b9174b889c99c48a28e344781ec769b9 (patch) | |
tree | 552918776aa67f19e7d96beee1f111d210449d11 /Documentation | |
parent | e35a858bde01ff5994dfc53bc48df1d6f400a065 (diff) | |
download | serenity-1fec1741b9174b889c99c48a28e344781ec769b9.zip |
Documentation: Add Ladybird build instructions for OpenIndiana
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/LadybirdBuildInstructions.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/LadybirdBuildInstructions.md b/Documentation/LadybirdBuildInstructions.md index 6d693da9ea..dcfec750d6 100644 --- a/Documentation/LadybirdBuildInstructions.md +++ b/Documentation/LadybirdBuildInstructions.md @@ -41,6 +41,14 @@ xcode-select --install brew install cmake qt ninja ``` +On OpenIndiana: + +Note that OpenIndianas latest GCC port (GCC 11) is too old to build Ladybird, so you need Clang, which is available in the repository. + +``` +pfexec pkg install cmake ninja clang-15 libglvnd qt6 +``` + On Windows: WSL2/WSLg are preferred, as they provide a linux environment that matches one of the above distributions. @@ -111,6 +119,23 @@ export SERENITY_SOURCE_DIR=$(realpath ../) ./Build/ladybird/ladybird # or, in macOS: open ./Build/ladybird/ladybird.app ``` +### Building on OpenIndiana + +OpenIndiana needs some extra environment variables set to make sure it finds all the executables +and directories it needs for the build to work. The cmake files are in a non-standard path that +contains the Qt version (replace 6.2 with the Qt version you have installed) and you need to tell +it to use clang and clang++, or it will use gcc and g++ from GCC 10 which is currently the default +to build packages on OpenIndiana. + +When running Ladybird, make sure that XDG_RUNTIME_DIR is set, or it will immediately crash as it +doesn't find a writable directory for its sockets. + +``` +CMAKE_PREFIX_PATH=/usr/lib/qt/6.2/lib/amd64/cmake cmake -GNinja -S Ladybird -B Build/ladybird -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ +cmake --build Build/ladybird +XDG_RUNTIME_DIR=/var/tmp ninja -C Build/ladybird run +``` + ## Experimental Android Build Steps ### Prepping Qt Creator |