<div dir="ltr">You will also be interested in this branch, in which Jameson restored VTK's matlab interface, which was lost in 6.0.<div>* <a href="http://review.source.kitware.com/#/c/16043/">http://review.source.kitware.com/#/c/16043/</a><br>

</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>


<br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 4:14 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@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 Bernard,<br>
<br>
As you have rightly guessed, the libraries vtkCommon, vtkRendering,<br>
etc. no longer exist in VTK 6.  The minimal set of libraries that you<br>
need for VTK 6 are probably the following:<br>
<br>
vtkCommonCore<br>
vtkCommonDataModel<br>
vtkRenderingCore<br>
vtkRenderingOpenGL<br>
vtkRenderingFreeTypeOpenGL<br>
vtkInteractionStyle<br>
<br>
 - David<br>
<div><div class="h5"><br>
<br>
On Wed, Aug 6, 2014 at 11:13 AM, Meehan, Bernard <<a href="mailto:MEEHANBT@nv.doe.gov">MEEHANBT@nv.doe.gov</a>> wrote:<br>
> I've tried to get a couple of tutorials built using CMake and haven't had a<br>
> whole lot of luck ...<br>
><br>
> <a href="http://www.cmake.org/Wiki/CMake/MatlabMex" target="_blank">http://www.cmake.org/Wiki/CMake/MatlabMex</a><br>
> <a href="http://www.mathworks.com/matlabcentral/fileexchange/19638-visualization-toolkit--vtk--mex-interface" target="_blank">http://www.mathworks.com/matlabcentral/fileexchange/19638-visualization-toolkit--vtk--mex-interface</a><br>


> <a href="http://www.kitware.com/media/html/MATLABAndGNURIntegrationWithVTK.html" target="_blank">http://www.kitware.com/media/html/MATLABAndGNURIntegrationWithVTK.html</a><br>
><br>
> I figured that I might try to do it by hand so to speak - just to prove to<br>
> myself that I could get it to work. I used this as a test file (does nothing<br>
> on purpose):<br>
> #include "mex.h"<br>
><br>
> #include <vtkSmartPointer.h><br>
> #include <vtkSphereSource.h><br>
> #define VTK_CREATE(type, name) \<br>
>   vtkSmartPointer<type> name = vtkSmartPointer<type>::New()<br>
><br>
> void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])<br>
> {<br>
>   mexPrintf("Hi there!\n");<br>
>   VTK_CREATE(vtkSphereSource, source);<br>
> }<br>
><br>
> And I tried to compile it with:<br>
> #!/bin/sh<br>
> MEX=/Applications/MATLAB_R2013b.app/bin/mex<br>
> $MEX -I/Users/meehanbt/VTK/include/vtk-6.1/ hello.cxx<br>
> -L/Users/meehanbt/VTK/lib/ -lvtkCommon -lvtkRendering<br>
><br>
> Obviously, for VTK 6.1 - the libraries are much more finely grained ... and<br>
> I just did a copy/paste from a webpage somewhere. Trying to build the simple<br>
> program gives:<br>
> ld: library not found for -lvtkCommon<br>
> clang: error: linker command failed with exit code 1 (use -v to see<br>
> invocation)<br>
><br>
>     mex: link of ' "hello.mexmaci64"' failed.<br>
><br>
> Does anyone have any advice for how I would go about making a simple data<br>
> display window or something like that as a MEX file?<br>
</div></div>_______________________________________________<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://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>