![]() |
#1 |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Trying to build KOReader on Mac.
Hey everyone! I've been referring to the instructions here: https://github.com/koreader/koreader...oc/Building.md
After trying a few times, I keep running into errors. This seems pretty par the course when I google. But I can't find a solution. Plus I'm just copying and pasting commands. This is the latest attempt: Code:
./kodev build make TARGET= KODEBUG=1 VERBOSE= ▸ 0% | Building 'harfbuzz' | [harfbuzz 1%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o -MF src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o -c ../source/src/hb-buffer-verify.cc In file included from ../source/src/hb-buffer-verify.cc:27: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 3%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-blob.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-blob.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-blob.cc.o -MF src/libharfbuzz.0.dylib.p/hb-blob.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-blob.cc.o -c ../source/src/hb-blob.cc In file included from ../source/src/hb-blob.cc:28: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 5%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o -MF src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o -c ../source/src/hb-buffer-serialize.cc In file included from ../source/src/hb-buffer-serialize.cc:27: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 7%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o -MF src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o -c ../source/src/hb-aat-map.cc In file included from ../source/src/hb-aat-map.cc:29: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 8%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-buffer.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-buffer.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-buffer.cc.o -MF src/libharfbuzz.0.dylib.p/hb-buffer.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-buffer.cc.o -c ../source/src/hb-buffer.cc In file included from ../source/src/hb-buffer.cc:30: In file included from ../source/src/hb-buffer.hh:33: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 10%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o -MF src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o -c ../source/src/hb-aat-layout.cc In file included from ../source/src/hb-aat-layout.cc:28: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. ▸ 2% | Preparing 'luasocket' FAILED: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/stamp/build cd /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/build && : "" && set -- harfbuzz "Building 'harfbuzz'" 0 /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/stamp/build && . /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/koenv.sh && run ninja && /opt/homebrew/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/raylam/koreader/base/cmake /Users/raylam/koreader/base/thirdparty/harfbuzz /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/build.d /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/CMakeFiles/d/5c0e003b1791335fd70ec3a64315f89fdb14738163634c867adbb7e787e008d3.d ▸ 6% | Installing 'libiconv' ninja: build stopped: subcommand failed. make: *** [base/Makefile:89: base-all] Error 1 Code:
sudo xcode-select --reset Code:
./kodev build make TARGET= KODEBUG=1 VERBOSE= ▸ 0% | Building 'harfbuzz' | [harfbuzz 1%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o -MF src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o -c ../source/src/hb-buffer-serialize.cc In file included from ../source/src/hb-buffer-serialize.cc:27: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 3%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-blob.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-blob.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-blob.cc.o -MF src/libharfbuzz.0.dylib.p/hb-blob.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-blob.cc.o -c ../source/src/hb-blob.cc In file included from ../source/src/hb-blob.cc:28: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 5%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o -MF src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o -c ../source/src/hb-aat-map.cc In file included from ../source/src/hb-aat-map.cc:29: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 7%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o -MF src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o -c ../source/src/hb-aat-layout.cc In file included from ../source/src/hb-aat-layout.cc:28: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. ▸ 1% | Preparing 'libk2pdfopt' FAILED: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/stamp/build cd /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/build && : "" && set -- harfbuzz "Building 'harfbuzz'" 0 /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/stamp/build && . /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/koenv.sh && run ninja && /opt/homebrew/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/raylam/koreader/base/cmake /Users/raylam/koreader/base/thirdparty/harfbuzz /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/build.d /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/CMakeFiles/d/5c0e003b1791335fd70ec3a64315f89fdb14738163634c867adbb7e787e008d3.d ▸ 5% | Configuring 'glib' ninja: build stopped: subcommand failed. make: *** [base/Makefile:89: base-all] Error 1 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
export MACOSX_DEPLOYMENT_TARGET=10.04 (or something much higher, like your current macOS version) is extremely important on macOS.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Quote:
Code:
raylam@vurtPro koreader % export MACOSX_DEPLOYMENT_TARGET=14.00 raylam@vurtPro koreader % ./kodev build make TARGET= KODEBUG=1 VERBOSE= ▸ 0% | Building 'harfbuzz' | [harfbuzz 1%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o -MF src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-buffer-verify.cc.o -c ../source/src/hb-buffer-verify.cc In file included from ../source/src/hb-buffer-verify.cc:27: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 3%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o -MF src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-buffer-serialize.cc.o -c ../source/src/hb-buffer-serialize.cc In file included from ../source/src/hb-buffer-serialize.cc:27: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 5%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-blob.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-blob.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-blob.cc.o -MF src/libharfbuzz.0.dylib.p/hb-blob.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-blob.cc.o -c ../source/src/hb-blob.cc In file included from ../source/src/hb-blob.cc:28: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 7%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o -MF src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-aat-map.cc.o -c ../source/src/hb-aat-map.cc In file included from ../source/src/hb-aat-map.cc:29: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. | [harfbuzz 8%] Compiling C++ object src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o FAILED: src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o env g++ -Isrc/libharfbuzz.0.dylib.p -Isrc -I../source/src -I. -I../source -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include/freetype2 -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/staging/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O0 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -std=gnu++17 -mcpu=apple-m1 -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o -MF src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o.d -o src/libharfbuzz.0.dylib.p/hb-aat-layout.cc.o -c ../source/src/hb-aat-layout.cc In file included from ../source/src/hb-aat-layout.cc:28: ../source/src/hb.hh:194:10: fatal error: 'cassert' file not found 194 | #include <cassert> | ^~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. ▸ 0% | Downloading 'lpeg' FAILED: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/stamp/build cd /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/build && : "" && set -- harfbuzz "Building 'harfbuzz'" 0 /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/stamp/build && . /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/koenv.sh && run ninja && /opt/homebrew/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/raylam/koreader/base/cmake /Users/raylam/koreader/base/thirdparty/harfbuzz /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/harfbuzz/build.d /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/CMakeFiles/d/5c0e003b1791335fd70ec3a64315f89fdb14738163634c867adbb7e787e008d3.d ▸ 5% | Preparing 'mupdf' ninja: build stopped: subcommand failed. make: *** [base/Makefile:89: base-all] Error 1 |
|
![]() |
![]() |
![]() |
#4 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
On macos KOReader requires the sdk, called xcode commandline tools.
Some versions of the sdk are broken. Please have a look at which version is used on github automated builds and try to use the same. |
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Quote:
Code:
raylam@vurtPro ~ % xcode-select --version xcode-select version 2408. Code:
macos: strategy: fail-fast: false matrix: include: - image: '13' platform: 'x86-64' xcode_version: '15.2' deployment_target: '10.15' - image: '14' platform: 'ARM64' xcode_version: '15.4' deployment_target: '11.0' Last edited by vurt; 12-03-2024 at 06:40 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
15.4 is, but I think your command there shows the version of xcode-select itself.
I don't have a Mac at hand atm, but this is what the CI does: Code:
sudo xcode-select -s /Applications/Xcode_15.4.app xcodebuild -version xcode-select -p |
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Quote:
I pasted the command lines from the build instructions, but had no idea Xcode is an app that had to be downloaded from the App Store. I found the download link for 15.4: https://download.developer.apple.com...Xcode_15.4.xip But unfortunately the file is corrupted. I've downloaded it a few times, tried it with Firefox and Safari, also tried opening the file with UnArchiver and BetterZip. I installed the App Store version and tried again—at least I'm getting different error so hopefully the previous one is solved. Code:
raylam@vurtPro koreader % ./kodev build make TARGET= KODEBUG=1 VERBOSE= ▸ 0% | Building 'libjpeg-turbo' | [libjpeg-turbo 0%] Building C object CMakeFiles/jpeg12.dir/jcapistd.c.o FAILED: CMakeFiles/jpeg12.dir/jcapistd.c.o /usr/bin/gcc -DNEON_INTRINSICS -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -mcpu=apple-m1 -fPIC -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.09 -fPIC -DBITS_IN_JSAMPLE=12 -MD -MT CMakeFiles/jpeg12.dir/jcapistd.c.o -MF CMakeFiles/jpeg12.dir/jcapistd.c.o.d -o CMakeFiles/jpeg12.dir/jcapistd.c.o -c /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcapistd.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk' [-Wmissing-sysroot] In file included from /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcapistd.c:21: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jinclude.h:37:10: fatal error: 'stdlib.h' file not found 37 | #include <stdlib.h> | ^~~~~~~~~~ 1 error generated. | [libjpeg-turbo 0%] Building C object CMakeFiles/jpeg12.dir/jcmainct.c.o FAILED: CMakeFiles/jpeg12.dir/jcmainct.c.o /usr/bin/gcc -DNEON_INTRINSICS -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -mcpu=apple-m1 -fPIC -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.09 -fPIC -DBITS_IN_JSAMPLE=12 -MD -MT CMakeFiles/jpeg12.dir/jcmainct.c.o -MF CMakeFiles/jpeg12.dir/jcmainct.c.o.d -o CMakeFiles/jpeg12.dir/jcmainct.c.o -c /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcmainct.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk' [-Wmissing-sysroot] In file included from /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcmainct.c:19: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jinclude.h:37:10: fatal error: 'stdlib.h' file not found 37 | #include <stdlib.h> | ^~~~~~~~~~ 1 error generated. | [libjpeg-turbo 1%] Building C object CMakeFiles/jpeg12.dir/jcdiffct.c.o FAILED: CMakeFiles/jpeg12.dir/jcdiffct.c.o /usr/bin/gcc -DNEON_INTRINSICS -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -mcpu=apple-m1 -fPIC -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.09 -fPIC -DBITS_IN_JSAMPLE=12 -MD -MT CMakeFiles/jpeg12.dir/jcdiffct.c.o -MF CMakeFiles/jpeg12.dir/jcdiffct.c.o.d -o CMakeFiles/jpeg12.dir/jcdiffct.c.o -c /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcdiffct.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk' [-Wmissing-sysroot] In file included from /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcdiffct.c:20: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jinclude.h:37:10: fatal error: 'stdlib.h' file not found 37 | #include <stdlib.h> | ^~~~~~~~~~ 1 error generated. | [libjpeg-turbo 1%] Building C object CMakeFiles/jpeg12.dir/jclossls.c.o FAILED: CMakeFiles/jpeg12.dir/jclossls.c.o /usr/bin/gcc -DNEON_INTRINSICS -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -mcpu=apple-m1 -fPIC -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.09 -fPIC -DBITS_IN_JSAMPLE=12 -MD -MT CMakeFiles/jpeg12.dir/jclossls.c.o -MF CMakeFiles/jpeg12.dir/jclossls.c.o.d -o CMakeFiles/jpeg12.dir/jclossls.c.o -c /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jclossls.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk' [-Wmissing-sysroot] In file included from /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jclossls.c:18: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jinclude.h:37:10: fatal error: 'stdlib.h' file not found 37 | #include <stdlib.h> | ^~~~~~~~~~ 1 error generated. | [libjpeg-turbo 2%] Building C object CMakeFiles/jpeg12.dir/jcprepct.c.o FAILED: CMakeFiles/jpeg12.dir/jcprepct.c.o /usr/bin/gcc -DNEON_INTRINSICS -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -mcpu=apple-m1 -fPIC -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.09 -fPIC -DBITS_IN_JSAMPLE=12 -MD -MT CMakeFiles/jpeg12.dir/jcprepct.c.o -MF CMakeFiles/jpeg12.dir/jcprepct.c.o.d -o CMakeFiles/jpeg12.dir/jcprepct.c.o -c /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcprepct.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk' [-Wmissing-sysroot] In file included from /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jcprepct.c:23: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jinclude.h:37:10: fatal error: 'stdlib.h' file not found 37 | #include <stdlib.h> | ^~~~~~~~~~ 1 error generated. | [libjpeg-turbo 2%] Building C object CMakeFiles/jpeg12.dir/jccolor.c.o FAILED: CMakeFiles/jpeg12.dir/jccolor.c.o /usr/bin/gcc -DNEON_INTRINSICS -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build -I/Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source -Og -g -pipe -fno-omit-frame-pointer -ffile-prefix-map=/Users/raylam/koreader/base/= -mcpu=apple-m1 -fPIC -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.09 -fPIC -DBITS_IN_JSAMPLE=12 -MD -MT CMakeFiles/jpeg12.dir/jccolor.c.o -MF CMakeFiles/jpeg12.dir/jccolor.c.o.d -o CMakeFiles/jpeg12.dir/jccolor.c.o -c /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jccolor.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk' [-Wmissing-sysroot] In file included from /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jccolor.c:17: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/source/jinclude.h:37:10: fatal error: 'stdlib.h' file not found 37 | #include <stdlib.h> | ^~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. FAILED: /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/stamp/build cd /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build && : "" && set -- libjpeg-turbo "Building 'libjpeg-turbo'" 0 /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/stamp/build && . /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/koenv.sh && run ninja && /opt/homebrew/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/raylam/koreader/base/cmake /Users/raylam/koreader/base/thirdparty/libjpeg-turbo /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/thirdparty/libjpeg-turbo/build.d /Users/raylam/koreader/base/build/arm64-apple-darwin23.6.0-debug/cmake/CMakeFiles/d/0cf1509d416e20cb8ffdf448952dc30ba8adb945708ad97e8e715bc055972e92.d ninja: build stopped: subcommand failed. make: *** [base/Makefile:89: base-all] Error 1 Last edited by vurt; 12-03-2024 at 07:40 PM. |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Try xcode-select --install and ./kodev clean.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
|
![]() |
![]() |
![]() |
#10 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
Just use Code:
./kodev run From time to time you can use Code:
git pull origin master ./kodev fetch-thirdparty Another thing you can do is Code:
./kodev release macos |
|
![]() |
![]() |
![]() |
#11 | |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Quote:
But now that I have an app that runs, it's crashing when I try to resize the KOReader window and when I try to customize the font settings for a book I'm reading. Is there anyway to troubleshoot? [EDIT: I disabled partial rendering and that seems to have stopped the crashing for now.] Last edited by vurt; 12-04-2024 at 04:29 PM. |
|
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Oh do you encounter a similar crashing? Maybe try disabling partial render?
Trying to go full screen by pressing the maximize button also caused a crash. But if I hover over the maximize button and select the drop down option for "full screen", it works: ![]() |
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
To be more precise, there's a chance that this is an easily reproducible means to shed some light on an issue that mysteriously afflicts a few Android devices https://github.com/koreader/koreader/issues/12099
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Enthusiast
![]() Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to build the koreader on the RISC-V architecture? | kirillyatsenko | KOReader | 1 | 01-25-2024 04:09 PM |
Best koreader build version for android 4. 6 inch device? | amin021023 | KOReader | 6 | 03-20-2022 12:35 AM |
Trojan spyware in calibre mac OS build | zaster | Calibre | 9 | 06-28-2019 03:38 AM |
koreader nightly build | cramoisi | KOReader | 5 | 09-28-2017 08:58 AM |
Mac Build | pdurrant | Sigil | 1 | 08-10-2009 11:31 AM |