Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678644 - media-gfx/hugin-9999 fails to build due to not linking against libwx_gtk2u_aui-3.0.so
Summary: media-gfx/hugin-9999 fails to build due to not linking against libwx_gtk2u_au...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-23 19:10 UTC by Helmut Jarausch
Modified: 2022-03-11 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log xz-compressed (hugin-9999.build.xz,17.42 KB, application/x-xz)
2019-02-23 19:10 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2019-02-23 19:10:48 UTC
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.
Comment 1 Fredrik Lingvall 2019-03-21 08:07:46 UTC
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
Comment 2 Fredrik Lingvall 2019-03-21 09:06:29 UTC
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
Comment 3 Fredrik Lingvall 2019-03-21 09:55:23 UTC
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)
Comment 4 Helmut Jarausch 2019-03-21 13:39:03 UTC
(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
Comment 5 Markus Meier gentoo-dev 2020-06-18 17:55:47 UTC
is this still an issue with hugin-2019.2.0?
Comment 6 Markus Meier gentoo-dev 2020-06-18 17:56:15 UTC
(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 :)
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2022-03-11 19:42:38 UTC
(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 :)