OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Muscle] (re)compilation of MacAPDU and CocoaCard under Mac OS X

From: Ludovic Rousseau (ludovic.rousseaugmail.com)
Date: Mon Feb 06 2006 - 05:01:54 CST


On 04/02/06, Kevin McDonnell <kevin.mcdonnellgmail.com> wrote:
> OK, this is painful. Looks like there's an issue with a predefined macro
> __COREFOUNDATION_CFPLUGINCOM__

> To work around this:
>
> 1) Remove __COREFOUNDATION_CFPLUGINCOM__ from the command line for
> building the target. I had to upgrade all the targets to be native and
> then change the BUILD rules for each target to not include that define
> on the command line. Select the upgraded target in the project window,
> click on show info, select the build tab and then scroll down to
> PreProcessor Macros, pretty much at the end. Click edit to remove the
> define.

done

> 2) Before including a header that uses any PCSC you must manually:
> #import <CoreFoundation/CFPlugInCOM.h>
> For MacAPDU that means adding it as the first line in ApduController.h

done

> This makes the code compile albeit with 8 warnings. I haven't tried running it.

I commited some changes in subversion. I can compile the project but
when I execute it:
2006-02-06 11:58:04.110 MacAPDU[4747] An uncaught exception was raised
2006-02-06 11:58:04.111 MacAPDU[4747] *** NSUnarchiver: inconsistency
between written and read data for object 0x31cdd0
2006-02-06 11:58:04.111 MacAPDU[4747] *** Uncaught exception:
<NSArchiverArchiveInconsistency> *** NSUnarchiver: inconsistency
between written and read data for object 0x31cdd0

MacAPDU has exited due to signal 5 (SIGTRAP).

> When I tried CocoaCard I got an error for a missing include file:
> <SecurityHICocoa/KCCocoaCInterface.h> it looks like the whole
> SecurityHICocoa framework is missing. I've no idea what's going on
> there, you may need to check the developer release notes from Apple to
> see if that has been migrated to something else.

I just commented out the .h so source file compiles but I have a fatal error:
 Tool:0: Command /Developer/Private/jam failed with exit code 1

According to [1] it is because the project uses jam instead of native targets.
I don't know yet how to upgrade to "native targets" :-(

We are progressing :-}
Thanks for your help,

[1] http://www.codecomments.com/MAC_Programming_help/message755845.html

--
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle