KiCad 在哪里查找 images.tar.gz?
查看源代码
kicad_paths_example.cpp
static const wxString IMAGE_ARCHIVE = wxT( "images.tar.gz" );kicad_bitmap_store_path.cpp
wxFileName path( PATHS::GetStockDataPath() + wxT( "/resources" ), IMAGE_ARCHIVE );kicad_getstockdatapath.cpp
wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
{
/* ... */
if( aRespectRunFromBuildDir && wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
/* ... */
else if( wxGetEnv( wxT( "KICAD_STOCK_DATA_HOME" ), &path ) && !path.IsEmpty() )
/* ... */
}因此,如果设置了 KICAD_RUN_FROM_BUILD_DIR,KiCad 会在 ./resources 目录中查找 images.tar.gz。
另一方面,如果未设置 KICAD_RUN_FROM_BUILD_DIR,KiCad 会在 KICAD_STOCK_DATA_HOME 中查找 images.tar.gz,默认为 /usr/local/share/kicad/resources。
Check out similar posts by category:
KiCad
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow