Discussion:
Link Error with trunk
Gerald Brandt
2014-09-24 02:57:19 UTC
Permalink
Hi,

Just upgraded latest trunk today. My project is now getting a link
error, so something changed.

/home/gbr/downloads/wxWidgets/wxWidgets/build-release/lib/libwx_gtk2u_core-3.1.a(corelib_displayx11.o):
In function `wxXF86VidMode_GetCurrentMode(_XDisplay*, int)':
displayx11.cpp:(.text+0x436): undefined reference to
`XF86VidModeGetModeLine'
/home/gbr/downloads/wxWidgets/wxWidgets/build-release/lib/libwx_gtk2u_core-3.1.a(corelib_displayx11.o):
In function `wxXF86VidMode_GetModes(wxVideoMode const&, _XDisplay*, int)':
displayx11.cpp:(.text+0x617): undefined reference to
`XF86VidModeGetAllModeLines'
/home/gbr/downloads/wxWidgets/wxWidgets/build-release/lib/libwx_gtk2u_core-3.1.a(corelib_displayx11.o):
In function `wxXF86VidMode_ChangeMode(wxVideoMode const&, _XDisplay*, int)':
displayx11.cpp:(.text+0xe8b): undefined reference to
`XF86VidModeGetAllModeLines'
displayx11.cpp:(.text+0xf48): undefined reference to
`XF86VidModeSwitchToMode'
displayx11.cpp:(.text+0x1037): undefined reference to
`XF86VidModeSwitchToMode'
--
Gerald Brandt
Majentis Technologies
204-229-6595
***@majentis.com
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-09-24 13:10:56 UTC
Permalink
On Tue, 23 Sep 2014 21:57:19 -0500 Gerald Brandt wrote:

GB> Just upgraded latest trunk today. My project is now getting a link
GB> error, so something changed.

This is probably related to wxX11 GSoC project merge, but I don't see what
exactly could have broken it nor even why is it broken, exactly.

GB> /home/gbr/downloads/wxWidgets/wxWidgets/build-release/lib/libwx_gtk2u_core-3.1.a(corelib_displayx11.o):
GB> In function `wxXF86VidMode_GetCurrentMode(_XDisplay*, int)':
GB> displayx11.cpp:(.text+0x436): undefined reference to
GB> `XF86VidModeGetModeLine'

So apparently configure detects Xxf86vm library and headers in your build.
In this case, it should link with libXxf86vm.so which is supposed to
contain this (and other missing) function(s). Do you see this library in
the link command?

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Gerald Brandt
2014-09-24 13:38:53 UTC
Permalink
Post by Vadim Zeitlin
GB> Just upgraded latest trunk today. My project is now getting a link
GB> error, so something changed.
This is probably related to wxX11 GSoC project merge, but I don't see what
exactly could have broken it nor even why is it broken, exactly.
GB> displayx11.cpp:(.text+0x436): undefined reference to
GB> `XF86VidModeGetModeLine'
So apparently configure detects Xxf86vm library and headers in your build.
In this case, it should link with libXxf86vm.so which is supposed to
contain this (and other missing) function(s). Do you see this library in
the link command?
Regards,
VZ
Hi,

It's not showing up in my Code::Blocks build. Code::Blocks calls
wx-config to get the libs.

Interestingly, if I do wx-config --libs from the command line, it's
there. Maybe code:blocks is doing some caching.

Thanks for the pointer.

Gerald
--
Gerald Brandt
Majentis Technologies
204-229-6595
***@majentis.com
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...