User Tools

Site Tools


geda:faq-gschem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
geda:faq-gschem [2014/04/25 12:53]
vzh Remove unnecessary spaces
geda:faq-gschem [2014/06/29 14:02]
vzh Add info about (component-library-search ...)
Line 239: Line 239:
   * The key is: start gschem in the same directory as where your gafrc lives.   * The key is: start gschem in the same directory as where your gafrc lives.
  
-===== Can gafrc use a variable to set the root of my library? ===== +===== How can I set the root of my library? ===== 
-Currently (v1.3.1) gschem does not descend into subdirectories ​of the symbol ​library. You have to give individually each and every directory of your local lib in your gafrc file. However, you don't have to repeat the absolute base path over and over. You can use the function '​build-path'​ to concatenate the path on the fly:+There are two approachesIf you want each of your library ​to have a unique name, you have to set it individually ​for each and every directory of your local lib in your gafrc file. However, you don't have to repeat the absolute base path over and over. You can use the function '​build-path'​ to concatenate the path on the fly:
 <​code>​(define gedasymbols "/​path/​to/​local/​library"​) <​code>​(define gedasymbols "/​path/​to/​local/​library"​)
 (component-library (build-path gedasymbols "​analog"​)) (component-library (build-path gedasymbols "​analog"​))
 (component-library (build-path gedasymbols "​block"​)) (component-library (build-path gedasymbols "​block"​))
 (component-library (build-path gedasymbols "​connector"​))</​code>​ (component-library (build-path gedasymbols "​connector"​))</​code>​
 +
 +If you don't want to list separate subdirectories,​ you can only
 +set the name of a root directory using:
 +<​code>​(component-library-search "/​path/​to/​local/​library"​ "​library:"​)</​code>​
  
 ===== Can the library path contain environment variables? ===== ===== Can the library path contain environment variables? =====
Line 278: Line 282:
 (component-library "/​bar/​foo/​localgedalib2"​) (component-library "/​bar/​foo/​localgedalib2"​)
 </​code>​ </​code>​
-You have to add each and every dir of your local library. ​Subdirs are not automatically recognized by gschem and gsch2pcbIts a good idea to place this gafrc in your projects ​dir. That way, if you start gschem from some other place, you still get the system symbols shown. This also allows to configure special symbol libs for specific projects.+You can either ​add directories ​of your local library ​separately or add a whole tree with subdirsSee above on [[#How can I set the root of my library|how to do this]]It'​s ​a good idea to place this gafrc in your project'​s ​dir. That way, if you start gschem from some other place, you still get the system symbols shown. This also allows to configure special symbol libs for specific projects.
  
  
geda/faq-gschem.txt · Last modified: 2015/07/06 16:53 by vzh