Giter Site home page Giter Site logo

Comments (4)

kokuda avatar kokuda commented on July 3, 2024

Take a look at the macinit.ps1 and macbuild.ps1 PowerShell scripts for the commands needed to build for iOS.

from gltf-sdk.

ArMouReR avatar ArMouReR commented on July 3, 2024

@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.

kokuda avatar kokuda commented on July 3, 2024

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.

bghgary avatar bghgary commented on July 3, 2024

Dupe or at least related: #70

from gltf-sdk.

Related Issues (20)

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.