[vtkusers] Running a mex file

Arnaud BARRE arnaud.barre at gmail.com
Tue Aug 14 08:01:42 EDT 2012


How do you build your MEX function

Did you declare the function 'mexFunction' as following?

void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])

The following wiki page gives you details on the way to compile a MEX
function which use VTK: http://www.vtk.org/Wiki/VTK/VTKMatlab

On Tue, Aug 14, 2012 at 12:41 PM, 32sthide <32sthide at gmail.com> wrote:

> Hi guys, if someone could help me i'd be very happy.
>
> I compiled a mex file, and got a file.mexa64, but when i run it i get
>
> Mex file entry point is missing.  Please check the (case-sensitive)
> spelling of mexFunction (for C MEX-files), or the (case-insensitive)
> spelling of MEXFUNCTION (for FORTRAN MEX-files).
> ??? Invalid MEX-file
> '/home/matt/Desktop/PlaneVolumeMex/planevolume.mexa64':
>
> I only compile a cxx file that works outsite matlab in a vtk runnig normal
> way.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Running-a-mex-file-tp5715234.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120814/f82ff849/attachment.htm>


More information about the vtkusers mailing list