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: Kevin McDonnell (kevin.mcdonnellgmail.com)
Date: Fri Feb 03 2006 - 17:48:11 CST


Thanks for the link and the command, I was able to get the code.

OK, this is painful. Looks like there's an issue with a predefined macro
__COREFOUNDATION_CFPLUGINCOM__

if you look in the PCSC.framework wintypes.h file you'll see that some
of the type
definitions are protected by the __COREFOUNDATION_CFPLUGINCOM__ macro.
This macro is defined on the compile line for the projects, presumably
to enable these type definitions, however the
CoreFoundation/CFPluginCOM header file (which defines IUNKNOWN_C_GUTS)
doesn't get processed as it is guarded by the same define :(

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.

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

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

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.

Hope this helps,

K.

On 2/3/06, Ludovic Rousseau <ludovic.rousseaugmail.com> wrote:
> On 02/02/06, Kevin McDonnell <kevin.mcdonnellgmail.com> wrote:
> > How do I check out the code to try and compile it. I just installed
> > SVN on my mac, but can't figure out how to get the code.
>
> It is documented on [1]. You need to use something like:
> $ svn co svn://svn.debian.org/muscleapps/
>
> Thanks for helping,
>
> [1] http://svn.debian.org/
>
> --
> Dr. Ludovic Rousseau
>
> _______________________________________________
> Muscle mailing list
> Musclelists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle
>

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