Guidance needed in creating mexw64 file from Matlab File Exchange source code
43 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm looking for a very simple introduction to compiling C code into a mexw64 library file. I'm not a C programmer, but I suspect all it takes is a couple of Matlab commands. Hopefully someone out there can give me guidance!
Specifically, I wish to create a .mexw64 file from source code that I found in Matlab's File Exchange called "Polygon Clipper"
The files supplied there are:
gpc.c, gpc.h, gpc_mexfile.c, gpc_mexfile.h, PolygonClip.dll, ReadMe.txt, PolygonClip_example.m, PolygonClipper_Example.png
I have 64 bit Matlab 2010b running on Win7 64 bit, with the following toolboxes installed:
* Control System Toolbox
* Data Acquisition Toolbox
* Financial Toolbox
* Image Processing Toolbox
* Neural Network Toolbox
* Optimization Toolbox
* Robust Control Toolbox
* Signal Processing Toolbox
* Simulink
* Simulink Control Design
* Statistics Toolbox
* Symbolic Math Toolbox
* System Identification Toolbox
* Wavelet Toolbox
* Aerospace Toolbox
* Aerospace Blockset
* Bioinformatics Toolbox
* Communications Blockset
* Communications Toolbox
* Curve Fitting Toolbox
* Database Toolbox
* Datafeed Toolbox
* Embedded IDE Link™ CC (for TI’s Code Composer Studio™)
* Filter Design HDL Coder™
* Filter Design Toolbox
* Fixed-Income Toolbox
* Fixed-Point Toolbox
* Fuzzy Logic Toolbox
* Genetic Algorithm and Direct Search Toolbox
* Image Acquisition Toolbox
* Instrument Control Toolbox
* MATLAB® Builder™ NE (for Microsoft® .NET Framework)
* MATLAB Compiler
* Mapping Toolbox
* Parallel Computing Toolbox™
* Partial Differential Equation Toolbox
* Real-Time Workshop
* Real-Time Workshop® Embedded Coder™
* Signal Processing Blockset
* SimEvents®
* SimHydraulics®
* SimMechanics™
* SimPowerSystems™
* Simscape™
* Simulink Fixed-Point
* Simulink HDL Coder
* Spline Toolbox
* Spreadsheet Link™ EX (for Microsoft® Excel®)
* Stateflow®
* Target Support Package™ TC2 (for TI’s C2000™ DSP)
* Target Support Package™ TC6 (for TI’s C6000™ DSP)
* Simulink 3D Animation™
* Vehicle Network Toolbox™
* xPC Target
Do I have everything needed to do this, or do I have to locate and install some sort of C compiler?
4 commentaires
Walter Roberson
le 5 Mar 2011
Matt, you can _install_ any toolbox you like, but FlexLM keeps you from _executing_ it if you do not have the proper license.
I work for a _quite_ large company, but licensing all 54 of those toolboxes would be several times the operations budget of my sub-department.
Perhaps Scott is using Academic licenses.
Réponse acceptée
Matt Fig
le 5 Mar 2011
You will need a 64-bit compiler. MS visual c++ will do the job, if you install the 64 bit version. Beware that many have indicated the 64 bit setup is tricky.
Once you have a compiler installed, do this at the command line:
mex -setup
and follow the directions.
4 commentaires
Berkan Sesen
le 6 Mar 2012
Dear Matt, Is there a more light-weight .mexw64 compiler that you know of?
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB Compiler SDK 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!