← Back to team overview

kicad-developers team mailing list archive

Error with fix_swig_imports script?

 

Hi,

I’ve compiled kicad-osxtrackpad branch on Yosemite with python 2.7.6 and scripting/wxpython/modules=ON, but I’ve got the attached error. (I think it is the same for the main branch)

My build/pcbnew/pcbnew.py does not contain the line 'if version_info >= (2,6,0):”):’, so I’ve disabled the fix_swig_imports script to complete the build process. Don’t know if it’s the right thing to do, but it seems to work.


[ 78%] Building CXX object pcbnew/CMakeFiles/_pcbnew.dir/__/common/base_units.cpp.o
Linking CXX shared module _pcbnew.so
clang: warning: argument unused during compilation: '-XLinker,-cref'
clang: warning: argument unused during compilation: '-XLinker,-Map=pcbnew.so.map'
[ 78%] Built target _pcbnew
Scanning dependencies of target FixSwigImportsModuleScripting
[ 78%] Fixing swig_import_helper in Kicad scripting modules
Error: the swig import helper was not fixed, check /Users/mirko/src/Kicad/build/pcbnew/pcbnew.py
       and fix this script: fixswigimports.py
make[2]: *** [pcbnew/CMakeFiles/FixSwigImportsModuleScripting] Error 2
make[1]: *** [pcbnew/CMakeFiles/FixSwigImportsModuleScripting.dir/all] Error 2
make: *** [all] Error 2


Anyway when I quit pcbnew.app launched directly from Finder instead than from Kicad.app, I get this crash:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libwx_baseu-3.0.0.dylib       	0x000000010dc108ac wxEntry(int&, wchar_t**) + 76
1   org.kicad-eda.pcbnew          	0x000000010d13ea40 main + 48
2   libdyld.dylib                 	0x00007fff8cd295c9 start + 1


"wxwidgets-3.0.2_macosx_yosemite.patch" does not look correctly and patch refuses to parse the file.

-- 
Best regards,
Mirko

Follow ups