Re: Qt module doesn't like having QTDIR set

Aschwin Marsman <[email protected]> Wed, 18 Jan 2006 10:13:40 +0100 (CET)
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
On Tue, 17 Jan 2006, Bram Moolenaar wrote:

> Adriaan de Groot wrote:
> 
> > Since noone ever uses the Qt module, weird-ass logic errors stay in it
> > for a long time. Now that I'm pushing AAP along with KPilot, it gets
> > used and breaks. My previous patch unbreaking the syntax hasn't been
> > applied yet, I see, but here's a new one: allow QTDIR to be set to
> > define the prefix where Qt is installed -- instead of it working,
> > setting QTDIR causes an :error.
> 
> Ah, obvious mistake.
> 
> Instead of using @else:, why not use @elif?  Then it looks like this:
> 
> QTDIR = `os.environ.get("QTDIR")`
> @if not QTDIR:
>   @for dir in ['/usr/X11R6', '/usr', '/usr/local']:

On SUSE 10.0 I find qglobal.h in the following locations:
$ locate qglobal.h
/usr/include/Qt/qglobal.h
/usr/include/QtCore/qglobal.h
/usr/lib/qt3/include/qglobal.h

Does the Qt module already Support Qt 4.x? Then the search is incorrect,
see above. I think it currently supports Qt 3.x. In that case /usr/lib/qt3/
should be added to the search path.

>     @if os.path.isdir(dir) and os.path.isfile(dir + "/include/qglobal.h"):

Best regards,

Aschwin Marsman

-- 
[email protected]              http://www.marsman.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642