Created attachment 566220 [details] build log xz-compressed Linking fails due to undefined reference to `wxAuiManager::Update()' and many more such error messages. It's probably a CMakeLists.txt error.
I get the same error on hugin-2018.0.0 Running cmake manually it seems that not all components are found: This is from the CMakeLists.txt file -snip- SET(wxWidgets_USE_LIBS base core aui xrc html xml adv gl net qa) FIND_PACKAGE(wxWidgets REQUIRED) -snip- which results in (when using cmake 3.14.0): -snip- -- Current HG revision is 5abfb4de7961 -- Assuming this is a tarball (release) build for 2018.0.0 -- Looking for log1p -- Looking for log1p - found -- Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_gtk2u_xrc-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_qa-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu_xml-3.0;-lwx_baseu_net-3.0;-lwx_baseu-3.0 (found version "3.0.4") -- Found TIFF: /usr/include -- Found JPEG: /usr/include -- Found ZLIB: /usr/include -- Found PNG: /usr/include -snip- It looks like the aui and gl components is missing. /Fredrik
It looks like the problem is that cmake calls wx-config with an empty (required libs) --libs option: $ wx-config --libs --optional-libs base,core,aui,xrc,html,xml,adv,gl,net,qa -L/usr/lib64 -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 If we remove the --libs option then wx-config picks up all components: $ wx-config --optional-libs base,core,aui,xrc,html,xml,adv,gl,net,qa -lwx_baseu-3.0 -lwx_gtk2u_core-3.0 -lwx_gtk2u_aui-3.0 -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_baseu_xml-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_gl-3.0 -lwx_baseu_net-3.0 -lwx_gtk2u_qa-3.0
This small change seems to fix the problem: --- hugin-2018.0.0/CMakeLists.txt 2018-01-13 08:52:06.000000000 +0100 +++ hugin-2018.0.0/CMakeLists.txt 2019-03-21 10:31:08.902119655 +0100 @@ -162,8 +162,7 @@ ## # This must come before FINDs for tiff, jpeg, png, zlib to enable # finding the wxWidgets distributions of those packages (Win32 only). -SET(wxWidgets_USE_LIBS base core aui xrc html xml adv gl net qa) -FIND_PACKAGE(wxWidgets REQUIRED) +FIND_PACKAGE(wxWidgets REQUIRED base core aui xrc html xml adv gl net qa) # hugin requires wxwidgets 3.0 or above IF (UNIX)
(In reply to Fredrik Lingvall from comment #3) > This small change seems to fix the problem: > > --- hugin-2018.0.0/CMakeLists.txt 2018-01-13 08:52:06.000000000 +0100 > +++ hugin-2018.0.0/CMakeLists.txt 2019-03-21 10:31:08.902119655 +0100 > @@ -162,8 +162,7 @@ > ## > # This must come before FINDs for tiff, jpeg, png, zlib to enable > # finding the wxWidgets distributions of those packages (Win32 only). > -SET(wxWidgets_USE_LIBS base core aui xrc html xml adv gl net qa) > -FIND_PACKAGE(wxWidgets REQUIRED) > +FIND_PACKAGE(wxWidgets REQUIRED base core aui xrc html xml adv gl net qa) > > # hugin requires wxwidgets 3.0 or above > IF (UNIX) Many thanks, this patch works fine for hugin-9999, as well. Helmut
is this still an issue with hugin-2019.2.0?
(In reply to Markus Meier from comment #5) > is this still an issue with hugin-2019.2.0? well with latest 9999 version of course :)
(In reply to Markus Meier from comment #6) > (In reply to Markus Meier from comment #5) > > is this still an issue with hugin-2019.2.0? > > well with latest 9999 version of course :)