Package Details: kicad-git 9.0.0.rc1.r499.gf665760a8e-1

Git Clone URL: https://aur.archlinux.org/kicad-git.git (read-only, click to copy)
Package Base: kicad-git
Description: Electronic schematic and printed circuit board (PCB) design tools
Upstream URL: https://kicad.org/
Licenses: GPL-3.0-or-later
Conflicts: kicad, kicad-bzr
Provides: kicad
Submitter: Chocobo
Maintainer: nickoe
Last Packager: nickoe
Votes: 67
Popularity: 0.000000
First Submitted: 2015-10-08 16:39 (UTC)
Last Updated: 2025-01-07 22:16 (UTC)

Required by (26)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

anarki commented on 2025-01-07 10:32 (UTC) (edited on 2025-01-07 10:37 (UTC) by anarki)

Getting

collect2: error: ld returned 1 exit status
make[2]: *** [eeschema/CMakeFiles/eeschema.dir/build.make:119: eeschema/eeschema] Error 1
make[1]: *** [CMakeFiles/Makefile2:4669: eeschema/CMakeFiles/eeschema.dir/all] Error 2</code>

Adding

-DKICAD_USE_CMAKE_FINDPROTOBUF=0

seems to help. See https://gitlab.com/kicad/code/kicad/-/issues/18080

xorly commented on 2024-12-21 17:22 (UTC)

Hi, can you update PKGBUILD so it follows the template https://wiki.archlinux.org/title/CMake_package_guidelines#Template and does not call make directly? E.g. on my system, ninja is default cmake build system. Proper use of cmake also simplifies the PKGBUILD.

xiota commented on 2024-08-04 14:23 (UTC) (edited on 2024-08-04 14:24 (UTC) by xiota)

I had edited the PKGBUILD to use ld instead of gold and forgot to sync before reporting the error. Seems ld is more strict about some options. Resolved by adding following:

export CXXFLAGS+=" -fno-strict-aliasing"
export LDFLAGS+=" -Wl,--copy-dt-needed-entries"

nickoe commented on 2024-08-04 10:59 (UTC) (edited on 2024-08-04 11:00 (UTC) by nickoe)

@xiota, maybe try a clean build? makepkg -C it builds for me. I updated my system yesterday or so.

I have:

local/protobuf 27.2-1
local/protobuf-c 1.5.0-3
local/python-protobuf 27.2-1

xiota commented on 2024-08-04 04:00 (UTC)

Fails to build.

/usr/bin/ld: api/libkiapi.so.8.99.0: undefined reference to symbol '_ZN4absl12lts_2024011612log_internal17MakeCheckOpStringIPKvS4_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_T0_PKc'

Possibly related to protobuf. https://gitlab.com/kicad/code/kicad/-/issues/18080

nickoe commented on 2024-01-05 14:04 (UTC)

I have not tried mold, but I have used gold before for quite some time with kicad. Habe you tired test what difference it makes?

kamocat commented on 2024-01-05 00:26 (UTC)

https://dev-docs.kicad.org/en/build/linux/ suggests using Ninja and Mold to speed up the build process

Nestor_013 commented on 2023-10-31 11:34 (UTC) (edited on 2023-10-31 11:36 (UTC) by Nestor_013)

It seems that libgit2 is missing from dependencies.

   -- Checking for one of the modules 'libgit2'
   CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
     Could NOT find libgit2 (missing: LIBGIT2_LIBRARIES LIBGIT2_INCLUDE_DIR)
   Call Stack (most recent call first):
     /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
     cmake/Findlibgit2.cmake:36 (find_package_handle_standard_args)
     CMakeLists.txt:759 (find_package)

xorly commented on 2023-07-30 18:06 (UTC)

reported in upstream https://gitlab.com/kicad/code/kicad/-/issues/15306 There was fmt update in kicad 2 weeks ago, so that could be the change exposing issue.

nickoe commented on 2023-07-22 22:20 (UTC)

@sph, ok, I see, but I think you should report this issue upstream. https://gitlab.com/kicad/code/kicad/-/issues

sph commented on 2023-07-17 18:13 (UTC) (edited on 2023-07-17 18:14 (UTC) by sph)

diff --git a/PKGBUILD b/PKGBUILD
index 4b0f000..eed4c27 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -41,4 +41,8 @@ package() {
   cd "${srcdir}/${pkgname}"
   cd build
   make DESTDIR="${pkgdir}" install
+  cd "${pkgdir}"
+  rm usr/include/fmt/*
+  rm usr/lib/cmake/fmt/*
+  rm usr/lib/pkgconfig/fmt.pc
 }

both kicad-git and fmt provide the rm'd files

nickoe commented on 2023-07-16 21:10 (UTC)

@haawda, Could you please elaborate about more about what you mean with fmt? I do not see anything obvious.

haawda commented on 2023-07-16 18:58 (UTC)

There is obviously a new conflict to the fmt package.

rarvolt commented on 2022-08-28 22:23 (UTC) (edited on 2022-08-28 22:26 (UTC) by rarvolt)

CMake Error at thirdparty/nanodbc/CMakeLists.txt:148 (message): can not find a suitable odbc driver manager

Installing https://aur.archlinux.org/packages/nanodbc fixed this issue.

haawda commented on 2022-07-16 21:10 (UTC)

Adjustments for wxwidgets 3.2.0 needed:

+++ kicad-my/PKGBUILD   2022-07-16 23:05:02.381528329 +0200
@@ -1,13 +1,13 @@
 # Maintainer: Nick Østergaard <oe.nick at gmail dot com>

 pkgname=kicad-git
-pkgver=5.99.0.r12888.gc5e5d8e0d4
+pkgver=6.99.0.r2452.gdb4f2d9dd8
 pkgrel=1
 pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
 arch=('i686' 'x86_64')
 url="https://kicad.org/"
 license=('GPL')
-depends=('glew' 'wxgtk3' 'desktop-file-utils' 'boost-libs' 'python'
+depends=('glew' 'wxwidgets-gtk3' 'desktop-file-utils' 'boost-libs' 'python'
          'glm' 'curl' 'swig' 'python-wxpython' 'opencascade' 'ngspice>=27')
 makedepends=('cmake' 'git' 'zlib' 'mesa' 'boost')
 optdepends=('kicad-library: for footprints')
@@ -30,16 +30,8 @@
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DKICAD_USE_OCE=OFF \
-    -DKICAD_USE_OCC=ON \
-    -DBUILD_GITHUB_PLUGIN=ON \
-    -DKICAD_SCRIPTING=ON \
-    -DKICAD_SCRIPTING_MODULES=ON \
-    -DKICAD_SCRIPTING_ACTION_MENU=ON \
-    -DKICAD_SCRIPTING_PYTHON3=ON \
-    -DKICAD_SCRIPTING_WXPYTHON=ON \
-    -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 \
-    -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold \
-    -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
+    -DKICAD_USE_EGL=ON \
+    -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold

   make
 }

nickoe commented on 2021-10-23 19:50 (UTC)

@electro707, I am not awareof ny verison bump requirement from upstream, what I think you are facing is that you may have installed a wxpython version that requries wx 3.1, maybe oyu insalled wxpython 4.1?

electro707 commented on 2021-10-23 04:14 (UTC)

Looks like, as of 2021-10-23, that KiCad requires WxWidgets 3.1.5:

CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find wxWidgets: Found unsuitable version "3.0.5", but required is
  at least "3.1.5" (found
  -pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_aui-3.0;-lwx_gtk3u_adv-3.0;-lwx_gtk3u_html-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu_net-3.0;-lwx_baseu-3.0;-lwx_gtk3u_propgrid-3.0;-lwx_baseu_xml-3.0;-lwx_gtk3u_stc-3.0;-lwx_gtk3u_richtext-3.0)
Call Stack (most recent call first):
  /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  CMakeModules/FindwxWidgets.cmake:1019 (find_package_handle_standard_args)
  CMakeLists.txt:876 (find_package)

But the non-AUR wxgtk3 package is using the stable wx release of 3.0.5

nickoe commented on 2021-10-20 18:18 (UTC)

@f0x52, yes, I have now updated it

f0x52 commented on 2021-10-20 12:22 (UTC)

as per https://forum.kicad.info/t/warning-avoid-all-links-to-kicad-pcb-org-use-kicad-org/31521 the upstream url should probably be changed to kicad.org

barabas commented on 2021-07-19 20:14 (UTC)

Getting some warnings from CMake:

CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_GITHUB_PLUGIN
    KICAD_SCRIPTING
    KICAD_SCRIPTING_ACTION_MENU
    KICAD_SCRIPTING_MODULES
    KICAD_SCRIPTING_PYTHON3
    KICAD_SCRIPTING_WXPYTHON_PHOENIX

These have been removed and ON by default. See this post on the mailing list.

greyltc commented on 2021-06-04 13:58 (UTC) (edited on 2021-06-04 15:05 (UTC) by greyltc)

Hey, can you add -G Ninja to the cmake options and then change make to cmake --build . then the make install line can become DESTDIR="${pkgdir}" cmake --build . -- install

makes the build go brrr

nickoe commented on 2021-05-23 11:09 (UTC)

@haawda, thank you for testing, but I currently think the right thing to do is to get community/python-wxpython downgraded.

See https://bugs.archlinux.org/task/70908

haawda commented on 2021-05-23 01:30 (UTC)

I needed to use wxgtk3-dev from AUR instead of WXGTK3 and the fowllowing patch to build.

diff --git a/PKGBUILD b/PKGBUILD
index 0b23d76..36f51ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,6 +31,7 @@ build() {
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DKICAD_USE_OCE=OFF \
     -DKICAD_USE_OCC=ON \
+    -DKICAD_USE_EGL=ON \
     -DBUILD_GITHUB_PLUGIN=ON \
     -DKICAD_SCRIPTING=ON \
     -DKICAD_SCRIPTING_MODULES=ON \

alfrede commented on 2021-05-17 05:49 (UTC)

@Nick for the Problem that Knapik talked about, i had the same Problem with the kicad-nightly package and DX-Mon said to me that i had to downgrade the wxPython Package to Version 4.0.7.2-5. Here the Link to the Package.

https://aur.archlinux.org/pkgbase/kicad-nightly/

@kanpik, perhaps it helps you.

h2obrain commented on 2021-05-16 16:36 (UTC)

@knapik For some reason python-wxpython-4.1.1-1 reports 3.1.5 as the wxWidgets_version

Python 3.9.5 (default, May 12 2021, 17:14:51) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.wxWidgets_version
'wxWidgets 3.1.5'
>

Adding wxWidgets_version = 'wxWidgets 3.0.5' to the end of /usr/lib/python3.9/site-packages/wx/__init__.py made it (start to) build, but this is obviously not a good solution. :)

nickoe commented on 2021-04-28 19:35 (UTC)

@colejohnson66, this is fixed with an update to ngspice 34-2.

nickoe commented on 2021-04-27 20:49 (UTC)

@knapik I am not sure what you are talking about. I don't see any issues with kicad and wx, using extra/wxgtk3 3.0.5.1-2.

@colejohnson66 I think this is a packaging bug in ngspice-34. You can by pass it by disabling NGSPICE in the cmake config temporarely.

colejohnson66 commented on 2021-04-27 17:21 (UTC)

The configure script is failing with an error about ngspice:

*** NGSPICE library missing ***
Most of ngspice packages do not provide the required libngspice library.
You can either compile ngspice configured with --with-ngshared parameter
or run a script that does the job for you:
  cd ./scripting/build_tools
  chmod +x get_libngspice_so.sh
  ./get_libngspice_so.sh
  sudo ./get_libngspice_so.sh install

knapik commented on 2021-04-27 00:54 (UTC)

No longer compiles for me. The nightly builds are now dependent the latest development release of wxWidgets (3.15) and not the stable release.

Still, trying to use wxgtk3-dev and wxgtk-common-dev instead of the stable packages, I can't compile to do errors due to a bunch of missing or wrong OpenGL types? I haven't figured out how to get it to compile yet.

TheGondolindrim commented on 2021-01-22 22:59 (UTC)

It was a ownership problem -- lemon was installed but for some reason the files were 777, but the drive I was using to compile was mounted with a different ownership access.

nickoe commented on 2021-01-19 22:11 (UTC) (edited on 2021-01-19 23:02 (UTC) by nickoe)

I think there are some issues up stream that should be ironed out, but I think you can workaround this by installing lemon and retry the build.

EDIT: related https://gitlab.com/kicad/packaging/kicad-fedora-builder/-/merge_requests/52 and it may not be enough to install just lemon. Do you have the package shared-mime-info installed?

TheGondolindrim commented on 2021-01-19 22:03 (UTC)

Having issues here building, specifically at the libevel/grammar.lemon which fails at the lemon parsing. Anyone with this issue?

nickoe commented on 2021-01-11 06:42 (UTC)

Yes, this pa pagage has always been tracking master. That is common for pavkages in AUR with tje dash git suffix.

DCengineer commented on 2021-01-11 06:05 (UTC)

Was this supposed to be updated to v5.99 (nightly)? Seems like kicad-git should be the same version that is available in community/kicad.

t_thomas commented on 2020-12-19 15:51 (UTC)

@nickoe - Oh sorry my fault, I just were comparing this PKGBUILD with my own homebrew one (but way more simplistic) in which I had gathered all cmake options, but you're right after re-reading the article they are indeed already set to default:ON -- Thanks :D

the article I'm referring to https://gitlab.com/kicad/code/kicad/-/blob/master/Documentation/development/compiling.md#scripting_opt

nickoe commented on 2020-12-19 15:17 (UTC)

@t_thomas, I am not sure what exact commit you are reffering to, but they are on by default on master.

t_thomas commented on 2020-12-19 15:10 (UTC)

Hi, was there a reason the drop the following 3 build instructions from the PKGBUILD file (compared to the git suggestion on how2to install)

DKICAD_SPICE=ON DKICAD_INSTALL_DEMOS=ON DKICAD_SCRIPTING_MODULES=ON

btw. thanks a lot for again maintaining the new nightly KiCad packages

nickoe commented on 2020-11-09 19:29 (UTC)

@StefanH https://aur.archlinux.org/cgit/aur.git/commit/?h=kicad-git&id=e7e7fb586afe444028ea6cdf25ace82ecdb74c2b

StefanH commented on 2020-10-23 07:04 (UTC) (edited on 2020-10-23 07:09 (UTC) by StefanH)

Sorry for the confusion. The git describe output matches the version presented inside KiCAD and according to the source provided is how the internal version is set.

The sed expression is simply to replace the two '-' characters by something allowed in Arch versions. Most popular seems to be to do a tr '-' '.', but not all packages follow this (inkscape-git for example). I suppose my preference for a tilde to separate the build number from the semver is a bit of a Debian-ism. It's just a suggestion, no more.

nickoe commented on 2020-10-22 18:36 (UTC)

@StefanH What offical way?

Why do you want a tilde and dot?

StefanH commented on 2020-10-22 17:27 (UTC)

Hi Nick! Could you update the pkgver function to:

git describe | sed -r 's/([^-]+)-([^-]+)-([^-]+)/\1~\2.\3/'

as per the official way to get the latest version? The sed command I added to translate the dashes to something fitting the Arch version string format. Source: https://gitlab.com/kicad/code/kicad/-/issues/6114#note_434166499

nickoe commented on 2020-07-20 17:43 (UTC)

@firewalker, this is a strange error. This is not an issue for me, and I also tried to update my system.

First off it looks like there is some issue with it finding wxpython 3.0.2 instead of 4.0.7. Is your default python python2?

orson commented on 2020-05-26 08:36 (UTC)

Hi Salamandar,

In such case, should not libjpeg-turbo be added as a dependency in libfreeimage?

Salamandar commented on 2020-05-26 07:56 (UTC)

Hi, could you add the dependency libjpeg-turbo ? Without it, I get /usr/bin/ld : /usr/lib/libfreeimage.so.3 : undefined reference to « jpeg_read_icc_profile@LIBJPEG_8.0 »

moritz commented on 2020-01-20 21:30 (UTC)

as KiCad moved from launchpad to GitLab, the source should be: git+https://gitlab.com/kicad/code/kicad.git

moritz commented on 2019-12-05 10:27 (UTC) (edited on 2019-12-05 10:28 (UTC) by moritz)

Does anybody has a clue why it is not building and how to investigate this?

Scanning dependencies of target kicad
[ 62%] Building CXX object kicad/CMakeFiles/kicad.dir/dialogs/dialog_template_selector_base.cpp.o
/home/user/trizen-user/kicad-git/src/kicad-git/pcbnew/netlist_reader/kicad_netlist_reader.cpp: In member function ‘void KICAD_NETLIST_PARSER::parseNet( )’:
/home/user/trizen-user/kicad-git/src/kicad-git/pcbnew/netlist_reader/kicad_netlist_reader.cpp:244:22: error: ‘T_pinfunction’ was not declared in this s cope; did you mean ‘pin_function’?
244 | case T_pinfunction:
| ^~~~~~~~~~~~~
| pin_function
make[2]: [common/CMakeFiles/pcbcommon.dir/build.make:592: common/CMakeFiles/pcbcommon.dir/__/pcbnew/netlist_reader/kicad_netlist_reader.cpp.o] Error 1
make[2]:
Waiting for unfinished jobs....
[ 62%] Building CXX object common/CMakeFiles/pcbcommon.dir/__/pcbnew/kicad_plugin.cpp.o
[ 62%] Building CXX object kicad/CMakeFiles/kicad.dir/dialogs/dialog_template_selector.cpp.o
[ 62%] Linking CXX shared module libs3d_plugin_idf.so
[ 62%] Built target s3d_plugin_idf

[ 64%] Built target eeschema_kiface
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
Aborting..

And how to proper formate postings here?

nickoe commented on 2019-11-05 10:14 (UTC)

@balajiTn, it does not look like you have the real error there. Maybe post the complete output in a pastebin?