Effacer les filtres
Effacer les filtres

How to build a dylib for iOS?

24 vues (au cours des 30 derniers jours)
Woody Master
Woody Master le 17 Sep 2017
When using Matlab 2017a for Mac with a Simulink Model whose target is the ert_shrlib the Matlab Coder builds the dylib (Mach-O dynamic library).
1.) Is that usable on the iOS as well, or only on the OS X?
2.) If not, what could be a way to create the dynamic library for the iOS out of the genereated Matlab Code?
Thanks!

Réponses (2)

Walter Roberson
Walter Roberson le 17 Sep 2017
Yes, dylib are apparently usable on iOS 8 or later (provided they are compiled for the right processor of course.)
  3 commentaires
Walter Roberson
Walter Roberson le 18 Sep 2017
Are you planning to go through the App Store to distribute your app ?
Woody Master
Woody Master le 21 Sep 2017
Maybe that would be an easier way to distribute it.
You mentioned the dylib should be compiled for the right processor: In the Matlab Coder Configuration Parameters I have seen adjustments for the Toolchain, for the Code replacement library or for the Data exchange interface. So where should I define the processor?
Or did you mean to just generate Code only for the shrlib target and then bring that into Xcode for the real compilation into a dylib adaptable to the desired processor?

Connectez-vous pour commenter.


Woody Master
Woody Master le 8 Oct 2017
Modifié(e) : Woody Master le 8 Oct 2017
When using the Matlab/Simulink Coder created dylib and trying to integrate that into an XCode project, the following Linker Warning appears:
"...building for iOS Simulator, but linking against dylib built for OSX..."
So, I'm pretty sure that it's not possible to use the dylib directly from Matlab. Has anyone further experience on that? Maybe it will work with "Generate Code only" in Matlab/Simulink and integrate that Code thereafter into an own XCode project for compilation into a Framework...? Has anyone experience on that? Thanks,
Woody

Catégories

En savoir plus sur Embedded Coder dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by