Using Github libraries offline

Thanks for answer.

Yes, as you can see in image attached

on the left I see all libraries but on the right it jump from Battery_Holders to Connectors…
I checked in /usr/share/kicad/modules/Capacitors_THT.pretty/ folder and here I see 357 files.
Then it seems that all libraries have been copied in “module” folder including file contained, but not all of them are “usable”.

Are filters the three icons on the right? If I connect my pc to internet then all footprints are available then I think filters are correctly set.

The filters are the 3 icons in the top toolbar. (The 3 rightmost)
Select the one with the L in it to filter by selected library.
And the one with the # to filter by the number of pins.

The first one filters by the footprint filters added to the symbol.

Review your fp-lib-table, the list of libraries.

Maybe your Capacitors_THT library is the one on github and not the one on your hard disk.

I would remove all github libraries and see whether Capacitors_THT is still on the left column. If not, add it from your disk /usr/share/kicad/modules/Capacitors_THT.pretty

[quote=“Rene_Poschl, post:22, topic:1200”] The filters are the 3 icons in the top toolbar. (The 3 rightmost)
[/quote]OK. Mine are all unselected.

[quote=“pedro, post:23, topic:1200”] Maybe your Capacitors_THT library is the one on github and not the one on your hard disk. [/quote]In Cvpcb -> Preferences -> Footprint libraries I see

As you see no capacitor lib in hard disk. More: I have 84 libraries in Github and only 37 on my pc (from 84 to 110). How to add in fp-lib missing (47) libraries?

You can download all the github footprints to your disk. Then save all the folders.pretty wherever you want: a local folder in /home or /usr/share/kicad/modules/

I use a folder in /home since any update of the application will override /usr/share/kicad/modules/

You have a mix of github and local entries, that is not a good idea. You need to delete all the KGITHUB entries and rerun the download.

Note to mods: this thread has two copies of the “offline FAQ”, the first is superseded but I can’t edit it.

1 Like

[quote=“pedro, post:25, topic:1200”] You can download all the github footprints to your disk. [/quote]I’ve several pcs connected to internet via proxy then KiCad can’t download. I copy libraries to /usr/share/kicad/modules/

.[quote=“pedro, post:25, topic:1200”]
I use a folder in /home since any update of the application will override /usr/share/kicad/modules/
[/quote]I can’t because libraries must be available for several user.

[quote=“bobc, post:26, topic:1200”]
You have a mix of github and local entries, that is not a good idea. You need to delete all the KGITHUB entries and rerun the download.
[/quote]Tomorrow I’ll try to delete all entries and append all libraries again.

There are still other places available outside the /usr/share/… folder structure.
I normally have a “share” folder in /home/ for exactly such a purpose. (/home is on a different physical disc in my setup. Or at least a different partition. This way i do not need to setup this again if i upgrade my linux version.)

1 Like

[quote=“Rene_Poschl, post:28, topic:1200”]
I normally have a “share” folder in /home/ for exactly such a purpose.
[/quote]I did the same for VirtualBox VM, but now I prefer to use standard settings.

Anyway deleting Github entries and append again seems solving the problem. Now I have all libraries available.
But I can’t see any 3D, is it possible to see 3d offline?

Certainly! I have all my libraries (symbols, footprints and 3D) on my hard disk. Both standard libraies and my own ones.
The only thing you have to do is setting a new path for KISYS3DMOD.

Consider the github libraries as libraries on an external drive. With one difference: github libraries can be modified by other people at any time.

For 3d files (and symbols) there is no option for online libs. They should be included in your installer. For some linux distributions the library is a separate package that you need to install.
In the windows installer there is an option to not install libs.

But you can always manually download the 3d libs. Either directly from github or via the 3d shapes downloader found in pcb_new->preferences. (This 3d shapes downloader already sets your environment variables depending on where you tell it to store the files.)

In my pcb I see 3D view (Alt + 3) only for 8 pin DIP packages. No resistor nor capacitor.

Well do you have the correct 3d files in [kicad system directory]/modules/packages3d?
(or more precisely wherever KISYS3DMOD points to.)

To find this out check your footprints that you do not see and look what path is set in the 3d settings. (And then look with a file browser if these files exist.)

If you have online footprint libs, you might need to download the current master of the 3d model repo. (found as part of the kicad-library repo. Or if you need models that are guaranteed to have a step file, then you can also take the packages3d repo. The later has fewer models because not every model has been transferred over to the new repo.)

You can also use the 3d shapes downloader found under preferences in the footprint editor or in pcb_new.