[Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

Thiago Macieira thiago.macieira at intel.com
Thu Jul 24 17:00:21 CEST 2014


On Thursday 24 July 2014 08:47:14 Mike Jackson wrote:
> I am trying to compile some Qt code that is the following:
> 
> #if defined(Q_WS_X11)
>    extern void qt_x11_wait_for_window_manager(QWidget * mainWin, bool);
>    qt_x11_wait_for_window_manager(mainWin, false);
> #endif
> 
> I am trying to reimplement some of the QSplashScreen with some additional
> functionality and I think I may be missing a link library:
> 
> This is the error I get during linking:
> CMakeFiles/DREAM3D.dir/DSplashScreen.cpp.o: In function
> `DSplashScreen::finish(QWidget*)':
> DSplashScreen.cpp:(.text+0x33f): undefined reference to
> `qt_x11_wait_for_window_manager(QWidget*, bool)'
> collect2: ld returned 1 exit status
> 
> I have googled as much as I can but can not really reveal what library I am
> missing to link against.

You're not missing any.

You're just trying to link against a private symbol that isn't exported. You 
can't do that.

The version you can link to is this:
Q_GUI_EXPORT void qt_x11_wait_for_window_manager(QWidget *w)

The missing parameter is assumed to be true, unlike what you're doing.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list