GPGME trouble finding gpg executable.

Hans-Christoph Steiner hans at guardianproject.info
Tue Jan 21 16:56:23 CET 2014


"Invalid crypto engine" can mean a lot of things, I've found.  Try turning on
the debug log to get more info.  You can do it with an env var, or this function:

gpgme_set_global_flag("debug", "8:/path/to/gpgme.log");

.hc

On 01/21/2014 10:03 AM, Chris wrote:
> I posted this to the incorrect mailing list. I'm reposting here instead,
> where it actually belongs. 
> 
> I have been attempting to use GPGME for a Qt app under Windows. I'm running
> into issues with two applications that use the same code finding the gpg
> executable.
> 
> I set the engine info in both t-engine-info.c( exists in gpgme test
> directory ) and main.cpp ( exists in my Qt app directory ) applications using:
> 
> gpgme_set_engine_info(GPGME_PROTOCOL_OpenPGP,"c:\\gnupg\\gpg.exe",
> "c:\\Users\\Chris\\AppData\\Roaming\\gnupg\\");
>   gpgme_check_version (NULL);
>   err = gpgme_get_engine_info (&info);
>   printf(" version = %s \n", info->version );
>   fail_if_err (err);
> 
> The test app "t-engine-info" prints out " version = 1.4.9 ".
> My Qt app prints out " version = (null) ", 
> 
> The qt application throws a "GPGME: Invalid crypto engine" error on:
>   err = gpgme_engine_check_version (GPGME_PROTOCOL_OpenPGP);
>   fail_if_err (err);
> 
> but the t-engine-info application does not.
> 
> Why cannot it not find the executable in the my qt application but it can
> find the executable in the t-engine-info application? I've ran out of all
> possible ideas, and I am not sure what else I can try.
> 
> Any tips or solutions would be great, as I really would like to use this in
> my app.
> 
> 
> _______________________________________________
> Gnupg-devel mailing list
> Gnupg-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-devel
> 

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81



More information about the Gnupg-devel mailing list