Is there maybe a docker container available with all dependencies, so I can compile from within?

90 views
Skip to first unread message

Sven Wehrend

unread,
Apr 26, 2024, 4:23:26 PM4/26/24
to KiCad Developers
hello there, 
since the building on my debian doesent seem to work, is there maybe a docker container available with all the dependencies, so I can build from within that?

Rafał Pietrak

unread,
Apr 27, 2024, 4:45:08 AM4/27/24
to dev...@kicad.org
Sven,

When I build my v8.99 (current at that time) on debian some weeks ago, I
had to have the following debian packages installed:
libglm-dev
libmbedtls-dev
libssh2-1-dev
libhttp-parser-dev
libgit2-dev
libboost-locale1.74-dev
libboost-test1.74.0
libboost-test-dev
blt-dev
ngspice
tclspice
ngspice-dev
libngspice0-dev
libfreeimage-dev
libocct-foundation-dev
libocct-modeling-algorithms-dev
libocct-modeling-data-dev
libocct-ocaf-dev
libocct-visualization-dev
libocct-data-exchange-dev
libgpg-error-dev
libgcrypt20-dev
libsecret-1-dev
libcairo2-dev
protobuf-compiler
python3-wxgtk4.0
libwxgtk3.2-dev
doxygen
unixodbc-dev
libghc-gi-gdk-dev
libcurl4-gnutls-dev
python-dev-is-python3
libglew-dev

The build was OK.

R.
> --
> You received this message because you are subscribed to the Google
> Groups "KiCad Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to devlist+u...@kicad.org
> <mailto:devlist+u...@kicad.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/kicad.org/d/msgid/devlist/b9db64db-eece-42c2-8360-847fadbcc439n%40kicad.org <https://groups.google.com/a/kicad.org/d/msgid/devlist/b9db64db-eece-42c2-8360-847fadbcc439n%40kicad.org?utm_medium=email&utm_source=footer>.

Clemens Koller

unread,
Apr 27, 2024, 8:46:18 AM4/27/24
to dev...@kicad.org
Hi!

The Documentation should be correct there:
https://dev-docs.kicad.org/en/build/linux/
and
https://gitlab.com/kicad/packaging/kicad-ubuntu-builder/kicad-daily-package/-/blob/dailybuild/debian/control

No docker, here, too.

Regards,

Clemens

On 26/04/2024 22.23, 'Sven Wehrend' via KiCad Developers wrote:
> hello there,
> since the building on my debian doesent seem to work, is there maybe a docker container available with all the dependencies, so I can build from within that?
>

Steve Bollinger

unread,
Apr 27, 2024, 1:06:38 PM4/27/24
to KiCad Developers, Clemens Koller
I set up a Debian 12.5 two weeks ago and I took some notes.

After install you'll have to make it possible for yourself to sudo. In terminal use these commands:

su (<enter root password when prompted>)
sudo usermode -aG sudo <your user id here>

then press control-D at the prompt to exit the root shell. Close up  terminal and restart.
The sudo should not be necessary on the second line, but I typed it so I included it.

Now after restarting:

sudo apt dist-upgrade
sudo apt install git cmake mold ninja-build

now go to a directory where you want your sources and clone the kicad repo there.

Now install dependencies (these are from the list, this is the list translated to commands):

sudo apt install debhelper doxygen libbz2-dev libcairo2-dev libglu1-mesa-dev

sudo apt install libgl1-mesa-dev libglew-dev libx11-dev libwxgtk3.2-dev

sudo apt install mesa-common-dev pkg-config libssl-dev build-essential cmake-curses-gui debhelper grep

sudo apt install python3-dev swig dblatex po4a asciidoc

sudo apt install python3-wxgtk4.0 libgit2-dev libsecret-1-dev

sudo apt install source-highlight libboost-all-dev libglm-dev libcurl4-openssl-dev

sudo apt install libgtk-3-dev libngspice0-dev ngspice-dev

sudo apt install libocct-modeling-algorithms-dev libocct-modeling-data-dev libocct-data-exchange-dev libocct-visualization-dev libocct-foundation-dev libocct-ocaf-dev

sudo apt install unixodbc-dev libnng-dev libprotobuf-dev protobuf-compiler zlib1g-dev shared-mime-info

sudo apt install python3-pytest python3-cairosvg python3-numpy


finally, you need to have the right items in the path when linking. I never found the right way to do it permanently. So I just enter this command into each terminal at least once before I build:

export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib


I guess I could put that in my .profile file or something but I never did.

Anyway, that's it. Now you should be able to build using ninja with the steps in the instructions.

You need a 64-bit system I think or the linker will run out of memory. And you need a fair bit of swap space. By a fair bit, I mean more than my "toy" install I tried to make had. The default install of Debian seems to have enough when I install it.

The instructions say to use Debian because Ubuntu will make the app mess up. I think this is because of Wayland. Well, both of them use Wayland now so I think you can just use Ubuntu if you want. Someone else suggested Mint. I dunno, the instructions above are for Debian 12.5.

Good luck.

Subaru Arai

unread,
Apr 29, 2024, 8:39:15 PM4/29/24
to KiCad Developers, mail4...@gmail.com, Clemens Koller
Looking at the gitlab CI file:
Leads you to the "dockerfiles" folder:
And the configs for the CI:

Hope this helps.

2024年4月28日日曜日 2:06:38 UTC+9 mail4...@gmail.com:
Reply all
Reply to author
Forward
0 new messages