Package Details: librepcb 2.0.1-1

Git Clone URL: https://aur.archlinux.org/librepcb.git (read-only, click to copy)
Package Base: librepcb
Description: A free EDA software to develop printed circuit boards
Upstream URL: https://librepcb.org/
Licenses: GPL-3.0-or-later
Submitter: dbrgn
Maintainer: dbrgn (rnestler)
Last Packager: dbrgn
Votes: 24
Popularity: 0.89
First Submitted: 2018-10-23 07:35 (UTC)
Last Updated: 2026-02-22 17:32 (UTC)

Latest Comments

1 2 3 4 Next › Last »

dbrgn commented on 2026-02-22 17:32 (UTC)

okhsunrog: Thanks, new version published!

okhsunrog commented on 2026-02-22 16:07 (UTC)

Build fails on Arch Linux due to LTO (enabled by default in makepkg)

The build fails with 697 errors from qttypes proc-macro:

-- rust-cpp fatal error -- Struct metadata not present in target library file.

This is not a Qt 6.10 issue. The root cause is -flto=auto from CXXFLAGS (default in /etc/makepkg.conf). The cpp crate embeds metadata as raw bytes in .data section, but with LTO the compiler emits GIMPLE IR instead of native code, leaving .data empty. The proc-macro can't find the metadata and panics.

Fix: add options=(!lto) to the PKGBUILD.

I've also submitted a proper fix upstream to cpp_build: https://github.com/mystor/rust-cpp/pull/116

domker commented on 2026-02-08 18:44 (UTC)

Build fail at: error: proc-macro derive panicked --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/qttypes-0.2.12/src/qtcore/qbytearray.rs:12:1

Full build LOG: https://0x0.st/PTuR.log

Everything is up to date. Standard makepkg.conf, I tried various workarounds with AI analysis, but nothing helped. It was always throwing qttypes errors and interrupting the build. I have Librepcb 1.3.0, which built correctly much earlier, and 2.0.0-1 has problems.

dbrgn commented on 2025-04-25 21:10 (UTC)

@sawntoe: Thanks! I pushed the fix, CMake seems to run now, but I didn't have time to test whether the application actually works after compiling. If you notice any issues, please let me know!

sawntoe commented on 2025-04-25 11:05 (UTC) (edited on 2025-04-25 11:10 (UTC) by sawntoe)

When building, I get the error

CMake Error at libs/type_safe/CMakeLists.txt:5 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

As mentioned in https://github.com/LibrePCB/LibrePCB/pull/1506 the fix has only been applied after the 1.3.0 release, maybe would be ideal to add and apply a downstream patch?

Edit: Here's a diff to fix the issue, I just added the flag to force compilation.

diff --git a/PKGBUILD b/PKGBUILD
index 63bae3d..0ca8de8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -70,6 +70,7 @@ build() {
     -DUNBUNDLE_MUPARSER=1 \
     -DUNBUNDLE_POLYCLIPPING=1 \
     -DUNBUNDLE_GTEST=1 \
+    -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
     -Wno-dev
   cmake --build build
 }

eaz commented on 2024-04-08 10:15 (UTC)

@dbrgn thanks for the quick update! It does build with Qt6.

dbrgn commented on 2024-04-08 08:36 (UTC)

@eaz thanks, I originally planned to add that variable, but then forgot. On my system, Qt6 is being used/preferred, but it's better to set the variable explicitly. Can you test whether version 1.1.0-2 builds with Qt6?

eaz commented on 2024-04-08 08:31 (UTC) (edited on 2024-04-08 08:31 (UTC) by eaz)

I have had some problems building the new version (1.1.0). It seems that CMake prefers Qt5 even if Qt6 is installed and then selects only the C++11 compiler. I was able to get it to compile by adding an environment variable

cmake -DQT_MAJOR_VERSION=6 ...

dbrgn commented on 2023-10-08 09:36 (UTC) (edited on 2023-10-08 09:37 (UTC) by dbrgn)

@Technetium1: That is only a warning and can be ignored for non-git builds: https://github.com/LibrePCB/LibrePCB/blob/b4a8640404eb07c83464713129561a7914fdf0e3/libs/librepcb/core/CMakeLists.txt#L26-L41 Git is not a build dependency.

Technetium1 commented on 2023-10-08 01:43 (UTC)

Please add git to makedepends: Git not found, cannot set version info