Unable to build

105 views
Skip to first unread message

Sagar Acharya

unread,
Nov 27, 2023, 1:06:44 AM11/27/23
to Devlist
Respected devs,

I am unable to build kicad on voidlinux aarch64 on RPI3. The issue is, it fails to find and link wxPython, wxWidgets.

I found the includes at /usr/include/wx-3.2/
and
lib at /usr/lib/

Updated them under cmake/findWx{something}.cmake

Even then, an error throws up, i.e. setup.h not found.
Thanking you for the fantastic work
Sagar Acharya
https://humaaraartha.in/selfdost/selfdost.html

P.S. Is it possible to reduce dependencies of kicad?

Jon Evans

unread,
Nov 27, 2023, 7:47:14 AM11/27/23
to dev...@kicad.org
Hi,

KiCad is not supported on this platform, so I doubt anyone can provide step-by-step build instructions.
It sounds like you are getting stuck at the building wxWidgets stage?  If so, you probably will need to step through that cmake and see where it is getting hung up.

> P.S. Is it possible to reduce dependencies of kicad?

No, all of the dependencies are there for a reason.

Best,
Jon

--
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.
To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/NkENlNH--3-9%40tutanota.com.

Seth Hillbrand

unread,
Nov 27, 2023, 12:34:01 PM11/27/23
to dev...@kicad.org
Hello Sagar,

Missing config.h means that your include flags for wxWidgets are not correctly set.  KiCad attempts to find these using `wx-config --cppflags`.  You can run this command and see what the response is.  It should include something like: -I/usr/lib/aarch64-linux-gnu/wx/include/gtk3-unicode-3.2

If it does not, then, that is the issue.  You may have multiple versions of wx installed on your system and wx-config is defaulting to the incorrect version.  You can check this by running `wx-config --list`. You'll see something like this:

    Default config is gtk3-unicode-3.2

  Default config will be used for output

  Alternate matches:
    base-unicode-3.0
    gtk3-unicode-3.0

If you want to force cmake to use a different version, you can use the CMake flag -DwxWidgets_CONFIG_OPTIONS="--toolkit=XXX --version=YYY"  Here, XXX is either 'base' or 'gtk3' and YYY is either 3.0 or 3.2.

Note that KiCad requires wxWidgets 3.2 or later.

Best,
Seth

KiCad Services Corporation Logo
Seth Hillbrand
Lead Developer
+1-530-302-5483
Long Beach, CA
www.kipro-pcb.com    in...@kipro-pcb.com


Reply all
Reply to author
Forward
0 new messages