FreeCAD and KiCAD on Ubuntu 20.04

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
smithda9
Posts: 5
Joined: Fri Jul 16, 2021 6:31 pm

FreeCAD and KiCAD on Ubuntu 20.04

Post by smithda9 »

When I install FreeCAD 0.19 my KiCAD installation is removed. T reinstall KiCAD, FreeCAD is removed. I want to use both on the same machine. Anyone else having such a problem? If so did you find a fix?
Dana
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by PrzemoF »

Welcome to the forum!

Please update the topic with details otherwise it will be deleted as currently it doesn't give enough info to help you.
Where do you get the software and how do you install it?
smithda9
Posts: 5
Joined: Fri Jul 16, 2021 6:31 pm

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by smithda9 »

sudo apt-get install freecad

sudo aptitude install kicad.

Load one it deletes the other.
user1234
Veteran
Posts: 3511
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by user1234 »

I have no Ubuntu, but this seems some dependencies issues.

But you can download FreeCAD here https://github.com/FreeCAD/FreeCAD/releases (go to assets) and download an appimage. So you do not need the dependencies, just the appimage.

Greetings
user1234
smithda9
Posts: 5
Joined: Fri Jul 16, 2021 6:31 pm

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by smithda9 »

aptitude was required because of held packages. Applied fix broken packages and that failed. Used aptitude and KiCAD was able to load but FreeCAD was now gone.

The result of sudo apt install kicad is:

The following packages have unmet dependencies:
kicad : Depends: libocct-data-exchange-7.3 but it is not going to be installed
Depends: libocct-foundation-7.3 but it is not going to be installed
Depends: libocct-modeling-algorithms-7.3 but it is not going to be installed
Depends: libocct-modeling-data-7.3 but it is not going to be installed
Depends: libocct-ocaf-7.3 but it is not going to be installed

Using aptitude works but again freecad is no longer installed.
smithda9
Posts: 5
Joined: Fri Jul 16, 2021 6:31 pm

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by smithda9 »

I will try the api image suggested by user1234. I'll let the forum know of the result
user1234
Veteran
Posts: 3511
Joined: Mon Jul 11, 2016 5:08 pm

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by user1234 »

On Ubuntu 20.04 there is no FreeCAD 0.19 only 0.18. But Ubuntu 21.04 have 0.19. But there are the needed dependencies OCCT 7.5.1.

Greetings
user1234
smithda9
Posts: 5
Joined: Fri Jul 16, 2021 6:31 pm

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by smithda9 »

Reloaded KiCAD and as expected FreeCAD disappeared.

Downloaded the FreeCAD appimage.
Ran the image from the Downloads directory - seems to work fine.
Was able to edit my applications directory to point to the appimage. Also works well.
Checked the Electronics directory of my applications menu and KiCAD is still there.
Not the fix I envisioned but it works. Thank you.
Dana
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by PrzemoF »

OP, can you post the details? To my experience is never like that that apt install deletes something. There has to be a warning/info about some conflicts and a question if you want to delete it. Why you use apt-get for one and aptitude for the other? Did you run apt-get update? What happens if you try to install them in one go:

Code: Select all

sudo apt-get install freecad kicad
P.S. I uses ubuntu occasionally, so correct me if I'm wrong.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: FreeCAD and KiCAD on Ubuntu 20.04

Post by openBrain »

I guess you installed FreeCAD from stable PPA thus this creates dependency issues with libocct.
If you want to use FreeCAD 0.19, you either have to use FreeCAD AppImage or Kicad FlatPak.
Post Reply