← Back to team overview

kicad-developers team mailing list archive

Re: KiCad daily PPA for Trusty not building

 

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

On 14/04/2016 22.29, Jean-Samuel Reynaud wrote:
Hi,

When using this patch it doesn't change. Same error. I had process an
other test. Instead of using the default swig (2.0.11 on Ubuntu 14.04),
I had try to use version swig v3.0 (available on 14.04 but not the
default). It look to work. This is the default version on Ubuntu 16.04.
I'll modify to use this version on PPA to fix this. (by adding
-DSWIG_EXECUTABLE=/usr/bin/swig3.0 to options)

Regards
Le 14/04/2016 17:45, jp charras a écrit :
Le 14/04/2016 15:41, Jean-Samuel Reynaud a écrit :
Hi,

This is well known issue on KiCad daily for Ubuntu 14.04:
https://lists.launchpad.net/kicad-developers/msg23857.html

And the conclusion was to don't work on this error.
https://lists.launchpad.net/kicad-developers/msg23869.html


Jean-Samuel,

could you test this very small patch.

On my Kubuntu 14.04 lts it works.

I also removed and reinstalled swig 2.11 (apt-get remove swig, apt-get install swig)

I am not sure for the exact reason why now I can build pcbnew, because I made many tests, and also
patched swig.
The last test (after reinstalling swig and with the patch) worked for me.
(My options: KICAD_SCRIPTING=ON, KICAD_SCRIPTING_MODULES=ON, KICAD_SCRIPTING_WXPYTHON=OFF)

Bonne chance...



_______________________________________________
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



Follow ups

References