[Qt-interest] Newbie - Help needed

Sean Harmer sean.harmer at maps-technology.com
Thu May 27 16:59:02 CEST 2010


On Thursday 27 May 2010 15:11:10 John Philip Bosco wrote:
> So I installed libqtgui4 and libqtcore4 libraries using apt-get.
> Unfortunately this installs only 4.4.3-1  version of QT libraries. So when
> I try to run the application again, I keep getting the below error:
> 
> 
> 
> ./gui_app: symbol lookup error: ./gui_app : undefined symbol:
> _ZN11QMainWindow15setDocumentModeEb
> 
> 
> 
> Any suggestion on how I can resolve this issue?

Yes ;-)

The problem is that your application is trying to call a function that does 
not exist in the version of Qt shipped by your target platform. Some options 
you have are:

(i) Make your package depend on a minimum version of Qt that meets your 
requirements. So either,
    
	(a) Build your app against the version of Qt shipped with the target 
platform. You may find that you are using features that are only available in 
newer versions of Qt though. So this may not be an option

	(b) Try to get your target platform to package the version of Qt that your 
app requires - good luck with that one.

	(c) Target a platform that ships more up to date packages of Qt.

(ii) Package up the version of Qt against which your application is built 
along with your app and install this set of Qt libs somewhere that only your 
app will look for them.

(iii) Build you application statically against Qt.

Good luck,

Sean



More information about the Qt-interest-old mailing list