[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#710773: qtchooser: New error/warning when using Qt and cmake: qmake: could not find a Qt installation of ''



On Sunday 02 June 2013 17:07:17 Ralf Jung wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> > Here's the problem. A bit of qtchooser's code follows:
> > 
> > #if defined(QTCHOOSER_GLOBAL_DIR) if
> > (qgetenv("XDG_CONFIG_DIRS").empty()) { vector<string> globalPaths
> > = stringSplit(QTCHOOSER_GLOBAL_DIR); paths.insert(paths.end(),
> > globalPaths.begin(), globalPaths.end()); } #endif
> > 
> > We define QTCHOOSER_GLOBAL_DIR so we can be able to add more paths
> > while setting configs. When you define XDG_CONFIG_DIRS, this paths
> > are ignored.
> > 
> > I don't know why Thiago wanted it like this.
> > 
> > For now I'll say it's not a bug, but I'll keep it open to see if
> > XDG_CONFIG_DIRS could instead be prepended.
> 
> So, what do I have to add to XDG_CONFIG_DIRS (or any other environment
> variable) in my script to make it work again?

The path to where the qtchooser config files are. For example, 
libqtcore4:amd64 ships:

/usr/lib/x86_64-linux-gnu/qtchooser/4.conf
/usr/lib/x86_64-linux-gnu/qtchooser/qt4.conf

So you need to add /usr/lib/x86_64-linux-gnu/ to that variable to use the 
configs inside the qtchooser directory.

It's in qtchooser's manpage, although it can be improved. Patches welcomed ;)

-- 
Combata las características. Si una característica no es absolutamente
esencial, descártela, especialmente si tiene el mismo efecto que se
puede alcanzar mediante la combinación de otras características.
  Andrew S. Tanenbaum, de su libro "Computer Networks"

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: