GithubHelp home page GithubHelp logo

ndreca / assimp Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 14.79 MB

Assimp as Swift Package & CocoaPods

License: Other

Ruby 0.03% Objective-C 0.02% C 15.85% C++ 84.09% Swift 0.01%
assimp swift cocoapods swiftpackage

assimp's Introduction

Assimp as Swift Package and CocoaPod

The umbrella header contains both import and export features so takes some time to compile. A prebuilt binary xcframework (for iOS & Catalyst only) is wrapped as swift package, and works in XCode 12 Beta only. This approach is experimental and has some issues with code signing.

https://github.com/assimp/assimp

CocoaPods

  pod 'Assimp',  :git => 'https://github.com/ndreca/Assimp.git'

SwiftPackage

  .package(name: "Assimp", url: "https://github.com/ndreca/Assimp.git", from: "5.0.2"),

assimp's People

Contributors

johndpope avatar ndreca avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

assimp's Issues

any ideas on how to fix this? struct ASSIMP_API aiNode

Screen Shot 2020-08-11 at 11 26 05 am

Type aiNode - has incompatible definitions in different translation units

I tried setting
c++ dialect to GNU 11
C dialect to GNU99

project sample here
https://github.com/johndpope/demo-unistroy/tree/assimpPodfile

UPDATE
digging deeper

/Users/johndpope/Library/Developer/Xcode/DerivedData/demo-uni-fnkznoltdwylbxercztvvzgvvcgl/Build/Products/Debug-iphoneos/Assimp/Assimp.framework/Headers/scene.h:80:19: error: type 'struct aiNode' has incompatible definitions in different translation units
struct ASSIMP_API aiNode
^
/Users/johndpope/Library/Developer/Xcode/DerivedData/demo-uni-fnkznoltdwylbxercztvvzgvvcgl/Build/Products/Debug-iphoneos/Assimp/Assimp.framework/Headers/scene.h:110:22: note: field 'mParent' has type 'struct aiNode ' here
C_STRUCT aiNode
mParent;
^
/Users/johndpope/Library/Developer/Xcode/DerivedData/demo-uni-fnkznoltdwylbxercztvvzgvvcgl/Build/Products/Debug-iphoneos/Assimp/Assimp.framework/Headers/scene.h:110:22: note: field 'mParent' has type 'struct aiNode ' here
C_STRUCT aiNode mParent;

Help loading data from Bitmoji Games

Hi all,

Thanks for this re-packaging. I was wondering if you could help me. I am hitting a bitmoji endpoint to grab a 3D model and it returns a json payload that I want to use Assimp to render as a .scn file for SceneKit. Here is the request:

curl --location --request GET 'https://bitmoji.api.snapchat.com/bitmoji-for-games/model?avatar_id=AWs1WkEzTr6MJQIg_S21PrRy5APnrQ&lod=3' \
--header 'Accept-Encoding: gzip, deflate' \
--header 'Authorization: Bearer eyJpc3MiOiJodHRwczpcL1wvYWNjb3VudHMuc25hcGNoYXQuY29tXC9hY2NvdW50c1wvb2F1dGgyXC90b2tlbiIsInR5cCI6IkpXVCIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIiLCJraWQiOiJhY2Nlc3MtdG9rZW4tYTEyOGNiYy1oczI1Ni4wIn0..v6q5L1w1yPYoAG4aML0Ysg.tQ19EdpBEDuxQ9R4vfIKydjLrVq5gYFrR83pnU2T5Eir070S7H6ypvYiDQJaAso1CIGIUtxwcEuz7EoZv8DXS8GlMe9_v4Kme91cUWozLWJpfftRd41Qe5QibrNbE6L-C8iaXnelIjPDSKpdgDriRWLsBjO6zzd0OZp9Wg8_mePlnyJK3lxwLReAP5LgytJFbaA-134NECgBgoTFWheLQRUoy0igzHzMob-KnxbH7H-8GaXIbhFFHk3ueD4s9WDt43pOHZ5quFBHCrgWR_MjzYWYtmeSKF4hTLaS_BD13l-zIIJ57SxgPuf7A_uzQegDfTE1qrefiOihlmAD0yWUD1vgg4UvMULy6yYGjAhhOochPmiJnUnjB4MQFbUwzWaH1UwpK0HbW6wv7FnQ3zruiU542goY-ScrGpMVltMWgc2KbIoOc9m2QeMCo2O4yeJaBt71-OtLYLkDu51x-UL1U81dxvZOg2C8uAOE9BJpwY6NI--j5r2JLvSA0TOOuxUNE0wiCh2nFTzqNsmYQFMG_YlotQl0_jFogL_6n2QTVK0-cnmZytQjakkAsrzrRywmicYhORHmodJOmfSGvn10V_8yyFTgcIhVBWbvS4UsKKVRzebzCRZMwuLscPHwstIPVRwDuSFlK0koC1OM3YfgHfy0Hbs99tHIKp4-xRsdjeSJmP5YEbuSowStyir5MZWpJO8-1H7fQ_T9JlyO3emxGAH-jnE_NfHL6tipC8gnBpkVMg6dk0kuQlMWFisavfTA7qPXPPNlXkWO56fM7LfcgNheeXF2CkvSd1FxnkI9P3uQrWMU8Z8Nqw72GOZko839zty-cgnbCzwOUi7kMuEvxj4J0kjUQ0f-BdT54J2jxEkA3fyeb2ka4hpnLQrwIuG5NXXC3Y0hACdvyHwj3UKQ-Q.82VVHYeZ-YOACWURDd33nQ'

Do you have any idea how I can use this JSON payload with Assimp to create a .scn file?

Thanks!

No code signature found error

Hello, I installed your package like a package to empty app, after that I tried to run the app on my Iphone. It built well, but then I got the "Unable to install "e"" error. Details:

Details

Details

Unable to install "e"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
--
No code signature found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE800801C)";
    "com.apple.dtdevicekit.stacktrace" = (
	0   DTDeviceKitBase                     0x00000001238ae93f DTDKCreateNSErrorFromAMDErrorCode + 220
	1   DTDeviceKitBase                     0x00000001238ed124 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
	2   DVTFoundation                       0x00000001070a1b53 DVTInvokeWithStrongOwnership + 71
	3   DTDeviceKitBase                     0x00000001238ece65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
	4   IDEiOSSupportCore                   0x000000012375dd28 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
	5   DVTFoundation                       0x00000001071d02ba __DVT_CALLING_CLIENT_BLOCK__ + 7
	6   DVTFoundation                       0x00000001071d1edc __DVTDispatchAsync_block_invoke + 1191
	7   libdispatch.dylib                   0x00007fff72cdd6c4 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x00007fff72cde658 _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x00007fff72ce3c44 _dispatch_lane_serial_drain + 597
	10  libdispatch.dylib                   0x00007fff72ce45d6 _dispatch_lane_invoke + 363
	11  libdispatch.dylib                   0x00007fff72cedc09 _dispatch_workloop_worker_thread + 596
	12  libsystem_pthread.dylib             0x00007fff72f38a3d _pthread_wqthread + 290
	13  libsystem_pthread.dylib             0x00007fff72f37b77 start_wqthread + 15
);
}
--

System Information

macOS Version 10.15.5 (Build 19F101)
Xcode 12.0 (17219)

What could be the problem? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.