PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 Developers
 docker windows library not found
 New Topic  Reply to Topic
Author  Topic Next Topic  

rewopen
Pulcino

Austria
14 Posts

Posted - 13/05/2026 :  16:17:15  Show Profile  Reply with Quote
I want to compile. I tried the docker image in windows. If i try to
./makeall i get:
GCC Version: 14-win32. Makefile:567: *** library not found: zlib. Stop.
How can i solve the problem?
regards wolfgang

brunotl
Pterodattilo

France
1221 Posts

Posted - 15/05/2026 :  03:41:52  Show Profile  Reply with Quote
rebuild your container using updated dockerfile : https://github.com/LK8000/LK8000/blob/master/Scripts/dockerfile
Go to Top of Page

rewopen
Pulcino

Austria
14 Posts

Posted - 15/05/2026 :  13:45:18  Show Profile  Reply with Quote
I tried to compile for a Kobo and got this: Common/Source/Airspace/LKAirspace.cpp:53:10: fatal error: nlohmann/json.hpp: No such file or directory
53 | #include <nlohmann/json.hpp>
Go to Top of Page

brunotl
Pterodattilo

France
1221 Posts

Posted - 19/05/2026 :  11:59:13  Show Profile  Reply with Quote
you need to update git submodule on cloned repository :

to clone repository including submodule :
$ git clone --recurse-submodules https://github.com/LK8000/LK8000

to update already cloned repository :
$ git submodule update


Edited by - brunotl on 19/05/2026 12:06:30
Go to Top of Page

rewopen
Pulcino

Austria
14 Posts

Posted - 19/05/2026 :  20:49:20  Show Profile  Reply with Quote
I did it. Now: library not found: freetype2. I tried to install libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
but i have the newest version. I will try it in a new dockerfile.
Go to Top of Page

brunotl
Pterodattilo

France
1221 Posts

Posted - 20/05/2026 :  10:34:08  Show Profile  Reply with Quote
in dockerfile, kobo dependencies is installed in container by this line :
https://github.com/LK8000/LK8000/blob/49e6ca0444df4047db27ed899782ac2568bad07f/Scripts/dockerfile#L38

this is the script : https://github.com/LK8000/LK8000/blob/master/Scripts/kobo-build-rootfs/build-all.sh



i've juste tested build using docker from scratch and it work :

clone repository :

bruno@debian-i9:~/devel/lk8000-docker-test$ git clone --recurse-submodules https://github.com/LK8000/LK8000
Clonage dans 'LK8000'...
remote: Enumerating objects: 98080, done.
remote: Counting objects: 100% (4873/4873), done.
remote: Compressing objects: 100% (1083/1083), done.
remote: Total 98080 (delta 4125), reused 3946 (delta 3779), pack-reused 93207 (from 3)
Réception d'objets: 100% (98080/98080), 82.55 Mio | 40.39 Mio/s, fait.
Résolution des deltas: 100% (75263/75263), fait.
Sous-module 'lib/doctest' (https://github.com/doctest/doctest.git) enregistré pour le chemin 'lib/doctest'
Sous-module 'lib/fifo_map' (https://github.com/nlohmann/fifo_map.git) enregistré pour le chemin 'lib/fifo_map'
Sous-module 'lib/glm' (https://github.com/g-truc/glm.git) enregistré pour le chemin 'lib/glm'
Sous-module 'lib/json' (https://github.com/nlohmann/json.git) enregistré pour le chemin 'lib/json'
Clonage dans '/home/bruno/devel/lk8000-docker-test/LK8000/lib/doctest'...
remote: Enumerating objects: 15289, done.
remote: Counting objects: 100% (5190/5190), done.
remote: Compressing objects: 100% (852/852), done.
remote: Total 15289 (delta 4686), reused 4344 (delta 4338), pack-reused 10099 (from 2)
Réception d'objets: 100% (15289/15289), 7.59 Mio | 27.35 Mio/s, fait.
Résolution des deltas: 100% (10063/10063), fait.
Clonage dans '/home/bruno/devel/lk8000-docker-test/LK8000/lib/fifo_map'...
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (58/58), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 241 (delta 25), reused 31 (delta 9), pack-reused 183 (from 1)
Réception d'objets: 100% (241/241), 292.01 Kio | 3.60 Mio/s, fait.
Résolution des deltas: 100% (112/112), fait.
Clonage dans '/home/bruno/devel/lk8000-docker-test/LK8000/lib/glm'...
remote: Enumerating objects: 60972, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 60972 (delta 2), reused 0 (delta 0), pack-reused 60966 (from 2)
Réception d'objets: 100% (60972/60972), 72.70 Mio | 37.94 Mio/s, fait.
Résolution des deltas: 100% (46481/46481), fait.
Clonage dans '/home/bruno/devel/lk8000-docker-test/LK8000/lib/json'...
remote: Enumerating objects: 81935, done.
remote: Counting objects: 100% (217/217), done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 81935 (delta 165), reused 77 (delta 77), pack-reused 81718 (from 2)
Réception d'objets: 100% (81935/81935), 242.63 Mio | 42.63 Mio/s, fait.
Résolution des deltas: 100% (46207/46207), fait.
Chemin de sous-module 'lib/doctest' : '6804767ee637789db8a5cb281381cae98dc36906' extrait
Chemin de sous-module 'lib/fifo_map' : '6700631826d854881a946be7e7fb29cdc14f23eb' extrait
Chemin de sous-module 'lib/glm' : '8d1fd52e5ab5590e2c81768ace50c72bae28f2ed' extrait
Chemin de sous-module 'lib/json' : '55f93686c01528224f448c19128836e7df245f72' extrait

build and start docker container :

bruno@debian-i9:~/devel/lk8000-docker-test$ LK8000/Scripts/docker-run.sh
+ readlink -f LK8000/Scripts/docker-run.sh
+ dirname /home/bruno/devel/lk8000-docker-test/LK8000/Scripts/docker-run.sh
+ script_dir=/home/bruno/devel/lk8000-docker-test/LK8000/Scripts
+ docker build --rm -f /home/bruno/devel/lk8000-docker-test/LK8000/Scripts/dockerfile -t lk8000/lk8000:build /home/bruno/devel/lk8000-docker-test/LK8000/Scripts
[+] Building 236.8s (20/20) FINISHED                                                                                                                                                                                                                   docker:default
 => [internal] load build definition from dockerfile                                                                                                                                                                                                             0.0s
 => => transferring dockerfile: 1.87kB                                                                                                                                                                                                                           0.0s
 => [internal] load metadata for docker.io/library/debian:trixie-slim                                                                                                                                                                                            1.1s
 => [auth] library/debian:pull token for registry-1.docker.io                                                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                  0.0s
 => [ 1/14] FROM docker.io/library/debian:trixie-slim@sha256:b6e2a152f22a40ff69d92cb397223c906017e1391a73c952b588e51af8883bf8                                                                                                                                    1.0s
 => => resolve docker.io/library/debian:trixie-slim@sha256:b6e2a152f22a40ff69d92cb397223c906017e1391a73c952b588e51af8883bf8                                                                                                                                      0.0s
 => => sha256:ed8750007edb5cb6c6e69d930d3fe3f1af60e759f05de5362be014d498d5f25f 1.02kB / 1.02kB                                                                                                                                                                   0.0s
 => => sha256:f283d70f878433b889e4b9252110fad858e0e0887df5bac91cd2ad4ccb2b3a2a 451B / 451B                                                                                                                                                                       0.0s
 => => sha256:5b4d6ff92fc4e14e911b7753c954fac965d48c40fe1075758d284148ccace970 29.78MB / 29.78MB                                                                                                                                                                 0.5s
 => => sha256:b6e2a152f22a40ff69d92cb397223c906017e1391a73c952b588e51af8883bf8 8.97kB / 8.97kB                                                                                                                                                                   0.0s
 => => extracting sha256:5b4d6ff92fc4e14e911b7753c954fac965d48c40fe1075758d284148ccace970                                                                                                                                                                        0.4s
 => [internal] load build context                                                                                                                                                                                                                                0.0s
 => => transferring context: 15.89kB                                                                                                                                                                                                                             0.0s
 => [ 2/14] RUN apt-get update &&         apt-get install -y --no-install-recommends                 sudo wget ca-certificates bash-completion                 git-core openssh-client pkg-config build-essential                 xsltproc imagemagick fonts-d  54.3s
 => [ 3/14] WORKDIR /tmp/mingw                                                                                                                                                                                                                                   0.0s
 => [ 4/14] ADD install-mingw-w64-depends.sh /tmp/mingw/install-mingw-w64-depends.sh                                                                                                                                                                             0.0s
 => [ 5/14] ADD i686-w64-mingw32.cmake /tmp/mingw/i686-w64-mingw32.cmake                                                                                                                                                                                         0.0s
 => [ 6/14] ADD x86_64-w64-mingw32.cmake /tmp/mingw/x86_64-w64-mingw32.cmake                                                                                                                                                                                     0.0s
 => [ 7/14] RUN ./install-mingw-w64-depends.sh &&          rm -rf /tmp/mingw                                                                                                                                                                                    46.1s
 => [ 8/14] WORKDIR /tmp/kobo                                                                                                                                                                                                                                    0.0s
 => [ 9/14] RUN wget http://lk8000.it/toolchain/arm-kobo-linux-gnueabihf-13.2.0.bookworm.x86_64.tar.xz &&         tar -xJf arm-kobo-linux-gnueabihf-13.2.0.bookworm.x86_64.tar.xz &&         mv arm-kobo-linux-gnueabihf /opt/arm-kobo-linux-gnueabihf &&       13.0s
 => [10/14] COPY ./kobo-build-rootfs /tmp/kobo-build-rootfs                                                                                                                                                                                                      0.0s
 => [11/14] WORKDIR /tmp/kobo-build-rootfs                                                                                                                                                                                                                       0.0s
 => [12/14] RUN ./build-all.sh &&         rm -rf /tmp/kobo-build-rootfs                                                                                                                                                                                        112.4s
 => [13/14] RUN adduser --disabled-password --gecos '' compiler                                                                                                                                                                                                  0.4s
 => [14/14] WORKDIR /home/compiler                                                                                                                                                                                                                               0.0s
 => exporting to image                                                                                                                                                                                                                                           8.0s
 => => exporting layers                                                                                                                                                                                                                                          8.0s
 => => writing image sha256:f94352d4bc17c76caef3890dc3562ffad26518cc61067f568e594b063a0fb4e3                                                                                                                                                                     0.0s
 => => naming to docker.io/lk8000/lk8000:build                                                                                                                                                                                                                   0.0s
+ docker run --rm -i -v /home/bruno/devel/lk8000-docker-test/LK8000/Scripts/../:/home/compiler -t lk8000/lk8000:build

build for KOBO

compiler@686827e5c960:~$ make TARGET=KOBO V=0
GCC VERSION : 13.2.0
build with freetype2 = 26.1.20 Library
build with libpng = 1.6.43 Library
build with libjpeg = 3.1.3 Library
build with libcurl = 8.7.1 Library
build with zlib = 1.2.13 Library
build with zziplib = 0.13.80 Library
build with zzipmmapped = 0.13.80 Library
build with geographiclib = 2.5.1 Library
Common/Source/xcs/Screen/Memory/Canvas.cpp:304:6: warning: #warning "that wrong, does not handle multibyte char." [-Wcpp]
  304 |     #warning "that wrong, does not handle multibyte char."
      |      ^~~~~~~
   text    data     bss     dec     hex filename
3916797  364300  764216 5045313  4cfc41 LK8000-KOBO
   text    data     bss     dec     hex filename
 407417    1336  121384  530137   816d9 PowerOff
compiler@686827e5c960:~$



you can send a PM to me... i will do all i can to help you ...
Go to Top of Page

rewopen
Pulcino

Austria
14 Posts

Posted - 20/05/2026 :  22:01:54  Show Profile  Reply with Quote
Thanks for your help. I've had some partial success. The waypoint.cup files are no longer working in 7.6.0. Do I need to use cupx, or did i something wrong? My output was: STRIP PowerOff
text data bss dec hex filename
407433 1336 121384 530153 816e9 PowerOff
STRIP LK8000-KOBO
text data bss dec hex filename
3916797 364300 764216 5045313 4cfc41 LK8000-KOBO
TAR Bin/KOBO/otg/.kobo/KoboRoot.tgz
TAR Bin/KOBO/std/.kobo/KoboRoot.tgz
Zip Kobo-install.zip
Zip Kobo-install-otg.zip
---------------------------------------------------
~/LK8000/android-studio ~/LK8000

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

compiler@2c940a7d9503:~/LK8000$

My DockerImage is only 4.94 GB, the original is 5.08 GB.
Thank you.
Go to Top of Page

brunotl
Pterodattilo

France
1221 Posts

Posted - 20/05/2026 :  22:42:57  Show Profile  Reply with Quote
Dokerfile don't include android build tools, so error on JAVA_HOME is "normal".

updated docker image is smaller because it WinCE toolchains was removed.

all ".cup" file i have, work in 7.6.0, can you send your waypoint.cup to me ?

Edited by - brunotl on 20/05/2026 22:44:40
Go to Top of Page

brunotl
Pterodattilo

France
1221 Posts

Posted - 21/05/2026 :  02:08:41  Show Profile  Reply with Quote
i've received a crash report in cup parser, maybe you have same problem, fixed by commit 0d501930
Go to Top of Page

rewopen
Pulcino

Austria
14 Posts

Posted - 21/05/2026 :  20:16:42  Show Profile  Reply with Quote
I installed Debian 13 on my laptop. Unfortunately, I couldn't compile it under Linux either.
So I created another Docker container with the Dockerfile and compiled LK8000 7.6.0.

Now it worked. However, I had to modify my waypoint.cup file because my old one wasn't working.
I had to remove the 0 for rwdir.
name,code,country,lat,lon,elev,style,rwdir,rwlen,freq,desc
old: "Waidhofen Ybbs",,AT,4757.733N,01446.400E,362.0m,1,0,,,KIRCHE
new: "Waidhofen Ybbs",,AT,4757.733N,01446.400E,362.0m,1,,,,KIRCHE
Thanks for the help.
Go to Top of Page

brunotl
Pterodattilo

France
1221 Posts

Posted - 22/05/2026 :  09:51:06  Show Profile  Reply with Quote
quote:
Originally posted by rewopen

I installed Debian 13 on my laptop. Unfortunately, I couldn't compile it under Linux either.
So I created another Docker container with the Dockerfile and compiled LK8000 7.6.0.



Container is also based on Debian 13, so if you follow the dockerfile step to install dependencies, you should build all natively ...

quote:
Originally posted by rewopen
Now it worked. However, I had to modify my waypoint.cup file because my old one wasn't working.
I had to remove the 0 for rwdir.
name,code,country,lat,lon,elev,style,rwdir,rwlen,freq,desc
old: "Waidhofen Ybbs",,AT,4757.733N,01446.400E,362.0m,1,0,,,KIRCHE
new: "Waidhofen Ybbs",,AT,4757.733N,01446.400E,362.0m,1,,,,KIRCHE


looking the cup file parsing, "0" in rwdir should not be a problem ... ?

https://github.com/LK8000/LK8000/blob/45c426ad0d239e05f288fdd6d7ad260be85df62d/Common/Source/Waypoints/ParseCUP.cpp#L199


Go to Top of Page

rewopen
Pulcino

Austria
14 Posts

Posted - 13/06/2026 :  13:18:04  Show Profile  Reply with Quote
I think I've found the problem. There was an invisible character in my waypoint file. The file needs to be in UTF-8 format. I had UTF-8BOM.
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.17 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy