Package Details: horizon-eda 2.6.0-2

Git Clone URL: https://aur.archlinux.org/horizon-eda.git (read-only, click to copy)
Package Base: horizon-eda
Description: free EDA package written in C++
Upstream URL: https://horizon-eda.org
Licenses: GPL
Submitter: luk4s
Maintainer: luk4s
Last Packager: luk4s
Votes: 7
Popularity: 0.000000
First Submitted: 2019-09-01 11:27 (UTC)
Last Updated: 2024-09-14 19:08 (UTC)

Latest Comments

aperez commented on 2024-09-14 11:54 (UTC)

Applying locally the patch from this PR made it possible to build Horizon against OpenCascade 7.8

aperez commented on 2024-05-01 12:12 (UTC)

I needed to apply this patch to be able to solve a build issue related to libgit2. After applying it, the build succeeded and Horizon works :)

miffe commented on 2023-06-13 18:02 (UTC)

src/imp/3d/../imp.hpp:15:10: fatal error: zmq.hpp: No such file or directory
   15 | #include <zmq.hpp>
      |          ^~~~~~~~~
compilation terminated.

Seems like zmq.hpp has moved to the cppzmq package.

danshick commented on 2023-06-13 03:54 (UTC) (edited on 2023-06-13 03:55 (UTC) by danshick)

@ahkneipp I've shifted my attention to getting it running from horizon-git with a modified PKGBUILD and Makefile.

A PR with some documentation updates is here: https://github.com/horizon-eda/horizon-docs/pull/26

podofo-0.9 still needs special treatment in the Makefile.

diff --git a/Makefile b/Makefile
index a35b24ac..fff1095c 100644
--- a/Makefile
+++ b/Makefile
@@ -919,15 +919,16 @@ LIBS_COMMON = sqlite3
 ifneq ($(OS),Windows_NT)
        LIBS_COMMON += uuid
 endif
-LIBS_ALL = $(LIBS_COMMON) gtkmm-3.0 epoxy cairomm-pdf-1.0 librsvg-2.0 libzmq libgit2 libcurl libpng libarchive
+LIBS_ALL = $(LIBS_COMMON) gtkmm-3.0 epoxy cairomm-pdf-1.0 librsvg-2.0 libzmq libgit2 libcurl libpng libarchive libpodofo

 OPTIMIZE = -fdata-sections -ffunction-sections -O3
 DEBUGFLAGS = -g3
 WARNFLAGS = -Wall -Wshadow
 PKG_CONFIG_LIBS := $(shell $(PKG_CONFIG) --cflags $(LIBS_ALL))
+PKG_CONFIG_LDFLAGS := $(shell $(PKG_CONFIG) --libs $(LIBS_ALL))
 CXXFLAGS += $(DEBUGFLAGS) $(DEFINES) $(OPTIMIZE) $(PKG_CONFIG_LIBS) -MP -MD -pthread $(WARNFLAGS) -std=c++17
 CFLAGS = $(filter-out -Wsuggest-override, $(filter-out -std=%,$(CXXFLAGS))) -std=c99
-LDFLAGS += -lm -lpthread -lstdc++
+LDFLAGS += -lm -lpthread -lstdc++ $(PKG_CONFIG_LDFLAGS)
 GLIB_COMPILE_RESOURCES := $(shell $(PKG_CONFIG) --variable=glib_compile_resources gio-2.0)

 ifeq ($(DEBUG),1)

You'll also need to set a custom PKG_CONFIG_PATH which will include the "unlisted" .pc file from podofo-0.9.

ahkneipp commented on 2023-06-13 03:30 (UTC) (edited on 2023-06-13 03:31 (UTC) by ahkneipp)

cppzmq should be added as a build dependency for the <zmq.hpp> header, additionally there seem to be build errors from a potential update in PDFPainer?

src/export_pdf/canvas_pdf.cpp: In constructor ‘horizon::CanvasPDF::CanvasPDF(PoDoFo::PdfPainter&, PoDoFo::PdfFont&, const horizon::PDFExportSettings&)’:
src/export_pdf/canvas_pdf.cpp:18:72: error: ‘class PoDoFo::PdfFont’ has no member named ‘GetFontMetrics’; did you mean ‘GetMetrics’?
18 |     : Canvas::Canvas(), painter(p), font(f), settings(s), metrics(font.GetFontMetrics())
   |                                                                        ^~~~~~~~~~~~~~
   |                                                                        GetMetrics
src/export_pdf/canvas_pdf.cpp: In member function ‘virtual void horizon::CanvasPDF::img_line(const horizon::Coordi&, const horizon::Coordi&, uint64_t, int, bool)’:
src/export_pdf/canvas_pdf.cpp:47:13: error: ‘class PoDoFo::PdfPainter’ has no member named ‘SetStrokeWidth’
47 |     painter.SetStrokeWidth(to_pt(w));

...

luk4s commented on 2023-06-12 20:43 (UTC)

I applied the patch, version 2.5.0 will also come soon

danshick commented on 2023-06-12 06:38 (UTC)

This may need a bump to 2.4.90 now that gcc 13 is out.

https://github.com/horizon-eda/horizon/commit/0f77716239dee9a77f2fd1476e0a77323823de57

luk4s commented on 2022-01-09 18:12 (UTC)

Thanks for the notice, just fixed it.

metafex commented on 2022-01-09 18:07 (UTC)

I think it's missing python3 as a build-time dependency. without it fails at "python3 scripts/make_color_presets.py" in the Makefile.