kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24224
Re: KiCad daily PPA for Trusty not building
Le 15/04/2016 11:33, easyw a écrit :
> Hi JP and Nick
>
> I'm building using kicad winbuilder environment, to build other branches using this ready to build
> env...
> I tried to install swig latest and it didn't improve the result
>
> so now I'm back on standard kicad winbuilder chain...
> if I digit:
> $ type swig
> swig is /mingw64/bin/swig
> $ swig -version
> SWIG Version 3.0.6
> Compiled with x86_64-w64-mingw32-g++ [x86_64-w64-mingw32]
> Configured options: +pcre
>
> It worked till now with this cmake command:
> $ cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release
> -DwxWidgets_ROOT_DIR=../../../../mingw64/include/wx-3.0/ -DKICAD_SCRIPTING=ON
> -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON
> -DPYTHON_ROOT_DIR=../../../../mingw64/include/python2.7 -DUSE_FP_LIB_TABLE=ON
> -DBUILD_GITHUB_PLUGIN=ON -DKICAD_REPO_NAME=dev -DKICAD_BUILD_VERSION=6691 ../kicad_main_branch
>
> now it works only if I omit Scripting ON
>
> these are the errors I get with the new3d-viewer branch, but I have the same with the main branch:
> .....
> Scanning dependencies of target _pcbnew
> pcbnew/CMakeFiles/_pcbnew.dir/build.make:88: warning: overriding recipe for target 'pcbnew/pcbnew.py'
> pcbnew/CMakeFiles/_pcbnew.dir/build.make:66: warning: ignoring old recipe for target 'pcbnew/pcbnew.py'
> [ 63%] Building CXX object pcbnew/CMakeFiles/_pcbnew.dir/pcbnewPYTHON_wrap.cxx.obj
> C:/kicad-wb-1602/msys64/home/userC/kicad_new3d-viewer/pcbnew/pcbnewPYTHON_wrap.cxx: In function
> 'PyObject* PAD_TRAPEZOID_swigconstant(PyObject*, PyObject*)':
> C:/kicad-wb-1602/msys64/home/userC/kicad_new3d-viewer/pcbnew/pcbnewPYTHON_wrap.cxx:85275:79: error:
> 'PAD_TRAPEZOID' was not declared in this scope
> SWIG_Python_SetConstant(d, "PAD_TRAPEZOID",SWIG_From_int(static_cast< int >(PAD_TRAPEZOID)));
>
> ^
> C:/kicad-wb-1602/msys64/home/userC/kicad_new3d-viewer/pcbnew/pcbnewPYTHON_wrap.cxx: In function
> 'PyObject* PAD_CONN_swigconstant(PyObject*, PyObject*)':
> C:/kicad-wb-1602/msys64/home/userC/kicad_new3d-viewer/pcbnew/pcbnewPYTHON_wrap.cxx:85363:74: error:
> 'PAD_CONN' was not declared in this scope
> SWIG_Python_SetConstant(d, "PAD_CONN",SWIG_From_int(static_cast< int >(PAD_CONN)));
> ^
> pcbnew/CMakeFiles/_pcbnew.dir/build.make:97: recipe for target
> 'pcbnew/CMakeFiles/_pcbnew.dir/pcbnewPYTHON_wrap.cxx.obj' failed
> make[2]: *** [pcbnew/CMakeFiles/_pcbnew.dir/pcbnewPYTHON_wrap.cxx.obj] Error 1
> CMakeFiles/Makefile2:1439: recipe for target 'pcbnew/CMakeFiles/_pcbnew.dir/all' failed
> make[1]: *** [pcbnew/CMakeFiles/_pcbnew.dir/all] Error 2
> Makefile:116: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> thanx
> Maurice
It is certainly due to the fact pcbnewPYTHON_wrap.cxx is a old file, not updated (frequent issue).
When you have an issue with pcbnewPYTHON_wrap.cxx, delete it and rebuild kicad.
pcbnewPYTHON_wrap.cxx is not always rebuilt when a .h is modified.
Usually, the issue is fixed just by deleting it to force a rebuild.
--
Jean-Pierre CHARRAS
Follow ups
References