www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - QTD on Ubuntu

reply "Chris" <wendlec tcd.ie> writes:
Hi,

I am having problems compiling qtd on Ubuntu 12.04. QtD needs 
Qt4, however I also have Qt5 installed. By default cmake grabs 
version 5 which of course produces error messages. In case anyone 
knows a quick fix (cmake flag, or a qmake flag etc.) please let 
me know. Thanks a million!
Jun 24 2013
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
On Monday, June 24, 2013 12:04:51 Chris wrote:
 Hi,
 
 I am having problems compiling qtd on Ubuntu 12.04. QtD needs
 Qt4, however I also have Qt5 installed. By default cmake grabs
 version 5 which of course produces error messages. In case anyone
 knows a quick fix (cmake flag, or a qmake flag etc.) please let
 me know. Thanks a million!
As I understand it, QtD is unfortunately unmaintained and is effectively a dead project. So, I wouldn't expect it to compile regardless of your Qt version. That being said, looking at the the cmake docs ( http://www.cmake.org/cmake/help/v2.8.11/cmake.html ), it looks like you might be able to get it to choose Qt4 by setting DESIRED_QT_VERSION - probably by passing -DDESIRED_QT_VERSION=4.9.10 (or whatever the version is) to cmake. - Jonathan M Davis
Jun 24 2013
parent "Chris" <wendlec tcd.ie> writes:
On Monday, 24 June 2013 at 14:18:52 UTC, Jonathan M Davis wrote:
 On Monday, June 24, 2013 12:04:51 Chris wrote:
 Hi,
 
 I am having problems compiling qtd on Ubuntu 12.04. QtD needs
 Qt4, however I also have Qt5 installed. By default cmake grabs
 version 5 which of course produces error messages. In case 
 anyone
 knows a quick fix (cmake flag, or a qmake flag etc.) please let
 me know. Thanks a million!
As I understand it, QtD is unfortunately unmaintained and is effectively a dead project. So, I wouldn't expect it to compile regardless of your Qt version. That being said, looking at the the cmake docs ( http://www.cmake.org/cmake/help/v2.8.11/cmake.html ), it looks like you might be able to get it to choose Qt4 by setting DESIRED_QT_VERSION - probably by passing -DDESIRED_QT_VERSION=4.9.10 (or whatever the version is) to cmake. - Jonathan M Davis
Thanks! I'll have a look. A pity QtD is no longer maintained. Ubuntu is using the Qt for mobile apps now (cf. http://developer.ubuntu.com/get-started/) and probably for the desktop too.
Jun 24 2013