Package Details: librepcb 1.3.0-2

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: 22
Popularity: 0.71
First Submitted: 2018-10-23 07:35 (UTC)
Last Updated: 2025-04-25 21:09 (UTC)

Latest Comments

1 2 3 4 Next › Last »

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

dbrgn commented on 2023-09-30 06:57 (UTC)

@wooptoo the tests need an X session. You can comment or skip the check() step, then installation should work.

wooptoo commented on 2023-09-29 10:37 (UTC)

Getting this error when building as a different user from the one logged-in (with an active X11 session): https://pastebin.com/VRVe7XBZ

dbrgn commented on 2023-09-25 08:18 (UTC)

@mikeshultz: Thanks, that's probably a runtime dependency, and was thus not caught by namcap. PKGBUILD is updated!