Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2024, 05:26 PM   #1
vurt
Enthusiast
vurt began at the beginning.
 
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
I've googled the "cassert" error, one of the suggestions is to "reset the path" with this command:

Code:
sudo xcode-select --reset
Did that, tried to build again, error:

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
vurt is offline   Reply With Quote
Old 12-02-2024, 12:09 PM   #2
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
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.
Frenzie is offline   Reply With Quote
Advert
Old 12-02-2024, 05:02 PM   #3
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by Frenzie View Post
export MACOSX_DEPLOYMENT_TARGET=10.04 (or something much higher, like your current macOS version) is extremely important on macOS.
Unfortunately I've done that too:

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
vurt is offline   Reply With Quote
Old 12-02-2024, 06:57 PM   #4
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
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.
pazos is offline   Reply With Quote
Old 12-03-2024, 06:37 PM   #5
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by pazos View Post
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.
Hi, thanks for the tip. I've followed online instructions in updating xcode previously.

Code:
raylam@vurtPro ~ % xcode-select --version
xcode-select version 2408.
Following your suggestion, I found this: https://github.com/koreader/koreader...lows/build.yml

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'
Is that the version number? I have no ides what I'm actually doing, just googling.

Last edited by vurt; 12-03-2024 at 06:40 PM.
vurt is offline   Reply With Quote
Advert
Old 12-03-2024, 06:47 PM   #6
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
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
xcodebuild -version shows the version, xcode-select -p shows the path, and sudo xcode-select -s is to set a different one.
Frenzie is offline   Reply With Quote
Old 12-03-2024, 07:26 PM   #7
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by Frenzie View Post
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
xcodebuild -version shows the version, xcode-select -p shows the path, and sudo xcode-select -s is to set a different one.
Thank you so much for writing it out—I now see that I didn't even have the Xcode.app.

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.
vurt is offline   Reply With Quote
Old 12-04-2024, 12:20 PM   #8
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Try xcode-select --install and ./kodev clean.
Frenzie is offline   Reply With Quote
Old 12-04-2024, 01:01 PM   #9
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by Frenzie View Post
Try xcode-select --install and ./kodev clean.
Thank you so much, that worked! I have KOReader running. I'll set it up and hope it syncs with KOReader on my other devices.

How do I update this in future? Do I use the './kodev/build' command?
vurt is offline   Reply With Quote
Old 12-04-2024, 01:26 PM   #10
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by vurt View Post
Thank you so much, that worked! I have KOReader running. I'll set it up and hope it syncs with KOReader on my other devices.

How do I update this in future? Do I use the './kodev/build' command?
It shouldn't be needed.

Just use
Code:
./kodev run
to run the program.

From time to time you can use
Code:
git pull origin master
./kodev fetch-thirdparty
to fetch updates. Then issuing the run command again should build whatever is changed.


Another thing you can do is
Code:
./kodev release macos
to generate a mac application bundle you can drag to your Applications folder.
pazos is offline   Reply With Quote
Old 12-04-2024, 03:54 PM   #11
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by pazos View Post

Another thing you can do is
Code:
./kodev release macos
to generate a mac application bundle you can drag to your Applications folder.
That's perfect!

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.
vurt is offline   Reply With Quote
Old 12-04-2024, 04:45 PM   #12
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,751
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
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.
That's awesome, thanks! This may potentially be extremely elucidating, and I can confirm on regular x86_64 Linux.
Frenzie is offline   Reply With Quote
Old 12-04-2024, 05:00 PM   #13
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by Frenzie View Post
I can confirm on regular x86_64 Linux.
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:

vurt is offline   Reply With Quote
Old 12-04-2024, 05:21 PM   #14
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
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:
Oh do you encounter a similar crashing? Maybe try disabling partial render?
Yes, disabling it avoids the problem entirely.
Frenzie is offline   Reply With Quote
Old 12-04-2024, 05:46 PM   #15
vurt
Enthusiast
vurt began at the beginning.
 
Posts: 38
Karma: 28
Join Date: Apr 2016
Device: KV
Quote:
Originally Posted by Frenzie View Post
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


Yes, disabling it avoids the problem entirely.
Got it, thanks so much for your help and guidance, I'm amazed the app is finally working.
vurt is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:14 PM.


MobileRead.com is a privately owned, operated and funded community.