Compiling for Ubuntu Lucid 10.04.3, QElapsedTimer

All about Linux portage
Post Reply
stearman
Posts: 1
Joined: Fri Dec 21, 2012 11:25 pm

Compiling for Ubuntu Lucid 10.04.3, QElapsedTimer

Post by stearman »

Hi all,

Daniel, many thanks for making qCC available to the public, it is great!

While compiling for Ubuntu Lucid 10.04.3, I ran into minor problems caused by 'QElapsedTimer', which was first introduced with Qt 4.7, I think. Lucid comes with a minor Qt version, which has no such class. I googled around and found the tip to replace 'QElapsedTimer' by 'QTime' in the following way:

#include <QTime>
typedef QTime QElapsedTimer;

After that compilation was without errors, so qCC is running now, though I did not yet test things in deep.

Cheers
Post Reply