Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2022, 12:46 AM   #1
grozin
Junior Member
grozin began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2022
Device: Linux desktop
Compiling from source in Linux

I'm trying to compile KOReader on Gentoo Linux following https://github.com/koreader/koreader...oc/Building.md
```
grozin@bilbo ~/koreader $ ./kodev build
************ CMAKE_MAKE_PROGRAM: "/usr/bin/ninja" **********
make -C base
make[1]: вход в каталог «/home/grozin/koreader/base»
************ CMAKE_MAKE_PROGRAM: "/usr/bin/ninja" **********
************ Building for MACHINE: "x86_64-pc-linux-gnu-debug" **********
************ PATH: "/home/grozin/bin:/home/grozin/reduce-4972/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/games/bin" **********
************ CHOST: "" **********
install -d build/x86_64-pc-linux-gnu-debug/libs
install -d thirdparty/luajit/build/x86_64-pc-linux-gnu-debug
cd thirdparty/luajit/build/x86_64-pc-linux-gnu-debug && \
cmake -G Ninja -DCC="gcc" \
-DXCOMPILE:BOOL=off \
-DBASE_CFLAGS="-Og -g -pipe -fno-omit-frame-pointer" -DHOST_CFLAGS="-march=native -Og -g -pipe -fno-omit-frame-pointer " \
-DLDFLAGS="-Wl,-O1 -Wl,--as-needed -static-libstdc++" \
\
\
-DTARGET_SONAME=libluajit.so \
-DTARGET_CFLAGS="-Og -g -pipe -fno-omit-frame-pointer -march=native -fPIC -DLUAJIT_SECURITY_STRHASH=0 -DLUAJIT_SECURITY_STRID=0" \
-DCROSS="-" \
/home/grozin/koreader/base/thirdparty/luajit && \
/usr/bin/ninja
-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.35.1")
CMake Error: File /usr/share/cmake/Modules/RepositoryInfo.txt.in does not exist.
CMake Error at /home/grozin/koreader/base/thirdparty/cmake_modules/koreader_thirdparty_git.cmake:179 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:74 (ko_write_gitclone_script)


-- Configuring incomplete, errors occurred!
See also "/home/grozin/koreader/base/thirdparty/luajit/build/x86_64-pc-linux-gnu-debug/CMakeFiles/CMakeOutput.log".
make[1]: *** [Makefile.third:234: build/x86_64-pc-linux-gnu-debug/luajit] Ошибка 1
make[1]: выход из каталога «/home/grozin/koreader/base»
make: *** [Makefile:128: base/build/x86_64-pc-linux-gnu-debug/luajit] Ошибка 2
Failed to build emulator! Try run with -v for more information.
```
Naturally, there is no RepositoryInfo.txt.in in /usr/share/cmake/Modules/
Any ideas how to proceed?
I'd like to write an ebuild for KOReader for Gentoo (I currently maintain fbreader, coolreader, foliate, simple-fb2-reader in Gentoo). But first I need to build it on my computer.
grozin is offline   Reply With Quote
Old 04-08-2022, 10:31 AM   #2
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
You need to fetch a recent version from git. One that includes https://github.com/koreader/koreader...b74c7961fa71e2 (merged yesterday).

Then (and with the rest of build prerrequisites) you should be able to build the emulator on your device.

Once you're able to build the emulator have a look at how the debian target is built. You can repurpose 99% of it to build a generic linux target.

Packaging an emulator for whatever distro is not a good idea as the emulator exposes some features not available in different platforms and lacks proper info for some stuff, like config paths.
pazos is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling the Linux Kernel for the Kindle yifanlu Kindle Developer's Corner 82 12-12-2016 09:35 PM
Linux upgrade and source code chutz Kobo Reader 12 07-25-2010 12:22 AM
PRS-600 Where can I find the Linux source code? Xaphiosis Sony Reader 8 04-17-2010 11:13 AM
Regarding Calibre source code compiling shivas Introduce Yourself 4 12-23-2009 09:52 AM
calibre 0.4.136 not compiling on linux thebadtouch Calibre 2 02-10-2009 07:08 PM


All times are GMT -4. The time now is 02:06 PM.


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