Add default libraries all at once - SOLVED

Thanks for your effort though! Maybe my time will help someone on a Mac get back on track

It did not work for me because Kicad never made the sym-lib-table files on install.

Those files aren’t created in your settings folder on install. They are created after the first time you run KiCad with them not existing. If they don’t exist you should get a window pop up the first time your run KiCad (or maybe the first time you try to access the symbol or footprint libraries, I don’t remember which). If the first option (use the default library table) is greyed out then KiCad can’t find the default libraries where it expects to find them. That is a separate issue to resolve.

Sidebar: If you look on your HDD where the default libraries are, there should be the default table files. These files are what KiCad will copy over to your settings if you choose (and are able to choose) the first option in the pop up window. AFAIK, the installer (and uninstaller) doesn’t touch your settings folder.

Kicad is not seeing them. The first option is grayed out. Hell, Kicad should know where it put them. Also it is not calling them default table files. This whole library thing is super frustrating, pain in the ass.
Here they are in the "application support library " it doesn’t see them.

You may need to verify that the KiCad paths are correct. This is a setting that I didn’t think to kill in my surgical “just delete these files” method that does get vaporized if you simply nuke the whole settings folder. Here is my KiCad paths configuration, note I have several specifically for my personal libraries. (I wish KiCad had place holders for personal libraries in the default settings to help encourage everyone to use the same name for user editable library locations. But with the new schematic format not relying on external libraries, this may become a moot point…)


I have the three paths you need to verify highlighted in the screenshot. Find the 3 paths that have the same name and make sure the full path matches where the libraries are on your system. Hopefully once this is done the automated “I need library tables” requestors will not have the first option greyed out. If this doesn’t fix that issue, I’m out of ideas.

Just a Windows user trying to help a MAC user here. :wink:

EDIT: Technically, you don’t need to verify the KISYS3DMOD path, there isn’t any library table for the 3D files. But if it isn’t correct then you won’t see any models in the 3D viewer. But with the 3D model folder being reviewed, you may as well also double check the templates folder points to the correct path on your system: KICAD_TEMPLATE_DIR

Ok here is my path screen shot;

So do I to know need to see, for example where “Kicad_symbol_ Dir” is actually located? By what appears Kicad thinks it should be in “Library / application support/kicad /library” correct?

Well, technically it would be /Library/Application Support/kicad/library because spaces and capitalization matters. (Well, I’m assuming capitalization matters since OSX is based on a Unix variant (FreeBSD?) and Unix is a case sensitive operating system.) That is the full path that KiCad thinks the default libraries are in. If that isn’t correct on your system you need to change path string to match reality. Looking at your finder screenshot (did it really need to be that big?) it does look like that path is correct.

Maybe there is a MAQ quirk that I’m unaware of, not being a MAC user… (Last time I touched OSX was back in the Tiger and Leopard days. No clue which version numbers as I’ve never been able to grock how the release code names related to version numbers.)

Thanks, will look to see if where they actually are located and see if they match the path shown, correct?

I guess I can’t figure out this screenshot thing, looked fine to me on my end.

Yeah, it wouldn’t hurt to see if the library files are where the KiCad paths think they are, and not buried another level deep in the in the kicad\share folder. But regarding the location of the default library table files…

Oh, my bad. I went to double check the location of the default library tables on my computer and I didn’t find them in the library folders. I found them in the templates folder. See the two highlighted items in this screenshot:


Looking at your screenshot of your path manager, I see some weird redirection action in the KICAD_TEMPLATE_DIR path.

Maybe someone who knows more about OSX can help you figure out what should be the path for the templates (i.e. should it be a simple path like the symbol and footprint libraries), or if that odd redirection is normal…

Any MAC gurus still watching this thread?

Here’s mine, doesn’t it appear sort like yours?

The template path on my mac is shown below. The default library table files are in that directory.

Any clue why guido has such a weird path for the KICAD_TEMPLATE_DIR starting with /private/var? See here. I don’t know MAC, but the AppTranslocation part of the path makes me wonder if it is an installer issue…

I have no idea about that weird path, but I’m sure it’s not an installer issue since there is no installer on the mac.

The user simply drags and drops folders from the install media (virtual disk) into folders on the mac hard drive. One folder goes into the Applications folder and one into the Application Support folder. The later one is a problem in macOS Big Sur because the default /Library/Application Support directory is read only to everyone except the system (it is read only to admins too).

So KiCad will have to start using the users local Application Support folder in the users home directory. There may be an API for the app to move stuff into that protected directory when it runs, or they may have to create an installer of some sort that has the system move stuff to that location.

After installing the application support folder as per dennischi in the other thread, it still appears the same as before on the line KICAD_TEMPLATE_DIR starting with /private/var.

The personal settings will not change without explicit user interaction no matter what package you install. This is on purpose! It protects users who already have kicad up and running from needing to be careful with updates.

To you this means you will either need to manually fix the paths (they are user editable) or you need to delete the kicad config folder in your users profile to make kicad think it starts from scratch. (A reset to factory default button would be awesome in these instances but such a feature does not exist)

macOS does something called App Translocation- this is to prevent an authorised application from running code linked via a relative path. The os randomises the true path to the resource to prevent an attack.

Starting with macOS Sierra, running a newly-downloaded app from a disk image, archive, or the Downloads directory will cause Gatekeeper to isolate that app at a unspecified read-only location in the filesystem. This will prevent the app from accessing code or content using relative paths.

macOS Code Signing In Depth

So should I leave it the way it is then, considering that the system created it?

I believe that either option will work as the linked files are not executables. Generally it is easier to check that items are where you expect them to be if you use the non-obfuscated paths.

Thanks, it appears to work just fine the way the system configured it, but maybe I will run it awhile to see if something else pops up.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.