kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #11097
Re: Python-a-mingw-us Windows Debug Scripting Builds
> CMakeFiles\pcbnew.dir/objects.a(pcbnew_wrap.cxx.obj): In function
> `SWIG_Python_AddErrorMsg':
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1020:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1020:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1024:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1024:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilderCMakeFiles-pyrelease\_pcbnew.dir/build/objects.a/Debug(pcbnewPYTHON_wrap.cxx.obj/pcbnew):
> In/pcbnew_wrap.cxx function:1024 `SWIG_Python_AddErrorMsg: undefined':
> D reference:/launchpad to-dev `_imp___Py_NegativeRefcount/kicad'
> D-winbuilder-pyrelease/build/Debug/pcbnew/scripting/pcbnewPYTHON_wrap.cxx:1020:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug:/launchpad/pcbnew-dev/scripting/kicad/pcbnewPYTHON_wrap.cxx-winbuilder:1020-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1024:
> undefined reference to `_imp___Py_Dealloc'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1025:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1025:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad: undefined-dev reference/kicad to-winbuilder
> `_imp___Py_RefTotal-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1025:
> undefined reference to `_imp___Py_NegativeRefcount'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1025:
> undefined reference to `_imp___Py_Dealloc'
> CMakeFiles\pcbnew.dir/objects.a(pcbnew_wrap.cxx.obj): In function
> `SWIG_Python_SetErrorObj':
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1212:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1212:
> undefined reference to `_imp___Py_RefTotal'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1212:
> undefined reference to `_imp___Py_NegativeRefcount'
> D:/launchpad-dev/kicad-winbuilder-pyrelease/build/Debug/pcbnew/pcbnew_wrap.cxx:1212:
> undefined reference to `_imp___Py_Dealloc'
> CMakeFiles\pcbnew.dir/objects.a(pcbnew_wrap.cxx.obj): In function
> `SWIG_Python_SetConstant':
>
> etc.
>
> Thanks for the reply - I think it's probably saved a lot of work!
>
>
We already have -D_DEBUG set in debug builds, from our
CMakeModules/FindwxWidgets.cmake:606:
SET(wxWidgets_DEFINITIONS_DEBUG _DEBUG __WXDEBUG__)
and then in CMakeModules/UsewxWidgets.cmake:65:
IF (wxWidgets_DEFINITIONS_DEBUG)
SET_PROPERTY(DIRECTORY APPEND
PROPERTY COMPILE_DEFINITIONS_DEBUG ${wxWidgets_DEFINITIONS_DEBUG})
MSG("wxWidgets_DEFINITIONS_DEBUG=${wxWidgets_DEFINITIONS_DEBUG}")
ENDIF(wxWidgets_DEFINITIONS_DEBUG)
This is why the debug build scripting build fails, even when linking
against release versions of Python-a-mingw-us and wxPython.
This is not unique to our version of FindwxWidgets.cmake - the _DEBUG
definition is also present in the standard CMake FindwxWidgets.cmake module.
Best Regards,
Brian.
References