Hi Reiner,

you made my day! It's unbelievable. I am staring into that doc for month and do 
not see the obvious. Man, stupidity really is the only thing that is available 
in infinite quantities. 

Thanks,

Oliver


-------- Original-Nachricht --------
> Datum: Tue, 25 Jan 2011 15:46:06 +0100
> Von: "Reiner Hummel (WEB.DE)" <reinerhum...@web.de>
> An: qlandkartegt-us...@lists.sourceforge.net
> Betreff: Re: [Qlandkartegt-users] Call for ideas: detect 3rd party tools in 
> the       path

> Hi,
> 
> I don't know much about Qt but instead to use something like:
> 
>      QProcess proc1;
>      proc1.start(GPSBABEL " -V");
>      proc1.waitForFinished();
>      bool haveGPSBabel = proc1.exitCode() == 0;
> 
> you could try to call QProcess::error afterwards like:
> 
> 
>      QProcess proc1;
>      proc1.start(GPSBABEL " -V");
>      proc1.waitForFinished();
>      bool haveGPSBabel = true;
>      if (proc1.error() == QProcess::FailedToStart)
>     {
>        habeGPSBabel = false;
>     }
> 
> Regards,
> 
>   Reiner
> 
> Am 25.01.2011 11:57, schrieb Oliver Eichler:
> > Hi,
> >
> > there is a problem in QLandkarte GT, that I can't solve. The issue is
> > the detection of 3rd party tools. Some functions in QLandkarte GT need
> > GPSBabel or the GDAL tools to be installed and in the path.
> >
> > In former days QProcess returned with an error when calling a
> > non-existing application. QLandkarte GT is probing for a tool by
> > starting a QProcess and passing the help or version info option to the
> > tool. The result is stored as a flag. Depending on the flag certain
> > features are offered as option.
> >
> > Nokia decided to change that behavior. QProcess ends with no error if
> > the called tool is not present. By that options are offered regardless
> > of the installed tools. Very irritating for new users.
> >
> > What I need is a portable (*nix, OSX, Windows) approach to detect
> > installed tools like GPSBabel et al. Does anyone has a good idea to
> offer?
> >
> >
> > Thanks
> >
> > Oliver
> >
> >
> ------------------------------------------------------------------------------
> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> > Finally, a world-class log management solution at an even better
> price-free!
> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> > February 28th, so secure your free ArcSight Logger TODAY!
> > http://p.sf.net/sfu/arcsight-sfd2d
> > _______________________________________________
> > Qlandkartegt-users mailing list
> > qlandkartegt-us...@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
> >
> 
> 
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
> February 28th, so secure your free ArcSight Logger TODAY! 
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Qlandkartegt-users mailing list
> qlandkartegt-us...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
QLandkarte-users mailing list
QLandkarte-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkarte-users

Reply via email to