LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   KiCad-7.x.y AND KiCad-8.0 fail to run without error. (https://www.linuxquestions.org/questions/slackware-14/kicad-7-x-y-and-kicad-8-0-fail-to-run-without-error-4175736510/)

K.H.Braun 04-28-2024 11:56 AM

KiCad-7.x.y AND KiCad-8.0 fail to run without error.
 
1 Attachment(s)
Hi Folks

I have been trying to build and install KiCad-7.0.9 and/or KiCad-8.0 from slackbuilds.org.

While I was working on KiCad-7.0.9, with a great deal of help from Luan,
all of the KiCad-7.0.9 stuff on slackbuilds disappeared.

SO

I fetched KiCad-8.0 and the entire dependency tree including nanosvg.

The attached file shows the entire build tree that I used.

Has anybody been able to actualy build, install, and run KiCad-8.0 without the following error message? If so,how did you do it?

Error message follows:
"Could not determine wxPython version. python plugins will not be available"

slack-uke 04-28-2024 04:13 PM

The links for KiCAD 6.0.11 & 7.0.11 for slackware64 15.0 are here:

http://www.infoukes.com/test-gwk/slackware64_15.0/kicad_6.0.11/

http://www.infoukes.com/test-gwk/slackware64_15.0/kicad_7.0.11/

It includes every dependency, slackbuilds, source code, and built binaries that were used to build at the particular time.

guanx 04-28-2024 04:33 PM

1 Attachment(s)
Attached is my latest slackbuild script for kicad. I've no time to update it since then for both personal reasons and difficulties communicating with the kicad people. They are basically the kind "I know it's wrong and I see the fix but I don't fix because Ubuntu works".

The fix related to this specific error reported by the OP is
Code:

SLKLDFLAGS=${SLKLDFLAGS:-}
# Crazy hack to workaround wxPython4 not finding itself according to
# <https://github.com/wxWidgets/Phoenix/blob/e13273c5d939d993abf2a2649e90b3ea0d39382c/packaging/README-bdist.txt#L38-L57>
for dir in `python3 -c "import site; print(' '.join([dir+'/wx' for dir in site.getsitepackages()]))"`; do
  test -d $dir || continue
  SLKLDFLAGS="${SLKLDFLAGS:+$SLKLDFLAGS }-Wl,-rpath,$dir"
done


arfon 04-28-2024 09:33 PM

I JUST went through this...

First off, the "Could not determine wxPython version. python plugins will not be available" error is a nothing error. You can ignore it.

As for how to get KiCAD 8 to build, I had to 'clean out' all of the wx stuff and reinstall from SBo. #1, if you're running AlienBob's wxGTK3 package, get rid of it. It interferes with the latest wxWidgets package.


After that, remove the wx stuff and reinstall from the lastest slackbuild.

Here's what's on my box that FINALLY let KiCAD 8 to build (ignoring the python-* packages)


Code:

python2-2.7.18-x86_64-8
python2-module-collection-2.7.18-x86_64-6
python2-pycairo-1.18.2-x86_64-1
python3-3.11.9-x86_64-1
python3-attrdict-2.0.1-x86_64-1_SBo
python3-build-0.10.0-x86_64-1_SBo
python3-flit_core-3.9.0-x86_64-1_SBo
python3-installer-0.7.0-x86_64-1_SBo
python3-pathlib2-2.3.6-x86_64-1_SBo
python3-pyproject-hooks-1.0.0-x86_64-1_SBo
python3-webencodings-0.5.1-x86_64-2_SBo
python3-wheel-0.40.0-x86_64-1_SBo
wxPython4-4.2.1-x86_64-2_SBo
wxWidgets-3.2.4-x86_64-1_SBo

Do a
Code:

ls /var/log/packages/ | egrep "wx|python"
...and compare to my list.

Dunc. 04-29-2024 03:46 PM

Hi, I have installed kicad 8.0.1 on both aarch64 and x86_64 both on slackware current. I saw your post and Luan's comments and followed his lead. I built nanosvg using slackbuilds though. wxWidgets will pick it up. I changed the slackbuild to get wxPython to use system version of wxWidgets. There was also a problem with ffmpeg and something which I can look up but I can't remember right now. I found a patch for that too. All good. I even got kicad docs to build but only on x86_64.

It was a clean install of slackware with no other versions of wx stuff on it.
Kind regard

Dunc.

david63025 04-29-2024 04:25 PM

Hi,
I was able to get kicad-8.0 to compile. I didn't install wxPython4 and changed one of the compile options in the Slackbuild to: -DKICAD_SCRIPTING_WXPYTHON=OFF. Mine is an Slackware64-15.0 system.

K.H.Braun 04-29-2024 07:37 PM

Hi Slak-uke and quanx

Thank you both for your help!!!

I am a wanabe pedal steel musician and have designed using KiCad-4.0.7 and built a dual channel amplifier,
the design of which, I would like to release as an open hardware design.

I will be on the road for the next 2 or 3 weeks but when i get back I will try again to get KiCad runing.

I am first going to try to again to build KiCad-8.0 using the modification to the kicad-slackbuild.
If that does not work I will fall back to KiCad-7.o.11 using the stuff that Slak-uke provided.

You folks are amazing!

-- Ken --

business_kid 05-03-2024 06:30 AM

I'm on slackware-current and last built Kicad 2012/2013? FTR, I installed Devuan on a spare slice to have all these dependencies sorted out with others having the migraines :D. But Devuan only offers version 6.0.1 :(.

Have any of you guys with successful builds put the package(s) online anywhere?

Dunc. 05-03-2024 04:15 PM

@business_kid I can do that for you, and anyone else. I have a GitHub account which is currently unused. It will be a few days hence as I am enjoying some family time right now. I will post back when it is ready.

Dunc.

business_kid 05-05-2024 06:43 AM

Quote:

Originally Posted by Dunc. (Post 6499716)
@business_kid I can do that for you, and anyone else. I have a GitHub account which is currently unused. It will be a few days hence as I am enjoying some family time right now. I will post back when it is ready.

Dunc.

That would be great.

In 2013, I built a project using a HEMT & (then tiny) 74AUC logic because the Academic year didn't allow me time to go the FPGA route. I had to waste so much time looking good, there was no time to do the project! Kicad was the only thing I could configure the stuff on. There was no simulator back then, but it was the best pcb drafting package about.

enorbet 05-06-2024 04:19 AM

I have the opposite problem since these days I only work with tube/valve era circuitry. I'm still using Kicad 5.0.9 that I simply migrated over from 14.2. I doubt there is any advantage in newer versions of Kicad for my workflow and really I'd rather be able to setup a profile that would only load valve related items and leave out all the digital and PCB stuff. I prefer turret boards and point-to-point. Yes, I'm very old :)

Dunc. 05-08-2024 04:07 PM

Phew finally managed to do the upload. Please feel free try it out here. The 3D models is missing because it is +800M and github has a file size limit of 100M. Turns out git is not the perfect fit for file uploads. It is not so great if you just want one file to download either. @enorbet I too have spent a lot of time working on thermionic devices. I haven't done any with them for a hobby in a long while.

Kind regards

Dunc.

business_kid 05-09-2024 10:25 AM

Quote:

Originally Posted by Dunc. (Post 6500564)
Phew finally managed to do the upload. Please feel free try it out here. The 3D models is missing because it is +800M and github has a file size limit of 100M. Turns out git is not the perfect fit for file uploads. It is not so great if you just want one file to download either. @enorbet I too have spent a lot of time working on thermionic devices. I haven't done any with them for a hobby in a long while.

Kind regards

Dunc.

Thanks for taking the trouble. I found a way to clone the lot, because when I grabbed them individually, they all came the same size :confused:. I presume I can grab the 3D models from the Kicad site?

BTW, the last thing I want is thermionic valve profiles. I had them in tvs, the occasional audio thing. Then I took over someone's work in RF generators, used for plastic welding & wood glue curing. Lastly, I picked up a secondhand Heathkit Signal Generator going from a couple of khz to over 110Mhz in w sinewave with switchable AM. It dated back to the early 1950s. It got put up for sale. We should have auctioned it, because it was a collector's piece. It fetched the asking price within a few hours - a guy drove over to collect it! It was like I was selling a Ming Vase!

Dunc. 05-09-2024 04:26 PM

The 3D models build just fine. I think it just a puts them in the share directory and sets permissions and packages it. It is a hefty download. The latest versions can be found here. I see 8.0.2 is out. I will look at the changelog but I will probably pass.

Dunc.

business_kid 05-10-2024 04:18 AM

Thanks for that. I ended up going round in circles last time I did this
  1. What do I want?
  2. What can I actually buy? Lead time?
  3. Ok, what can I actually use? & return to Q2, etc.

I did very well, except I discovered there were two 1202 sizes for capacitors. One was metric, one imperial. I made the PC for one, and bought the other :redface:. The capacitors were larger. I was able to solder a single strand of multicore wire, and bring it under the capacitor body and attach it there, or extend the pad with it. I forget which I did.

Next time, who knows?


All times are GMT -5. The time now is 02:41 PM.