[Insight-users] running ITK filters from Matlab: new architecture

Ramón Casero Cañas rcasero at gmail.com
Fri May 27 12:28:45 EDT 2011


On 27/05/11 17:08, Miklos Espak wrote:
> Hi,
>
> I have difficulties with building the code. At first, the project root
> does not have a CMakeLists.txt file. I created one with the following
> lines:
>
> set(ITK_DIR ...)
> set(MATLAB_ROOT ...)
> add_subdirectory(cpp/src)
> add_subdirectory(matlab)
>
> At second, the matlab directory does not contain a FindMatlab.cmake
> file. Could you commit it to the repository?


Hi Miklos, thanks for your email, and giving this a try.

First a quick note, we tried, and it's not going to compile in Windows 
due to a couple of small things in FindMatlab.cmake and a function from 
stdlib.h that Windows doesn't like.

I'm waiting to get a virtual machine installed to fix the Windows build. 
But if you are working with Linux, it should hopefully work.

I wrote some notes for building and installing the code:

http://code.google.com/p/gerardus/wiki/ItkForMatlab

You don't need to create a CMakeLists.txt file in the root directory (if 
by that you mean the "gerardus" directory).

The CMakeLists.txt you need is in directory gerardus/matlab. (I just 
realized this was wrong in my notes).

Also, CMake provides a FindMatlab.cmake with the standard installation 
(at least mine in Ubuntu does, and the one we installed in Windows does 
too), so we don't need to put it in Gerardus.

Please let me know if any of this helps!

Best regards,

Ramon.


-- 
Dr. Ramón Casero Cañas

Computational Biology
Computing Laboratory
University of Oxford
Wolfson Building, Parks Rd
Oxford OX1 3QD

tlf     +44 (0) 1865 610737
web     http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas
photos  http://www.flickr.com/photos/rcasero/


More information about the Insight-users mailing list