Re: I want to update GPGDropThing and GPGFileTool

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: I want to update GPGDropThing and GPGFileTool

by Clark Sann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found an excellent ebook "Programming with GPGME and GPGAppKit on OS X" by Gordon Worley.  I think it is going to be a big help as I try to rewrite GPGDropThing and GPGFileTool using GPGME.  

However, I can't get to first base.  When I try to build the GPGME.framework, I get the following error....

Line Location gpgme.h:0: i686-apple-darwin9-gcc-4.0.1: /usr/local/include/gpgme.h: No such file or directory
Line Location gpgme.h:0: i686-apple-darwin9-gcc-4.0.1: warning: '-x objective-c-header' after last input file has no effect
Line Location gpgme.h:0: i686-apple-darwin9-gcc-4.0.1: no input files
Line Location gpgme.h:0: Command /Developer/usr/bin/gcc-4.0 failed with exit code 1

I am such a XCode newby and also a OS X newby that I can't figure out what this means.  Why should gpgme.h need to be placed in /usr/local/include?  Isn't having it in my XCode project good enough?  Also, if it does need to be put there, how do I do that?

A thought just occurred to me.  Does the Mac version of GPGME need the non-Mac version of GPGME to be installed first?  If so, how do I do that?

Thanks mucho for your help!

Clark



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl

Re: I want to update GPGDropThing and GPGFileTool

by Stéphane Corthésy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Please read the README file in MacGPGME sources.
Then forget about GPGAppKit - use only MacGPGME.
Gordon's book is very good, though a bit outdated now; it will be a good start. MacGPGME API is fully documented, and GPGTester is good to look at.
MacGPGME works with both gpg 1.x and 2.x, transparently.

Cheers,

Stéphane



Le 8 nov. 2009 à 18:48, Clark Sann <acsann@...> a écrit :

I found an excellent ebook "Programming with GPGME and GPGAppKit on OS X" by Gordon Worley.  I think it is going to be a big help as I try to rewrite GPGDropThing and GPGFileTool using GPGME.  

However, I can't get to first base.  When I try to build the GPGME.framework, I get the following error....

Line Location gpgme.h:0: i686-apple-darwin9-gcc-4.0.1: /usr/local/include/gpgme.h: No such file or directory
Line Location gpgme.h:0: i686-apple-darwin9-gcc-4.0.1: warning: '-x objective-c-header' after last input file has no effect
Line Location gpgme.h:0: i686-apple-darwin9-gcc-4.0.1: no input files
Line Location gpgme.h:0: Command /Developer/usr/bin/gcc-4.0 failed with exit code 1

I am such a XCode newby and also a OS X newby that I can't figure out what this means.  Why should gpgme.h need to be placed in /usr/local/include?  Isn't having it in my XCode project good enough?  Also, if it does need to be put there, how do I do that?

A thought just occurred to me.  Does the Mac version of GPGME need the non-Mac version of GPGME to be installed first?  If so, how do I do that?

Thanks mucho for your help!

Clark


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl

Parent Message unknown Re: I want to update GPGDropThing and GPGFileTool

by Stéphane Corthésy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Clark,

Here's an updated README not yet committed - I used it successfully on  
SL 32bits:



You're not building the right version of MacGPGME: don't download the  
packaged sources, they are too old. Do a checkout of the trunk instead.

Stéphane


On Nov 8, 2009, at 10:16 PM, Clark Sann wrote:

> Hi Stéphane
>
> I have made progress.  As you said, "read the README".  I did that  
> and discovered I had not installed gpgme and libgpg-error.  I  
> followed his steps and with a little work I now have both programs  
> installed.
>
> Now, when I try to build GPGME, rather than 1 error, I am getting 17  
> warnings and 71 linker errors.  As far as I can tell, GPGME  
> successfully compiles.
>
> I wondered if my problem is that I installed GnuPG2 rather than  
> GnuPG1.4.9.  I couldn't figure out how to uninstall  version 2 so  
> decided to install 1.4.9 in addition to 2.0.12.  I hope that did not  
> make things worse.
>
> It did not change anything, I am still getting the same number of  
> errors.
>
> I will cut and paste a few of the errors here for you to see....
>
> Warnings:
>
>    Compiling /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m    cd /
> Users/clark/Desktop/GPGME-1.0.2
>     /Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-
> length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -
> DBUILDINGGPGME -gdwarf-2 -I/Users/clark/Desktop/GPGME-1.0.2/build/
> GPGME.build/EmbDeployment/GPGME.build/GPGME.hmap -Wmost -Wno-four-
> char-constants -Wno-unknown-pragmas -F/Users/clark/Desktop/
> GPGME-1.0.2/build/EmbDeployment -I/Users/clark/Desktop/GPGME-1.0.2/
> build/EmbDeployment/include -I/Users/clark/Desktop/GPGME-1.0.2/build/
> GPGME.build/EmbDeployment/GPGME.build/DerivedSources/i386 -I/Users/
> clark/Desktop/GPGME-1.0.2/build/GPGME.build/EmbDeployment/
> GPGME.build/DerivedSources -include /var/folders/BV/
> BVGgFXGNFzuTpKuQkWARG++++TI/-Caches-/com.apple.Xcode.501/
> SharedPrecompiledHeaders/gpgme-aouxgwoqmrdfkgerrzmgzlnjsilj/gpgme.h -
> c /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m -o /Users/clark/
> Desktop/GPGME-1.0.2/build/GPGME.build/EmbDeployment/GPGME.build/
> Objects-normal/i386/GPGContext.o
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:45:2: warning:  
> #warning TODO: post distributed notification (object and userInfo  
> objects must be property lists)
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:830:2: warning:  
> #warning Only one thread at a time can call gpgme_wait => protect  
> usage with mutex!
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:1711:2: warning:  
> #warning TODO
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:2429:2: warning:  
> #warning FIXME Not sure that finger URLs start with finger:
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:2847:2: warning:  
> #warning TODO parse results and returns them in exception, if any
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:3085:2: warning:  
> #warning TEST!
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:45:2: warning:  
> #warning TODO: post distributed notification (object and userInfo  
> objects must be property lists)
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:830:2: warning:  
> #warning Only one thread at a time can call gpgme_wait => protect  
> usage with mutex!
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:1711:2: warning:  
> #warning TODO
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:2429:2: warning:  
> #warning FIXME Not sure that finger URLs start with finger:
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:2847:2: warning:  
> #warning TODO parse results and returns them in exception, if any
> /Users/clark/Desktop/GPGME-1.0.2/GPGContext.m:3085:2: warning:  
> #warning TEST!
>
> Errors:
> E
>     "_gpgme_set_textmode", referenced from:
>       -[GPGContext setUsesTextMode:] in GPGContext.o
>   "_gpgme_new", referenced from:
>       -[GPGContext init] in GPGContext.o
>   "_gpgme_get_armor", referenced from:
>       -[GPGContext usesArmor] in GPGContext.o
>   "_gpgme_op_import", referenced from:
>       -[GPGContext(GPGSynchronousOperations) importKeyData:] in  
> GPGContext.o
>   "_gpgme_data_new", referenced from:
>       -[GPGContext(GPGSynchronousOperations) decryptedData:] in  
> GPGContext.o
>       -[GPGContext(GPGSynchronousOperations)  
> verifySignedData:originalData:] in GPGContext.o
>       -[GPGContext(GPGSynchronousOperations)  
> decryptedData:signatures:] in GPGContext.o
>       -[GPGContext(GPGSynchronousOperations)  
> signedData:signatureMode:] in GPGContext.o
>       -[GPGContext(GPGSynchronousOperations)  
> encryptedData:withKeys:trustAllKeys:] in GPGContext.o
>       -[GPGContext(GPGSynchronousOperations) encryptedData:] in  
> GPGContext.o
>       -[GPGContext(GPGSynchronousOperations)  
> encryptedSignedData:withKeys:trustAllKeys:] in GPGContext.o
>       -[GPGContext(GPGSynchronousOperations) exportedKeys:] in  
> GPGContext.o
>       -[GPGData init] in GPGData.o
>   "_gpgme_cancel", referenced from:
>       -[GPGContext(GPGAsynchronousOperations) cancel] in GPGContext.o
>   "_gpgme_err_make_from_errno", referenced from:
>       -[GPGData seekToFileOffset:offsetType:] in GPGData.o
>       -[GPGData readDataOfLength:] in GPGData.o
>       -[GPGData writeData:] in GPGData.o
>       -[GPGData(GPGExtensions) availableDataLength] in GPGData.o
>       -[GPGData(GPGExtensions) isAtEnd] in GPGData.o
>       -[GPGData(GPGExtensions) availableData] in GPGData.o
>       -[GPGData(GPGExtensions) rewind] in GPGData.o
>       _GPGMakeErrorFromErrno in GPGExceptions.o
>   "_gpgme_op_keylist_ext_start", referenced from:
>       -[GPGKeyEnumerator  
> initForContext:searchPatterns:secretKeysOnly:] in GPGContext.o
>   "_gpgme_get_include_certs", referenced from:
>       -[GPGContext certificatesInclusion] in GPGContext.o
>   "_gpgme_op_delete", referenced from:
>       -[GPGContext(GPGSynchronousOperations)  
> deleteKey:evenIfSecretKey:] in GPGContext.o
>   "_gpgme_op_keylist_next", referenced from:
>       -[GPGKeyEnumerator nextObject] in GPGContext.o
>   "_gpgme_signers_enum", referenced from:
>       -[GPGSignerKeyEnumerator nextObject] in GPGContext.o
>
> Does any of this help you know what went wrong?  As you can see,  
> most of the earlier errors are in GPGContext.o.  Does this tell you  
> anything?
>
> I agree with you that once I get MacGPGME built, that I will learn a  
> lot from playing with GPGTester.  Once I get this done, maybe I can  
> update Gordon's book too.  I'm certainly willing to do all this, I  
> just need to get MacGPGME built first
>
> I appreciate any help you can provide.  I don't know where to go  
> from here.
>
> Clark
>
>
> On Nov 8, 2009, at 2:20 PM, Stéphane Corthésy wrote:
>
>> Hi,
>>
>> Please read the README file in MacGPGME sources.
>> Then forget about GPGAppKit - use only MacGPGME.
>> Gordon's book is very good, though a bit outdated now; it will be a  
>> good start. MacGPGME API is fully documented, and GPGTester is good  
>> to look at.
>> MacGPGME works with both gpg 1.x and 2.x, transparently.
>>
>> Cheers,
>>
>> Stéphane
>>
>>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl

README (11K) Download Attachment