How do you build your MEX function<br><br>Did you declare the function 'mexFunction' as following?<br><br>void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])<br><br>The following wiki page gives you details on the way to compile a MEX function which use VTK: <a href="http://www.vtk.org/Wiki/VTK/VTKMatlab">http://www.vtk.org/Wiki/VTK/VTKMatlab</a><br>
<br><div class="gmail_quote">On Tue, Aug 14, 2012 at 12:41 PM, 32sthide <span dir="ltr"><<a href="mailto:32sthide@gmail.com" target="_blank">32sthide@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys, if someone could help me i'd be very happy.<br>
<br>
I compiled a mex file, and got a file.mexa64, but when i run it i get<br>
<br>
Mex file entry point is missing. Please check the (case-sensitive)<br>
spelling of mexFunction (for C MEX-files), or the (case-insensitive)<br>
spelling of MEXFUNCTION (for FORTRAN MEX-files).<br>
??? Invalid MEX-file '/home/matt/Desktop/PlaneVolumeMex/planevolume.mexa64':<br>
<br>
I only compile a cxx file that works outsite matlab in a vtk runnig normal<br>
way.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Running-a-mex-file-tp5715234.html" target="_blank">http://vtk.1045678.n5.nabble.com/Running-a-mex-file-tp5715234.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>