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.char...@wanadoo.fr>:

> 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to