Build fails at link PTBatcherGUI stage with unresolved symbols

Asked by Scott Pitcher

Hi,

I am trying to build hugin-2011.4.0 on Slackware 13.1.

gcc: 4.6.2
wxWidgets: 2.8.11 (./configure --disable-shared --enable-unicode --with-opengl)

Build fails while linking PTBatcherGUI. THere are many many link errors, with undefined symbols in the wxWidgets libraries. Interestingly, if I install the successfully compiled portions one by one, I can actually run the hugin application, load photos and work with them. The only thing it won't do is output the final image (PTBatcherGUI is missing of course). Below is a sample of the build. 2nd run of make with all the previous components successfully built. Following is a sample of the link errors.

bash-4.1$ make
[ 4%] Built target makefilelib
[ 6%] Built target huginlevmar
[ 11%] Built target huginvigraimpex
[ 29%] Built target huginbase
[ 33%] Built target celeste
[ 33%] Built target celeste_standalone
[ 33%] Built target huginlensdb
[ 35%] Built target flann_cpp_s
[ 35%] Built target flann_cpp
[ 43%] Built target ZThread
[ 43%] Built target huginlines
[ 44%] Built target align_image_stack
[ 44%] Built target autooptimiser
[ 44%] Built target checkpto
[ 45%] Built target cpclean
[ 45%] Built target fulla
[ 45%] Built target hugin_hdrmerge
[ 46%] Built target linefind
[ 46%] Built target nona
[ 46%] Built target pano_modify
[ 46%] Built target pano_trafo
[ 47%] Built target pto2mk
[ 47%] Built target pto_merge
[ 47%] Built target tca_correct
[ 48%] Built target vig_optimize
[ 49%] Built target matchpoint
[ 50%] Built target deghosting_mask
[ 53%] Built target huginbasewx
[ 54%] Built target hugin_stitch_project
[ 54%] Built target icpfindlib
[ 55%] Built target icpfind
[ 75%] Built target hugin
[ 76%] Built target nona_gui
[ 77%] Built target PTBatcher
Linking CXX executable PTBatcherGUI
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::wxXmlResource(int, wxString const&)':
xmlres.cpp:(.text+0x1304): undefined reference to `vtable for wxFileSystem'
xmlres.cpp:(.text+0x138e): undefined reference to `wxFileSystem::~wxFileSystem()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::ConvertFileNameToURL(wxString const&)':
xmlres.cpp:(.text+0x15f0): undefined reference to `wxFileSystem::FileNameToURL(wxFileName const&)'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::~wxXmlResource()':
xmlres.cpp:(.text+0x1a5c): undefined reference to `wxFileSystem::~wxFileSystem()'
xmlres.cpp:(.text+0x1a9b): undefined reference to `wxFileSystem::~wxFileSystem()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::UpdateResources()':
xmlres.cpp:(.text+0x1c22): undefined reference to `vtable for wxFileSystem'
xmlres.cpp:(.text+0x1cbc): undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
xmlres.cpp:(.text+0x1def): undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
xmlres.cpp:(.text+0x211c): undefined reference to `wxFileSystem::~wxFileSystem()'
xmlres.cpp:(.text+0x2255): undefined reference to `wxFileSystem::~wxFileSystem()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::Load(wxString const&)':
xmlres.cpp:(.text+0x22e9): undefined reference to `vtable for wxFileSystem'
xmlres.cpp:(.text+0x235a): undefined reference to `wxFileSystem::FindFirst(wxString const&, int)'
xmlres.cpp:(.text+0x240f): undefined reference to `wxFileSystem::FindNext()'
xmlres.cpp:(.text+0x2487): undefined reference to `wxFileSystem::~wxFileSystem()'
xmlres.cpp:(.text+0x2603): undefined reference to `wxFileSystem::~wxFileSystem()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::wxXmlResource(wxString const&, int, wxString const&)':
xmlres.cpp:(.text+0x26c4): undefined reference to `vtable for wxFileSystem'
xmlres.cpp:(.text+0x2770): undefined reference to `wxFileSystem::~wxFileSystem()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResource::FindResource(wxString const&, wxString const&, bool)':
xmlres.cpp:(.text+0x28c9): undefined reference to `wxFileSystem::ChangePathTo(wxString const&, bool)'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResourceHandler::GetAnimation(wxString const&)':
xmlres.cpp:(.text+0x52bf): undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xmlres.o): In function `wxXmlResourceHandler::GetBitmap(wxString const&, wxString const&, wxSize)':
xmlres.cpp:(.text+0x5685): undefined reference to `wxFileSystem::OpenFile(wxString const&, int)'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xh_bmpcbox.o): In function `wxBitmapComboBoxXmlHandler::DoCreateResource()':
xh_bmpcbox.cpp:(.text+0x7c0): undefined reference to `vtable for wxComboCtrlBase'
xh_bmpcbox.cpp:(.text+0x89b): undefined reference to `wxComboCtrlBase::Init()'
xh_bmpcbox.cpp:(.text+0x8a1): undefined reference to `vtable for wxGenericComboCtrl'
xh_bmpcbox.cpp:(.text+0x8a9): undefined reference to `wxGenericComboCtrl::Init()'
xh_bmpcbox.cpp:(.text+0xa81): undefined reference to `vtable for wxComboCtrl'
xh_bmpcbox.cpp:(.text+0xa89): undefined reference to `wxGenericComboCtrl::~wxGenericComboCtrl()'
xh_bmpcbox.cpp:(.text+0xa99): undefined reference to `wxComboCtrlBase::~wxComboCtrlBase()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xh_choicbk.o): In function `wxChoicebookXmlHandler::DoCreateResource()':
xh_choicbk.cpp:(.text+0x2be): undefined reference to `wxChoicebook::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&)'
xh_choicbk.cpp:(.text+0x4b4): undefined reference to `vtable for wxChoicebook'
xh_choicbk.cpp:(.text+0x4bc): undefined reference to `wxChoicebook::Init()'
/usr/local/lib/libwx_gtk2u_xrc-2.8.a(xrclib_xh_clrpicker.o): In function `wxColourPickerCtrlXmlHandler::DoCreateResource()':
xh_clrpicker.cpp:(.text+0x21e): undefined reference to `wxColourPickerCtrl::Create(wxWindow*, int, wxColour const&, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&)'
.................... the error text runs to about 606 lines all similar.

I think this must be caused by something simple?

Regards,
Scott

Question information

Language:
English Edit question
Status:
Solved
For:
Hugin Edit question
Assignee:
No assignee Edit question
Solved by:
Scott Pitcher
Solved:
Last query:
Last reply:
Revision history for this message
Scott Pitcher (scottypitcher) said :
#1

Please disregard this. I had library problems with an upgrade from gcc 4.4.4. I solved this problem myself and it was not a problem with hugin.

Scott