How should I use the specified compiler to compile and generate dynamic libraries when I use codegen in ubuntu
Afficher commentaires plus anciens
I need to use another version of g++ to generate the required library files, which are placed in the /opt/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin path. What should I do to ensure that I can get the library files that can run on the aarch64 platform after executing the following code:
cfg = coder.config('lib');
cfg.TargetLang = 'C++';
cfg.DeepLearningConfig = coder.DeepLearningConfig('TargetLibrary', 'none');
inputType = coder.typeof(single(0), [1024, 2, 1]);
codegen -config cfg myNetPredict -args {inputType} -report
PS:Now I run CC = mex.getCompilerConfigurations and CC(1)output as follow:
Name: 'g++'
Manufacturer: 'GNU'
Language: 'C++'
Version: '5.4.0'
Location: '/usr/bin/g++'
ShortName: 'g++'
Priority: 'A'
Details: [1×1 mex.CompilerConfigurationDetails]
LinkerName: '/usr/bin/g++'
LinkerVersion: ''
MexOpt: '/home/test/.matlab/R2024a/mex_C++_glnxa64.xml'
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Generating Code dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!