kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24222
Re: KiCad daily PPA for Trusty not building
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
On 15/04/2016 10.16, Nick Østergaard wrote:
Easyw, remember that in a full MSYS2 installation you sort of that three
environments, msys, mingw32 and mingw64. The swig you used was the one
from the "barebones" msys environment, while you need the one for mingw.
Den 15/04/2016 08.56 skrev "jp charras" <jp.charras@xxxxxxxxxx
<mailto:jp.charras@xxxxxxxxxx>>:
Le 14/04/2016 23:07, easyw a écrit :
> Hi,
> I'm having the same prob in windows 8-64b mingw64...
> I could build with
> KICAD_SCRIPTING=ON, KICAD_SCRIPTING_MODULES=ON,
KICAD_SCRIPTING_WXPYTHON=ON
> till few release before
> now I can build only with this option off
>
> I tried both the path and -DSWIG_EXECUTABLE=/usr/bin/swig3.0
(after having installed swig 3.0.6 with
> pacman -S swig)
> these are the errors:
> CMake Error at
C:/kicad-wb-1602/msys64/mingw64/share/cmake-3.4/Modules/FindSWIG.cmake:50
(message):
> Command "C:/kicad-wb-1602/msys64/usr/bin/swig3.0 -swiglib"
failed with
> output:
> Call Stack (most recent call first):
> pcbnew/CMakeLists.txt:11 (find_package)
> CMake Error at pcbnew/CMakeLists.txt:12 (include):
> include called with wrong number of arguments. include() only
takes one file.
> CMake Error at pcbnew/CMakeLists.txt:411 (swig_add_module):
> Unknown CMake command "swig_add_module".
> -- Configuring incomplete, errors occurred!
>
> my cmake options are:
> 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 -DSWIG_EXECUTABLE=/usr/bin/swig3.0
-DKICAD_REPO_NAME=dev
> -DKICAD_BUILD_VERSION=6691 ../kicad_main_branch
>
> Regards
> Maurice
>
I do not understand very well your command line.
I am using W3 32 bits + msys2, but I believe it does not make
difference.
On my msys2 the default is swig 3.0.6, and the executable is swig
(in fact swig.exe), not swig3.0
and it is in /mingw32/bin (or /mingw64/bin for you)
Use command "type swig" or "type swig3.0" to know the actual path
(and if file exists)
here is the result on my install:
jpc@jpc MINGW32 ~
$ type swig
swig est haché (/mingw32/bin/swig)
$ type swig3.0
bash: type: swig3.0 : non trouvé
Because swig3.0 is the default, adding -DSWIG_EXECUTABLE is useless
(currently, your define is
perhaps incorrect and it explains the cmake errors)).
You are using the wxWidgets coming from msys2. So define
wxWidgets_ROOT_DIR should be not necessary.
--
Jean-Pierre CHARRAS
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
Follow ups
References