Update: Looks like it's being included when SIP generates the files for example this can be found at the top of sip_core_ScrolledWindowsBase.cpp:"#include </home/Hamish/wxpython-build/wxPython-4.0.1/ext/wxWidgets/interface/wx/scrolwin.h>
#include </home/Hamish/wxpython-build/wxPython-4.0.1/ext/wxWidgets/interface/wx/window.h>
#include </home/Hamish/wxpython-build/wxPython-4.0.1/ext/wxWidgets/interface/wx/gdicmn.h>"And so on. Is there a way I can configure SIP to avoid this?
[ 11/868] Linking build/waf/3.7/gtk2/siplib.cpython-37m-i386-cygwin.dll
[ 12/868] Compiling sip/cpp/sip_corewxMemoryBuffer.cpp
[ 15/868] Compiling sip/cpp/sip_corewxAccessible.cpp
[ 16/868] Compiling sip/cpp/sip_corewxMaximizeEvent.cpp
sip/siplib/apiversions.c.1.o: In function `sipInitAPI':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk2/../../../../sip/siplib/apiversions.c:132: undefined reference to `PyCFunction_NewEx'
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk2/../../../../sip/siplib/apiversions.c:135: undefined reference to `PyDict_SetItemString'
sip/siplib/apiversions.c.1.o: In function `sipGetAPI':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk2/../../../../sip/siplib/apiversions.c:189: undefined reference to `PyArg_ParseTuple'
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk2/../../../../sip/siplib/apiversions.c:199: undefined reference to `PyLong_FromLong'
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk2/../../../../sip/siplib/apiversions.c:194: undefined reference to `_imp__PyExc_ValueError'
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk2/../../../../sip/siplib/apiversions.c:194: undefined reference to `PyErr_Format'
...
And so on - the output scrolls a really long way. I do have python3-devel installed, but it sounds like it's not finding the library to link to or something. Can I specify it manually?
LDFLAGS="-L/usr/lib -lpython3.7m -lX11 -lgtk-3 -lgdk-3" python3.7 build.py build_py --use_syswx --gtk3
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZNK29sipwxRichTextFormattingDialog16GetContentWindowEv':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk3/../../../../sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp:178: undefined reference to `wxPropertySheetDialog::GetContentWindow() const'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN29sipwxRichTextFormattingDialog11AddBookCtrlEP7wxSizer':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk3/../../../../sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp:848: undefined reference to `wxPropertySheetDialog::AddBookCtrl(wxSizer*)'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN29sipwxRichTextFormattingDialog14CreateBookCtrlEv':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk3/../../../../sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp:865: undefined reference to `wxPropertySheetDialog::CreateBookCtrl()'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN29sipwxRichTextFormattingDialog13CreateButtonsEi':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk3/../../../../sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp:881: undefined reference to `wxPropertySheetDialog::CreateButtons(int)'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN29sipwxRichTextFormattingDialog12LayoutDialogEi':
/home/Hamish/wxpython-build/wxPython-4.0.6/build/waf/3.7/gtk3/../../../../sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp:899: undefined reference to `wxPropertySheetDialog::LayoutDialog(int)'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN21wxPropertySheetDialogC4Ev':
/usr/include/wx-3.0/wx/generic/propdlg.h:82: undefined reference to `vtable for wxPropertySheetDialog'
/usr/include/wx-3.0/wx/generic/propdlg.h:82: undefined reference to `wxPropertySheetDialog::Init()'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN21wxPropertySheetDialogD4Ev':
/usr/include/wx-3.0/wx/generic/propdlg.h:79: undefined reference to `vtable for wxPropertySheetDialog'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN21wxPropertySheetDialogC4Ev':
/usr/include/wx-3.0/wx/generic/propdlg.h:82: undefined reference to `vtable for wxPropertySheetDialog'
/usr/include/wx-3.0/wx/generic/propdlg.h:82: undefined reference to `wxPropertySheetDialog::Init()'
sip/cpp/sip_richtextwxRichTextFormattingDialog.cpp.23.o: In function `ZN21wxPropertySheetDialogD4Ev':
/usr/include/wx-3.0/wx/generic/propdlg.h:79: undefined reference to `vtable for wxPropertySheetDialog'
collect2: error: ld returned 1 exit status
Is my system wxwidgets too old? I might be able to build a newer one, but would be good to not do that if possible :)
--enable-optimise \
--enable-shared \
--enable-unicode \
--enable-mediactrl \
--disable-gtktest \
--disable-rpath \
--disable-sdltest \
--disable-webviewwebkit \
--with-expat \
--with-gtk=3 \
--without-gnomeprint --without-gnomevfs \
--with-libpng \
--with-libjpeg \
--with-libiconv \
--with-libmspack \
--with-libnotify \
--with-libtiff \
--with-libxpm \
--with-opengl \
--with-sdl \
--with-zlib