On Wed, May 6, 2009 at 1:28 AM, Mirko Grewing <[email protected]> wrote:
> I'm trying to compile Crypto++ Universal Binary on Mac OS Leopard.
> I have to admit that the documentation is quite poor but after some
> hour spent on Google I came out with this:
>
> $ CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch
> ppc" make
>
> I'm under Intel Mac so I didn't use -DCRYPTOPP_DISABLE_ASM option.
> That builds Crypto++ with no error. When finished I run:
I would suggest that you set that flag since you won't be able to
compile assembly for the ppc architecture using intel code...  I'm
surprised 'make' actually worked out...

>
> $ sudo make install PREFIX=/usr/local/cryptopp
>
> but every time I try to compile an application (Universal Binary) that
> needs libcryptopp, I get errors about libcryptopp.a not of required
> architecture...
With this error, I suspect that the CXXFLAGS may have been ignored.
You can inspect what sort of arch was built by using 'file' on some of
the output files for cryptopp (.a probably won't reveal type).
> Did anyone figure out how to solve?

One mechanism that would probably work out best, allowing ASM for the
intel code and no-asm for the ppc code... would be to build cryptopp
separately for the ppc and intel arches, then merge those together to
be a fat binary...  don't recall exactly how the merge process goes.

-- 
Thomas Harning Jr.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to