Linking failed when building with CMake 3.14

Bug #1819928 reported by HJarausch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

Trying to build the version it fails with lots of undefined references like
wxGLCanvas::GetClassInfo() const

It should build against additional libraries like libwx_gtk2u_aui-3.0

Revision history for this message
tmodes (tmodes) wrote :

The CMake build system should be take care of the needed wxWidgets libs.
We are currently at beta 2 and there were reports that it builds fine on different systems without problems.

CMake is using wx-config to get the needed libs.
What is the output of "wx-config --selected-config" and "wx-config --libs all"?
I'm getting here:
>wx-config --selected-config
gtk2-unicode-3.0
>wx-config --libs all
-L/usr/lib/i386-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_stc-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_ribbon-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_aui-3.0 -lwx_gtk2u_gl-3.0 -lwx_gtk2u_media-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

Maybe there are missing some wxWidgets libs on your side or the configuration is not corrupted. (Please state also which Hugin version and some details about the systems, e.g. which wxWidgets version.)

Changed in hugin:
status: New → Incomplete
Revision history for this message
HJarausch (jarausch-skynet) wrote :

Someone from the GenToo community solved this problem
by replacing (in CMakeLists.txt)
FIND_PACKAGE(wxWidgets REQUIRED)
by
FIND_PACKAGE(wxWidgets REQUIRED base core aui xrc html xml adv gl net qa)

see
https://bugs.gentoo.org/show_bug.cgi?id=678644

Revision history for this message
tmodes (tmodes) wrote :

That's strange. I checked CMake 3.14 release. It still supports wxWidgets_USE_LIBS.
Does Gentoo apply some changes to share/cmake-3.xx/Modules/FindwxWidgets.cmake in the CMake package or otherwise? Otherwise I don't know why it does not work on your side.

Revision history for this message
Bruno Postle (brunopostle) wrote :

We have the same problem on fedora, all releases. Hugin no longer builds when cmake is upgraded from 3.13.4 to 3.14.0:
https://bugzilla.redhat.com/show_bug.cgi?id=1690947

Revision history for this message
Bruno Postle (brunopostle) wrote :

The fedora problem is with the 2018.0.0 release, this is something that has changed in cmake.

Revision history for this message
tmodes (tmodes) wrote :

Okay, I fixed the CMake as proposed by in the Gentoo bug tracker.

Changed in hugin:
milestone: none → 2019.0rc1
status: Incomplete → Fix Released
summary: - it should link against libwx_gtk2u_aui-3.0
+ Linking failed when building with CMake 3.14
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.