Swift for the content creation industry, metaverse, and beyond

Here you are :sunglasses:

// swift-tools-version: 5.10

dependencies: [
  .package(url: "https://github.com/wabiverse/SwiftUSD.git", from: "23.11.38")
]

Note: let's move any further issues to the issues section of that repo, since Swift forums is not a very appropriate place for issue tracking, thanks!

~ godspeed.

Tried to add an issue but do not have an active "Create Issue" button on github.

Ran the latest version but still getting the following link error:

Ptex
Undefined symbol: _deflate

Undefined symbol: _deflateEnd

Undefined symbol: deflateInit

Undefined symbol: _deflateReset

Undefined symbol: _inflate

Undefined symbol: _inflateEnd

Undefined symbol: inflateInit

Undefined symbol: _inflateReset

Linker command failed with exit code 1 (use -v to see invocation)

Did you delete everything in your .build directory and try again?

fwiw, I have begun to support the Android platform due to your wonderful Swift Android SDK, so things are moving in that direction with this initial commit on that effort.

One thing I'm finding exceedingly more annoying are the preprocessors inside the SwiftPM package, that are dependent on the Host platform doing the compiling (so its fully impossible to exclude specific source on Android in SwiftPM, have to resort to modifying the C++ itself with #if !defined(__ANDROID__) gunk), so it would probably be much easier to do this from a Linux machine; however, I have been doing the cross-compilation for Android from macOS because, well, that's just more fun :laughing:.

Anyway, thanks for all your efforts here!

I now have CI setup by the way, for building USD on:

So you should not have any issues there, your Create Issue button isn't available?

Great! :sparkler:

Not sure what you mean: you want to exclude certain C++ files from being cross-compiled to Android, but SwiftPM is not allowing this to be configured in the package manifest? You could try looking for or filing an issue for that with the SwiftPM devs.

Great, @Marc_Prud_hommeaux just added macOS support to my Android CI, reusing the Android SDK built on linux to cross-compile several Swift packages from macOS to Android then run their macOS-built tests on the Android emulator. All but one Swift package worked fine when built on macOS for Android.

If you run into any Android-specific problems, feel free to open an issue there.

No problem, good to see you trying it out.

1 Like