Hi Ladislav

On 6.02.2025 10:42, Ladislav Laska wrote:
Hi Rafal,

I don't think this is a change you're supposed to do in CMakeLists.
Since it's an option, I think it should be possible to invoke cmake
with:

   -DKICAD_USE_CMAKE_FINDPROTOBUF=ON

Does that not work for you?

It does work, thank you.

Still, I'd expect such errors shouldn't pop up within "current stable" distribution (whatever the distribution). So, I've let you know about the issue.

[--------------]
Do you have a reference ticket that discusses the bug? To me, it seems
more like the plugin wasn't updated to the new versions of KiCAD, and I
know there were some significant scripting changes.

https://github.com/MitjaNemec/ReplicateLayout/issues/70

Additionally, I've received the following info by mail:
----------------------------
The plugin might or might not work with 8.99.

Is there anything I could do to help bring up this plugin to v8.99 compatibility?
    you might not need to do anything.

As I don't support the compatibility with 8.99 the plugin is marked so that PCM will not install it. So your only issue is how to install the plugin, so that you can check if it works. The easiest way would be to copy the plugin contents into the folder where KiCad can find it (on MSW that would be in subfolder within "%APPDATA%\kicad\8.99\scripting\plugins")

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
-------------------------------------

The plugin is still marked as "incompatible". I've "forced" it's download and manually "unmarked" that flag (to get the error in question). So, some issues remain, and I really don't know where the problem is: KiCAD or the plugin.

-R


Cheers,
Ladislav

On Thu, Feb 06, 2025 at 10:33:19AM +0100, Rafał Pietrak wrote:
I sincerely apologize for abusing this list, but since gitlab decline my
registration I pretty much have no other option to notify you.

1. I've recently pull kicad sources and they want compile on my Debian
stable (12.9). The following patch solves the problem, but I'm pretty sure
it's not the correct action to take (earlier there was a section acting on
KICAD_USE_CMAKE_FINDPROTOBUF depending on target being linux or not ...
which might be more appropriate, but I haven't tested it):
----------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb2130e910..05d29fbb73 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -167,7 +167,7 @@ cmake_dependent_option(
KICAD_APPLE_MAKE_RELOCATEABLE_BUNDLE

  # Old versions of CMake and/or protobuf can require the FindProtobuf.cmake,
  # but modern platforms require this to be off
-option( KICAD_USE_CMAKE_FINDPROTOBUF "Use FindProtobuf provided by CMake"
OFF )
+option( KICAD_USE_CMAKE_FINDPROTOBUF "Use FindProtobuf provided by CMake"
ON  )
  mark_as_advanced( KICAD_USE_CMAKE_FINDPROTOBUF )

  ####################################
--------------------------------
With this patch compiling on Debian 12.9 is correct.

2. The ReplicateLayout I used some time ago with KiCAD version 6.0 (as
provided by Debian stable package) worked perfectly. It made KiCAD "a better
place". Since then I've tried the KiCAD locally compiled as pulled from
gitlab, but the ReplicateLayout didn't work with any of them (v7, v8, now
v9). I've asked the author on github for a fix, but the explanation was,
that it's the KiCAD bug. That's why I just waited for "the fix". But
currently we have v9rc2 and there is no "fix" to make that plugin work. Can
somebody shred some light on what's happening here? (The attachment is an
error thrown by the plugin, when forced to run on v9rc2). Is this really a
"kicad fix" or just ReplicationLayout author "preference" to some other
specifics of the implementaion? What and how one should do in the plugin ...
instead of the iteration so upsetting the ReplicateLayout plugin? Like what
instead of "board.GetEnabledLayers().Users()"?

Best regards to you all

-R

--
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 [email protected].
To view this discussion visit 
https://groups.google.com/a/kicad.org/d/msgid/devlist/35361a3d-60af-4f47-a4f9-6b2e46d9acfc%40electric-sheep.eu.




--
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 [email protected].
To view this discussion visit 
https://groups.google.com/a/kicad.org/d/msgid/devlist/6591c034-f319-4759-8994-89aea3cd8306%40electric-sheep.eu.

Reply via email to