← Back to team overview

kicad-developers team mailing list archive

Re: Debugging Kicad, can this be done with Qt creator?


Nice, this should be placed somewhere online for other people interested on build on Arch Linux.
It looks Arch require a bit more work to setup kicad. On debian is similar but you can use directly the packages from repository.

Also a tip note on the QT, you may would like to create two build targets: debug and release.
debug is useful for step-by-step debug but it will take ages to build (linker)
release is faster to linker and test small changes on the code..

Mario Luzeiro
From: Kicad-developers <kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx> on behalf of cedric.dewijs@xxxxxxxxxx <cedric.dewijs@xxxxxxxxxx>
Sent: 31 December 2018 12:58
To: kicad-developers@xxxxxxxxxxxxxxxxxxx
Subject: [Kicad-developers]   Debugging Kicad, can this be done with Qt creator?

Hi Mario, I've just tested the procedure from an empty harddrive.

# pacman -Suy
# mv /usr/lib/xfce4/thunar-archive-plugin/engrampa.tap /usr/lib/xfce4/thunar-archive-plugin/engrampa.tap-mv
# pacman -Suy
# reboot

# nano /etc/makepkg.conf #uncommand the line, and set the number of jobs  MAKEFLAGS="-j9"

# pacman -S base-devel \
 git \
 cmake \
 doxygen \
 gcc \
 python2 \
 pkg-config \
 swig \
 boost \
 cairo \
 glew \
 curl \
 python-wxpython \
 python2-wxpython3 \
 opencascade \
 ngspice \
 lib32-wxgtk2 \
 qtcreator \

$ wget https://archive.archlinux.org/packages/g/glm/glm-
# pacman -U glm-

$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/oce.tar.gz
$ tar -xf oce.tar.gz
$ cd oce
$ makepkg
# pacman -U oce-0.18.3-1-x86_64.pkg.tar.xz
$ git clone -b master https://git.launchpad.net/kicad
$ qtcreator

file => open file or project => /home/username/kicad/CMakeList.txt => open
configure project
set a breakpoint somewhere
projects => Build & run => Desktop => build => Build Steps => tool arguments: -j9 # number of cores + 1
bottom-left => Build-debug
Debug => start debugging => start debugging

>----Origineel Bericht----
>Van : mrluzeiro@xxxxx
>Datum : 30/12/2018 18:38
>Aan : kicad-developers@xxxxxxxxxxxxxxxxxxx, cedric.dewijs@xxxxxxxxxx
>Onderwerp : Re: [Kicad-developers]  Debugging Kicad, can this be done with Qt creator?
>Hi Cedric,
>I've heard good things about arch linux but didn't get a chance to try it yet.
>My guess is that this kind of development steps are not so documented because people are using different ways and flavors for build and debugging KiCad.
>Nevertheless, it would be good to have it documented somewhere..
>Have a good new year too!

Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Follow ups