Open jnavarrom opened 9 months ago
@jnavarrom,
Did you take a look at https://github.com/weidai11/cryptopp/blob/master/TestScripts/setenv-macos.sh?
Hi @noloader, thanks for checking this.
Yes, I took a look at this file.
I can compile cryptopp
for MacOS using setenv-macos.sh
, but I can't build cryptopp
for Catalyst using setenv-macos.sh
as it currently is. This is the main reason of this pull request: add support for building crytopp
for macOS Catalyst.
If I build cryptopp
for macOS, without adding Catalyst support, and I want to build an app (that uses cryptopp
) for Catalyst target, I won't be able to do it. Following error will happen:
libcryptopp.xcframework:1:1 While building for Mac Catalyst, no library for this platform was found in libcryptopp.xcframework
This is how the libcryptopp.xcframework
looks like:
If I build cryptopp
for Catalyst target, I will be able to run the app in Catalyst:
@jnavarrom,
Thanks.
I don't know anything about Catalyst. And I don't have any modern Apple machines for Xcode testing.
So how about creating a setenv-catalyst.sh
? Start with setenv-macos.sh
, and assume the Catalyst gear so you can do away with the extra env var.
If there are problems using it, I will point folks to you.
@noloader thanks
So how about creating a setenv-catalyst.sh?
Sure, I will create it. Thanks
setenv-catalyst.sh
created.
Hi @noloader .
Would you mind to take a look at this pull request?
I just created the setenv-catalyst.sh
based on setenv-mac.sh
.
Let me know if I need to update something.
Thanks
Allow to build
cryptopp
for macOS Catalyst, macOS Catalyst requires a specific target architecture.Examples building for x86_64 and arm64 outputs