← Back to team overview

kicad-developers team mailing list archive

Re: PATCH: change 3D cache location

 

Cirilo,

I just attempted to compile this patch and it fails to build on windows.
 Please take a look at it when you get a chance.  Here is the output:

C:/src/kicad/product/3d-viewer/3d_cache/3d_plugin_manager.cpp:154:6:
error: invalid preprocessing directive #ifnef
     #ifnef _WIN32
      ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_plugin_manager.cpp:163:2:
error: #else without #if
 #else
  ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_plugin_manager.cpp:177:2:
error: #endif without #if
 #endif
  ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_plugin_manager.cpp: In member
function 'void S3D_PLUGIN_MANAGER::loadPlugins()':
C:/src/kicad/product/3d-viewer/3d_cache/3d_plugin_manager.cpp:167:44:
error: 'GetOSXKicadUserDataDir' was not declared in this scope
    checkPluginPath( GetOSXKicadUserDataDir() + wxT( "/PlugIns/3d" ),
searchpaths );
                                            ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_plugin_manager.cpp:169:47:
error: 'GetOSXKicadMachineDataDir' was not declared in this scope
    checkPluginPath( GetOSXKicadMachineDataDir() + wxT( "/PlugIns/3d" ),
searchpaths );
                                               ^
In file included from C:/msys64/mingw32/include/wx-3.0/wx/stdpaths.h:175:0,
                 from
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:35:
C:/msys64/mingw32/include/wx-3.0/wx/msw/stdpaths.h: In member function
'bool S3D_CACHE::Set3DConfigDir(const wxString&)':
C:/msys64/mingw32/include/wx-3.0/wx/msw/stdpaths.h:70:5: error:
'wxStandardPaths::wxStandardPaths()' is protected
     wxStandardPaths();
     ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:597:21: error:
within this context
     wxStandardPaths spath;
                     ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:598:23: error:
'AppInfo_None' was not declared in this scope
     spath.UseAppInfo( AppInfo_None );
                       ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:600:22: warning:
unknown escape sequence: '\k'
     cacheDir.append( "\kicad\3d" );
                      ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:603:21: error:
redeclaration of 'wxStandardPaths spath'
     wxStandardPaths spath;
                     ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:597:21: note:
'wxStandardPaths spath' previously declared here
     wxStandardPaths spath;
                     ^
C:/src/kicad/product/3d-viewer/3d_cache/3d_cache.cpp:606:22: warning:
unknown escape sequence: '\k'
     cacheDir.append( "\kicad\3d" );
                      ^
make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/build.make:663:
3d-viewer/CMakeFiles/3d-viewer.dir/3d_cache/3d_plugin_manager.cpp.obj]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [3d-viewer/CMakeFiles/3d-viewer.dir/build.make:639:
3d-viewer/CMakeFiles/3d-viewer.dir/3d_cache/3d_cache.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:793:
3d-viewer/CMakeFiles/3d-viewer.dir/all] Error 2
make: *** [Makefile:128: all] Error 2


On 6/13/2016 8:39 PM, Cirilo Bernardo wrote:
> Some users/developers have objected to the current 3D
> cache data location (within the local kicad configurations dir).
> 
> The attached patch changes the cache directory to:
> 1. Linux: ${XDG_CACHE_HOME}/kicad/3d
>   OR
>   ~/.cache/kicad/3d/
> 
> 2. OSX: ~/Library/Caches/kicad/3d/
> 
> 3. MSWin: AppData\Local\kicad\3d
> 
> These directories are the recommended locations for
> their respective operating systems.
> 
> Note: users will have to manually delete or move the
> cache data in the current cache location.
> 
> - Cirilo
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


References