diff --git a/change_log.txt b/change_log.txt index 0878c55fd4..ab52731800 100644 --- a/change_log.txt +++ b/change_log.txt @@ -5,6 +5,15 @@ Started 2007-June-11 Please add newer entries at the top, list the date and your name with email address. +2008-June-22 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr> +================================================================================ ++all: + Default path kicad/share added when searching kicad data (like library, internat ...) + Kicad data Default paths are now (windows version and linux server install) + 1 - kicad/share + 2 - kicad + + 2008-June-15 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr> ================================================================================ +eeschema: diff --git a/common/gestfich.cpp b/common/gestfich.cpp index 792e1f1852..9e205666b2 100644 --- a/common/gestfich.cpp +++ b/common/gestfich.cpp @@ -83,14 +83,14 @@ static wxString s_HelpPathList[] = { // Path list for kicad data files static wxString s_KicadDataPathList[] = { #ifdef __WINDOWS__ - wxT( "c:/kicad/" ), - wxT( "d:/kicad/" ), wxT( "c:/kicad/share/" ), wxT( "d:/kicad/share/" ), - wxT( "c:/Program Files/kicad/" ), - wxT( "d:/Program Files/kicad/" ), + wxT( "c:/kicad/" ), + wxT( "d:/kicad/" ), wxT( "c:/Program Files/kicad/share/" ), wxT( "d:/Program Files/kicad/share/" ), + wxT( "c:/Program Files/kicad/" ), + wxT( "d:/Program Files/kicad/" ), #else wxT( "/usr/share/kicad/" ), wxT( "/usr/local/share/kicad/" ), @@ -469,7 +469,7 @@ wxString FindKicadFile( const wxString& shortname ) /* Search the executable file shortname in kicad binary path * and return full file name if found or shortname * kicad binary path is - * kicad/winexe or kicad/linux + * kicad/bin * * kicad binary path is found from: * BinDir @@ -552,7 +552,7 @@ void SetRealLibraryPath( const wxString& shortlibname ) * Sinon g_UserLibDirBuffer = /usr/share/kicad/shortlibname/ * * Remarque: - * Les \ sont remplac�s par / (a la mode Unix) + * Les \ sont remplaces par / (a la mode Unix) */ { bool PathFound = FALSE; @@ -619,8 +619,18 @@ wxString ReturnKicadDatasPath() tmp.RemoveLast(); data_path = tmp.BeforeLast( '/' ); // id cd ../ data_path += UNIX_STRING_DIR_SEP; + // Old versions of kicad use kicad/ as default for data + // and last versions kicad/share/ + // So we search for kicad/share/ first + wxString old_path = data_path; + data_path += wxT("share/"); if( wxDirExists( data_path ) ) PathFound = TRUE; + else if ( wxDirExists( old_path ) ) + { + data_path = old_path; + PathFound = TRUE; + } } } diff --git a/install.txt b/install.txt index 10978709f5..4e872b97b4 100644 --- a/install.txt +++ b/install.txt @@ -66,7 +66,7 @@ kicad/share/modules/packages3d - 3D component models (.wrl and .wings format). Files '*.mod' are libraries, and files '*.brd' are printed boards you can view with pcbnew. - Files *.brd show the existing modules (and 3D shapes) in libraries. + Files *.brd show the existing modules (and 3D shapes) in libraries. Linux KiCad tree: ================= @@ -80,9 +80,13 @@ Linux KiCad tree: /usr/share/kicad/modules - Module libraries for printed boards. /usr/share/kicad/modules/packages3d - 3D component models (.wrl and .wings format). +if not found search kicad in +/usr/local/ +and if found, kicad uses the same tree as the Windows KiCad tree above + Files '*.mod' are the libraries, and files '*.brd' are printed boards you can view with pcbnew. - Files *.brd show the existing modules (and 3D shapes) in libraries. + Files *.brd show the existing modules (and 3D shapes) in libraries. Warning: Do not change the KiCad tree, or the location of binary files, @@ -94,7 +98,7 @@ Installation from source code ============================= Some dependencies must be satisfied for the correct installation of KiCad: - + wxWidgets >= 2.6.3.3 http://www.wxwidgets.org/ CMake >= 2.4.6 http://www.cmake.org/ Boost C++ Libraries http://www.boost.org/ @@ -116,7 +120,7 @@ the Makefiles. It is easy to build only a specific binary such as pcbnew alone: make pcbnew - + After "make" type "make install" and install begins. You may install to a temporary-root with