[Insight-users] Applications: installation troubles

hui zhang huiz at gradient.cis.upenn.edu
Sun Nov 21 02:08:46 EST 2004


Hi, there

I found the solution to this OSX specific problem.  the offending code 
is in the file:
"vtkFlImageViewer.cxx" in the directory 
"InsightApplications/SegmentationEditorFltkGui/EditorFltkGui"
line 89-91
#if !defined(WIN32)
         SetDisplayId( fl_display );
#endif

I got the cue to the solution from this file:
"vtkFlRenderWindowInteractor.cxx" in the directory 
"InsightApplications/Auxiliary/VtkFltk"

it is the only other file in the InsightApplications that explicitly 
use "fl_display".  and the reason it is compiled properly is because of 
its different macro construction:
line 243-245
#if !defined(WIN32) && !defined(__APPLE__)
     RenderWindow->SetDisplayId( fl_display );
#endif

once you apply the same macro construction to the offending code, the 
linking should proceed successfully.

gary



More information about the Insight-users mailing list