aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquietok(david) <quietok@protonmail.com>2021-09-13 00:47:00 -0500
committerFelix Queißner <felix@ib-queissner.de>2021-09-13 10:33:29 +0200
commit8a7dfe0b1ab9783fddb93d890ea4b856eb93db60 (patch)
tree10796a02b3b9481290cddd04d2b4cae551ffac35
parent2cdf23f692ae9050f1f109162aeac82d37643748 (diff)
Fix x86 for Haiku and maybe others
-rw-r--r--BUILDING.md11
-rw-r--r--src/kristall.pro3
2 files changed, 14 insertions, 0 deletions
diff --git a/BUILDING.md b/BUILDING.md
index 50eb49b..c071198 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -142,6 +142,17 @@ Use QtCreator to build `./src/kristall.pro` with default settings.
- `openssl_devel` (should be preinstalled)
2. Use `make` to build the executable
+#### Haiku x86
+
+1. Install the following packages with `pkgman`:
+ - `qt5_x86`
+ - `qt5_x86_devel`
+ - `qt5_x86_tools`
+ - `libiconv_x86_devel`
+ - `openssl_x86_devel` (should be preinstalled)
+2. run `setarch x86`
+3. Use `make` to build the executable
+
## Manual Installation
### Unix / XDG
diff --git a/src/kristall.pro b/src/kristall.pro
index cca3b72..5af4e6c 100644
--- a/src/kristall.pro
+++ b/src/kristall.pro
@@ -34,6 +34,9 @@ QMAKE_CXXFLAGS += -Wno-unused-parameter -Werror=return-type
QMAKE_CXXFLAGS += -std=c++17
CONFIG += c++17
+# avoid x86 OOM errors
+CONFIG += resources_big
+
win32-msvc {
# message("Use windows/msvc build")
QMAKE_CFLAGS -= -Wno-unused-parameter