[Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Mike Jackson
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.

This is with a self built Qt 4.8.4 on CentOS 6.5.

Thanks for any help with this.

-- 
Mike Jackson
imikejackson _at_ gee-mail dot com
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Michael Jackson

On Jul 24, 2014, at 11:00 AM, Thiago Macieira thiago.macie...@intel.com wrote:

 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


Thank you for the insight. I have adjusted my code accordingly and it now 
compiles file. Thank you again for the help

Mike Jackson

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Thiago Macieira
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

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Thiago Macieira
On Thursday 24 July 2014 11:20:59 Michael Jackson wrote:
 Thank you for the insight. I have adjusted my code accordingly and it now
 compiles file. Thank you again for the help

Note that there's a reason why QSplashScreen uses the other function. See this 
commit:

https://qt.gitorious.org/qt/qt/commit/61dfa74bb542f495eb5ff25e3f91b9065eb1cfdd
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest