Comments (4)
Take a look at the macinit.ps1 and macbuild.ps1 PowerShell scripts for the commands needed to build for iOS.
from gltf-sdk.
@kokuda Thanks for pointing out, tried to run init, it stopped with the following error:
CMake Error at Build/CMake/Modules/GLTFPlatform.cmake:88 (target_link_libraries):
The keyword signature for target_link_libraries has already been used with
the target "GLTFSDK.Test". All uses of target_link_libraries with a target
must be either all-keyword or all-plain.
The uses of the keyword signature are here:
* GLTFSDK.Test/CMakeLists.txt:37 (target_link_libraries)
Call Stack (most recent call first):
GLTFSDK.Test/CMakeLists.txt:46 (AddGLTFIOSAppProperties)
-- Configuring incomplete, errors occurred!
Then started the build script and got the following:
xcodebuild: error: 'GLTFSDK.xcodeproj' does not exist.
Attempting to build package from 'GLTFSDK.macOS.CPP.nuspec'.
WARNING: NU5125: The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead.
WARNING: NU5048: The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl
Successfully created package '/Users/admin/dev/ios/lib/glTF-SDK/Built/Out/NuGet/Microsoft.glTF.macOS.CPP.0.0.0.nupkg'.
Attempting to build package from 'GLTFSDK.iOS.CPP.nuspec'.
Could not find a part of the path '/Users/admin/dev/ios/lib/glTF-SDK/Built/Out/iOS/Debug/GLTFSDK'.
So, what is the general flow ?
All I need is to use it inside iOS app (C++ part), so in my understanding I need an inc folder with all the headers and .a lib that I can add as custom framework in Xcode.
What is the fastest route to get there ?
Any hints are really appreciated.
BTW, what about prebuild nuget package ? I don't think that I need the latest version and existing package may work for me...
from gltf-sdk.
Unfortunately, it has been a long time since I ran a mac or iOS build and don't recall the details. I just remembered that those scripts existed (I think I wrote them, but that was over 3 years ago and don't remember much) and thought they would help. You could try dissecting the commands within those scripts and run just the ones you need for iOS.
Take a look at GenerateProjectsIOS() in macinit.ps1 for how to build the xcode project. I don't know if it still works but it might help. I believe that once the xcode project is generated you can build the library using xcode.
from gltf-sdk.
Dupe or at least related: #70
from gltf-sdk.
Related Issues (20)
- GLB 3D model fails to import correctly HOT 1
- Is it possible to write not interleaved buffers? HOT 1
- Exceptions necessary ? HOT 2
- Can it export quads into gltf ? HOT 2
- How to export data as ascii text in GLTF? HOT 1
- ByteOffset should be a multiple of 4 in Javascript HOT 3
- Changes - suggestion for the Serialization example HOT 4
- Procedure to upgrade for the support many Vertex Colors ? HOT 2
- Example for animation? HOT 3
- Buffer error when reaching 2GB (2.147.869.560) byteLength HOT 18
- about draco HOT 2
- clang/LLVM for Windows build failures HOT 3
- compile error, SchemaValidation HOT 1
- This repo is missing important files HOT 1
- GenerateSchemaJsonHeader.ps1 fails because D:\source\GLTFSDK does not exist
- Point size and Line width HOT 1
- googletest, POWERSHELL_PATH-NOTFOUND and other errors on Linux HOT 1
- Request for GLTF-SDK Support on Visual Studio 2022 HOT 2
- Add `ResourceWriter::Write` overload with a buffer id parameter instead of a buffer view
- Example for retrieve buffer size of bin file via ostream* pointer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltf-sdk.