Recent

Author Topic: Knigo  (Read 761 times)

Guva

  • Full Member
  • ***
  • Posts: 220
  • 🌈 ZX-Spectrum !!!
Knigo
« on: June 07, 2026, 11:38:57 am »
A minimal program for reading e-books. So far, there is only one fb2 format.
Epub support is almost complete.
The program is not finished.
To display images, use ray4laz from the trunk.

https://github.com/GuvaCode/Knigo

https://youtu.be/PJQccf9-ook

Tomxe

  • Full Member
  • ***
  • Posts: 134
Re: Knigo
« Reply #1 on: June 07, 2026, 04:37:26 pm »
What is the license of that program? GNU/GPL?
If you want that to be GNU/GPL then I might have something that might interest you- a PDF viewer, in Free Pascal.

jcmontherock

  • Sr. Member
  • ****
  • Posts: 361
Re: Knigo
« Reply #2 on: June 07, 2026, 06:03:59 pm »
I try to compile Knigo and I get the following error. What I did wrong ?
Code: Pascal  [Select][+][-]
  1. Knigo.lpr(347,1) Error: Internal error 200603061
Windows 11 UTF8-64 - Lazarus 4.8-64 - FPC 3.2.2

Guva

  • Full Member
  • ***
  • Posts: 220
  • 🌈 ZX-Spectrum !!!
Re: Knigo
« Reply #3 on: June 07, 2026, 06:22:32 pm »
What is the license of that program? GNU/GPL?
If you want that to be GNU/GPL then I might have something that might interest you- a PDF viewer, in Free Pascal.

Yes, any license that you like. License = Take it and use it.

I'm not planning a pdf. FB2,fb3,epub,mobi only.

Guva

  • Full Member
  • ***
  • Posts: 220
  • 🌈 ZX-Spectrum !!!
Re: Knigo
« Reply #4 on: June 07, 2026, 06:28:50 pm »
I try to compile Knigo and I get the following error. What I did wrong ?
Code: Pascal  [Select][+][-]
  1. Knigo.lpr(347,1) Error: Internal error 200603061

I don't really understand what caused this error.
The second person is already reporting. I don't have windows 11 installed right now.
I can't check in the VM because I get an error about initializing the window.
 And this is exactly in Windows 11. Tomorrow I will install win 11 on a real machine and check it out.

The strangest thing is that everything works fine through wine
« Last Edit: June 07, 2026, 06:34:20 pm by Guva »

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: Knigo
« Reply #5 on: June 07, 2026, 07:10:46 pm »
Hello.

Maybe similar problem as https://forum.lazarus.freepascal.org/index.php/topic,73856.0.html

PTC works perfectly on wine and Windows 11 <= version 10.0.22631.3296 but with Windows 11 >= version 10.0.26200.7462, it crashes.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

kirchfritz

  • Jr. Member
  • **
  • Posts: 76
  • WIN11 LAZ 4.2 FPC 3.2.2
Re: Knigo
« Reply #6 on: June 08, 2026, 08:53:06 am »
What is the license of that program? GNU/GPL?
If you want that to be GNU/GPL then I might have something that might interest you- a PDF viewer, in Free Pascal.

@Tomxe:  I am interested in your PDF Viewer.

Tomxe

  • Full Member
  • ***
  • Posts: 134
Re: Knigo
« Reply #7 on: June 08, 2026, 03:33:38 pm »
@kirchfritz Very nice. I am finishing. I believe it should be usable in a couple of days.

Roland57

  • Hero Member
  • *****
  • Posts: 615
    • msegui.net
Re: Knigo
« Reply #8 on: June 08, 2026, 03:57:16 pm »
Hello Guva.

Thank you for sharing. Trying to build the application, I get this error:

$ LC_ALL=C lazbuild Knigo.lpi
SetPrimaryConfigPath NewValue="/home/roland/Applications/lazarus-260227/config_lazarus"
Hint: (lazbuild) Primary config path: "/home/roland/Applications/lazarus-260227/config_lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 New=x86_64-linux--gtk2 Changed: OS/CPU=True LCL=False
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 New=x86_64-linux--gtk2 Changed: OS/CPU=True LCL=False
Hint: (lazarus) Project needs building: Compile was incomplete for Project
Info: (lazarus) Execute Title="Compile Project, Target: /home/roland/Documents/pascal/users/knigo/binary/Knigo"
Info: (lazarus) Working Directory="/home/roland/Documents/pascal/users/knigo/source/"
Info: (lazarus) Executable="/home/roland/Applications/lazarus-260227/fpc/bin/x86_64-linux/fpc.sh"
Info: (lazarus) Param[0]="-MObjFPC"
Info: (lazarus) Param[1]="-Scghi"
Info: (lazarus) Param[2]="-Cg"
Info: (lazarus) Param[3]="-O1"
Info: (lazarus) Param[4]="-gw3"
Info: (lazarus) Param[5]="-gl"
Info: (lazarus) Param[6]="-l"
Info: (lazarus) Param[7]="-vewnhibq"
Info: (lazarus) Param[8]="-Fi/home/roland/Documents/pascal/users/knigo/temp/x86_64-linux"
Info: (lazarus) Param[9]="-Fl/home/roland/Documents/raylib/ray4laz/libs/x86_64-linux"
Info: (lazarus) Param[10]="-Fu/home/roland/Documents/pascal/users/knigo/source/"
Info: (lazarus) Param[11]="-Fu/home/roland/Documents/pascal/users/knigo/source/readers"
Info: (lazarus) Param[12]="-Fu/home/roland/Documents/pascal/users/knigo/source/gui"
Info: (lazarus) Param[13]="-Fu/home/roland/Documents/pascal/users/knigo/source/extra"
Info: (lazarus) Param[14]="-Fu/home/roland/Documents/raylib/ray4laz/package/lib/x86_64-linux"
Info: (lazarus) Param[15]="-Fu/home/roland/Applications/lazarus-260227/lazarus/components/lazutils/lib/x86_64-linux"
Info: (lazarus) Param[16]="-Fu/home/roland/Applications/lazarus-260227/lazarus/packager/units/x86_64-linux"
Info: (lazarus) Param[17]="-FU/home/roland/Documents/pascal/users/knigo/temp/x86_64-linux/"
Info: (lazarus) Param[18]="-FE/home/roland/Documents/pascal/users/knigo/binary/"
Info: (lazarus) Param[19]="-o/home/roland/Documents/pascal/users/knigo/binary/Knigo"
Info: (lazarus) Param[20]="Knigo.lpr"
Hint: (11030) Start of reading config file /home/roland/Applications/lazarus-260227/fpc/bin/x86_64-linux/fpc.cfg
Hint: (11031) End of reading config file /home/roland/Applications/lazarus-260227/fpc/bin/x86_64-linux/fpc.cfg
Free Pascal Compiler version 3.2.2-r0d122c49 [2026/02/27] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling Knigo.lpr
...
(9022) Compiling resource /home/roland/Documents/pascal/users/knigo/temp/x86_64-linux/Knigo.or
(9015) Linking /home/roland/Documents/pascal/users/knigo/binary/Knigo
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rcore.o): in function `gladLoadGLUserPtr':
rcore.c:(.text+0x8dd2): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rcore.o): in function `LoadAutomationEventList':
rcore.c:(.text+0x2531f): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: rcore.c:(.text+0x253ad): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rtextures.o): in function `stbi__hdr_load':
rtextures.c:(.text+0x1bdbf): undefined reference to `__isoc23_strtol'
/usr/bin/ld: rtextures.c:(.text+0x1be21): undefined reference to `__isoc23_strtol'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rtextures.o): in function `stbi__hdr_info':
rtextures.c:(.text+0x2071f): undefined reference to `__isoc23_strtol'
/usr/bin/ld: rtextures.c:(.text+0x2077b): undefined reference to `__isoc23_strtol'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rtext.o): in function `LoadBMFont':
rtext.c:(.text+0x8dbf): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: rtext.c:(.text+0x8e4c): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: rtext.c:(.text+0x8ebc): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: rtext.c:(.text+0x9476): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rglfw.o): in function `_glfwParseUriList':
rglfw.c:(.text+0x4fb8): undefined reference to `__isoc23_strtol'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rglfw.o): in function `_glfwRefreshContextAttribs':
rglfw.c:(.text+0x5cb2): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(rglfw.o): in function `parseMapping':
rglfw.c:(.text+0x8fbe): undefined reference to `__isoc23_strtoul'
/usr/bin/ld: rglfw.c:(.text+0x8fd9): undefined reference to `__isoc23_strtoul'
/usr/bin/ld: rglfw.c:(.text+0x90f4): undefined reference to `__isoc23_strtoul'
/usr/bin/ld: /home/roland/Documents/raylib/ray4laz/libs/x86_64-linux/libraylib.a(raygui.o): in function `GuiLoadStyle':
raygui.c:(.text+0x35e4): undefined reference to `__isoc23_sscanf'
/usr/bin/ld: raygui.c:(.text+0x395d): undefined reference to `__isoc23_sscanf'
/home/roland/Documents/pascal/users/knigo/source/Knigo.lpr(347,1) Error: (9013) Error while linking
/home/roland/Documents/pascal/users/knigo/source/Knigo.lpr(347,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /home/roland/Applications/lazarus-260227/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Target: /home/roland/Documents/pascal/users/knigo/binary/Knigo: stopped with exit code 1
Info: (lazarus) [TCompiler.Compile] end
Error: (lazbuild) Failed compiling of project "/home/roland/Documents/pascal/users/knigo/source/Knigo.lpi"
My projects are on Codeberg.

Guva

  • Full Member
  • ***
  • Posts: 220
  • 🌈 ZX-Spectrum !!!
Re: Knigo
« Reply #9 on: June 08, 2026, 07:17:57 pm »
Hello Guva.

Thank you for sharing. Trying to build the application, I get this error:

Please show
ldd --version 

Roland57

  • Hero Member
  • *****
  • Posts: 615
    • msegui.net
Re: Knigo
« Reply #10 on: June 08, 2026, 07:25:06 pm »
Here you are.

$ LC_ALL=C ldd --version
ldd (GNU libc) 2.36
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
My projects are on Codeberg.

Guva

  • Full Member
  • ***
  • Posts: 220
  • 🌈 ZX-Spectrum !!!
Re: Knigo
« Reply #11 on: June 08, 2026, 07:26:29 pm »
Here you are.

$ LC_ALL=C ldd --version
ldd (GNU libc) 2.36
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.



I see that there is __isoc23, which means that glibc is less than version 2.38. You need to rebuild the library locally. in the build folder/ run the script./build.sh

Guva

  • Full Member
  • ***
  • Posts: 220
  • 🌈 ZX-Spectrum !!!
Re: Knigo
« Reply #12 on: June 08, 2026, 08:22:22 pm »
Here you are.

$ LC_ALL=C ldd --version
ldd (GNU libc) 2.36
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Please check the trunk version.  I added the keys to support the old gclib. but I'm not sure if this will help.

Roland57

  • Hero Member
  • *****
  • Posts: 615
    • msegui.net
Re: Knigo
« Reply #13 on: June 08, 2026, 09:17:39 pm »
I see that there is __isoc23, which means that glibc is less than version 2.38. You need to rebuild the library locally. in the build folder/ run the script./build.sh

Build successful after running build.sh script. Well done!
My projects are on Codeberg.

CM630

  • Hero Member
  • *****
  • Posts: 1743
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Knigo
« Reply #14 on: June 09, 2026, 12:05:31 pm »
@Guva, I do not know what your final goal is, but Calibre is pervert, I would like to see an ebook tool which is not designed by the Sirius Cybernetics Corporation.
(BTW,) I have/see no reason to read a book on a PC.
Keep up!
« Last Edit: June 09, 2026, 12:07:20 pm by CM630 »
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018