Linux Qt

The most easiest way how to deploy Qt linux Application

I found solution also for the problem with executing application form in-app directory!!, Look to text bellow. Warning: This solution has one big disadvantage ;-(. It’s necessary to execute application only from app-dir. In other cases system doesn’t find required libraries. The solution could be run patchelf on the client computer with final installation path …

Continue Reading
Qt Windows

Qt application crash when compiled for 64-bit VS2010

Callstack The bug is probably caused by wrong alignment or incorrect VS2010 compiler optimalization. Found resources: https://bugreports.qt.nokia.com//browse/QTBUG-11445 https://connect.microsoft.com/VisualStudio/feedback/details/573262/incorrect-alignment-with-x64-optimizer-and-movaps http://support.microsoft.com/kb/2280741 https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=31433 Workarounds: First way – Update VS2010 mkspec for Qt go to $QTDIR/mkspecs/win32-msvc2010/qmake.conf and replace -02 with -01 (ie. reducing the optimzation level).Also /Ob0 could be used. Microsoft hotfix for VS http://archive.msdn.microsoft.com/KB2280741 File patch name VS10-KB2268081-x86.exe …

Continue Reading
Programming Qt Windows

Problem with Qt compilation under Windows 64-bit

This short post will show you how to resolve following error during Qt compilation on 64-bit windows: This error is caused by bug in QMAKE_HOST variable used in WebCore.pro file. This variable is tested to determine destination platform (x86 or x64). This variable contains x86 value also on 64-bit builds instead of x86_64 value. This …

Continue Reading
Linux Programming Qt

How to deploy Qt application on MacOs

Missing dylib libraries If your application using some externals dynamic libraries (called .dylib in MacOs system), you have to provide all these libraries. The simplest way is to provide these libraries into the Application.app directory. Find out which libraries are used Qt provide really useful tool called “otool” which serves to lots of purpose. One of them …

Continue Reading
Linux MinGW Programming

g++ template method problem

Quick post about problem which I already solved, but think that could be handy for someone else. I have following code: When compiling under Visual studio, everything is ok. But when try the same code snippet under g++, have following error: This is because compiler doesn’t known FindByType method, because T2 is templated argument. The …

Continue Reading
Programming Qt

List of known issues and tips

This is list of all known issues and problems which we had to solve during our first Qt installation on Linux, Windows and Mac. Known errors Error: undefined interface What to do when compilation of QT crash with message “Error: undefined interface”. http://www.qtforum.org/article/31561/error-when-building-libraries.html http://www.qtcentre.org/threads/26245-Qt-4.6-api/qscriptextensionplugin.h(43)-Error-Undefined-interface make: g++: Command not found it’s necessary to instal g++ support (sudo …

Continue Reading
Programming Qt

Qt installation and configuration

This is our company step-by-step guide to install and configure Qt on our developer machines. How to install Qt Link to Qt download site: http://qt.nokia.com/downloads Windows (VS2005) Download VS 2008 distribution from download site. When 2008 distribution is downloaded, it’s necessary to reconfigure and rebuild it for VS 2005 using next steps. Linux Download linux/x11 …

Continue Reading