Linking failed when building with CMake 3.14

Bug #1819928 reported by HJarausch on 2019-03-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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

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
>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
HJarausch (jarausch-skynet) wrote :

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


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.

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:

Bruno Postle (brunopostle) wrote :

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

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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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