[Vv] trying to install vv on MacOSX yosemite: ITK problem

Simon Rit simon.rit at creatis.insa-lyon.fr
Fri Apr 24 16:42:13 CEST 2015


Hi,
Thanks for sharing. I don't know why I did not run into this. What I do is:
1/ Clone VTK
git clone git://vtk.org/VTK.git
2/ Go to the laste v5 release
git checkout v5.10.1
3/ Compile with clang
Is this a VTK version problem? I enabled the default + QT but I don't think
I disabled anything.

For VV/CLITK, I enabled Module_ITKReview in ITK, maybe that's the trick?
I wish you only good surprises from now on!
Simon

On Fri, Apr 24, 2015 at 4:10 PM, David Boersma <david.boersma at physics.uu.se>
wrote:

> Hi Simon,
>
> It took a while, but now vv compiles for me on MacOSX Yosemite.
> Actually I failed to install VTK 5.10.1, I got a strange linking issue
> that is described here, it popped up on Mavericks already, it seems:
>
> http://vtk.1045678.n5.nabble.com/VTK-installation-issue-td5724089.html
>
> David E DeMarle seems to have fixed the issue and suggested (scroll down
> to about 80% of that page) that we should use the release-5.10 branch from
> git, instead of the official 5.10.1 tarball:
>
> http://www.vtk.org/gitweb?p=VTK.git;a=shortlog;h=refs/heads/release-5.10
>
> And that worked for me. (Actually I used the "snapshot" link to get a
> tarball of the 2014-10-02 version, that seemed much easier than trying to
> concoct a git hocuspocus incantation to get this branch.)
>
> I am wondering why you did not run into this. Are you maybe using gcc
> instead of clang? Or maybe the offending bits are optional code which I
> happened to have enabled in ccmake, but you disabled it?
>
> Then I used ITK 4.7.1, which mostly worked, except that for some reason
> not all header files were copied to the install directory, and one of the
> vv programs needed them. After copying four ITK header files from the
> source directory to the install directory, vv got built successfully, after
> one more fix: I had to rename the ERR_SUCCESS enum in
> tools/clitkPadImageGenericFilter.h because that happens to be a macro
> #defined in a system include file:
>
> ########################################################################
> In file included from
> /Users/montecarlo/Software/Sarrut/vv/tools/clitkPadImage.cxx:3:
> /Users/montecarlo/Software/Sarrut/vv/tools/clitkPadImageGenericFilter.h:38:7:
> error: expected
>       identifier
>       ERR_SUCCESS = 0,
>       ^
> /usr/include/mach/error.h:79:22: note: expanded from macro 'ERR_SUCCESS'
> #define ERR_SUCCESS             (mach_error_t)0
> ########################################################################
>
> Renaming the enum in the header file and in the few places where it wqs
> actually used solved this problem.
>
> I also built vv on a linux machine (ubuntu 14.04). There I could use VTK
> 5.10.1 without major problems, but I had the same header file issue with
> ITK (with the same easy fix).
>
> I did not yet try *running* vv on either linux or MacOSX.
> That will probably come with new challenges & surprises. :)
>
> Thanks,
> /DavidB
>
> Simon Rit skrev den 17/04/2015 14:29:
>
>> Hi,
>> I compile manually on MacOS Yosemite (without homebrew) without any
>> problem (VTK 5.10.1 and ITK v4.7.1). I'm not sure what could be the
>> cause of the problem but you should use the HEAD version, not a release
>> (something on our todo list).
>> We still use vv a lot but haven't put much efforts in its development
>> lately. But it is definitely not dead and you're welcome to contribute.
>> Simon
>>
>> On Fri, Apr 17, 2015 at 2:02 PM, David Boersma
>> <david.boersma at physics.uu.se <mailto:david.boersma at physics.uu.se>> wrote:
>>
>>     Hello vv!
>>
>>     I am trying to install vv on a Mac, following the homebrew
>> instructions.
>>     The first part (brew install vtk --qt) worked well, the second part
>>     failed. With the --HEAD option I ran into an error saying that the
>>     git server suddenly broke contact. Repeating the install command did
>>     not fix this. So I decided to try the release version instead
>>     (omitting the --HEAD flag). The download part worked, and 30% of the
>>     compile, but then the build failed because the "itkAnalyzeImageIO.h"
>>     header file is not found. The insight toolkit is installed
>>     (homebrew), but it is version 4.7, maybe that is too new? The vv
>>     says that itk should be >=3.2, would it help if I try to install the
>>     latest 3.x version of ITK?
>>
>>     Also I see that there is not much recent activity on vv. Is this
>>     software still alive and healthy, with a sufficiently large crowd of
>>     developers and users? I am new in radiation therapy & medical
>>     imaging and I need to learn about image registration. I am coming
>>     from a field where we do everything with open source software, so I
>>     think I would feel more at home with vv than with some closed source
>>     medical imaging program.
>>
>>     I have a linux server available too (ubuntu 14.04, 12 cores, 24GiB
>>     RAM, and iirc an NVIDIA quadro 600 graphics card), will try to build
>>     vv on that machine next week.
>>
>>     Thanks!
>>     David Boersma
>>     _______________________________________________
>>     vv mailing list
>>     vv at creatis.insa-lyon.fr <mailto:vv at creatis.insa-lyon.fr>
>>     http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>>
>>
>>
>>
>> _______________________________________________
>> vv mailing list
>> vv at creatis.insa-lyon.fr
>> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>>
>>  _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20150424/520925c4/attachment.html>


More information about the vv mailing list