[IGSTK-Users] errors building IGSTK 3.0 using Visual C++ .NET 2002

Laurent Paul Laurent.Paul at uclouvain.be
Fri Feb 6 05:04:41 EST 2009


Dear Anka, dear Patrick,

I get the IGSTK CVS version. I still have the same build errors:

- In igstkCircularSimulatedTracker, l.146
Use "SimulatedTracker::ResultType" as return type. It is a protected 
member but should be accessible since CircularSimulatedTracker inherits 
from SimulatedTracker in a public fashion. BTW, CircularSimulatedTracker 
has its own ResultType. Should use this one to avoid the error?

- Some errors are related to the calling of Initialize method from 
CoordinateSystemTransformToResult class. The compiler seems unable to 
deduce which of the two definitions provided in 
CoordinateSystemTransformToResult.h use... I guess it tries to use the 
template definition while it should use the "classical" definition :  
void Initialize(const Transform& transform, const CoordinateSystem* 
source, const CoordinateSystem* destination);

No more problem linking FLTK.
Thanks again!

Laurent.



Anka Kochanowska a écrit :
> Hi!
> I have not removed the links, so I did not have any build problem.
> Anka
>
>
> Laurent Paul wrote:
>> Hi Patrick and Anka,
>>
>> You are right, I forgot that the version I currently used is not 
>> built using CMake. I have no longer the error.
>> However, can you confirm that the CVS version of IGSTK will avoid the 
>> building errors I reported?
>>
>> Thanks for your support.
>>
>> Laurent.
>>
>>
>>
>>
>>
>>  
>>> Hi Laurent,
>>>
>>> Anka is correct about the symbolic link. You are probably not using 
>>> CMake to build the FLTK library.
>>>
>>> Solution: use CMake to generate the makefile for your fltk library 
>>> and build it from scratch. CMake will create the
>>>     
>> correct correct symbolic link to handle the upper and lower case 
>> extension issue.
>>  
>>> Thank you,
>>>
>>> Patrick
>>>
>>>
>>> Anka Kochanowska wrote:
>>>    
>>>> Hi!
>>>> I had the problem with FL/Fl.H and  FL/Fl_Window.H beacause in the 
>>>> release 3.0 some files  include FL/Fl.h and
>>>>       
>> FL/Fl_Window.h.
>>  
>>>> Simple fix - symbolic link
>>>> (in the FL directory ln -s Fl.H Fl.h)
>>>> FLTK manual says:
>>>>    Header Files
>>>> The proper way to include FLTK header files is:
>>>>      #include <FL/Fl_xyz.H>
>>>> * Microsoft Windows developers please note:* case *is* significant 
>>>> under other operating systems, and the C
>>>>       
>> standard uses the forward slash (/) to separate directories. / Do not 
>> do any of the following:/
>>  
>>>>      #include <FL\Fl_xyz.H>
>>>>      #include <fl/fl_xyz.h>
>>>>      #include <Fl/fl_xyz.h
>>>> I id not have other errors. I am not using anymore the  release 3.0 
>>>> but the latest code from CVS.
>>>> Anka
>>>> Laurent Paul wrote:
>>>>      
>>>>> Dear Users,
>>>>> I have some problems building IGSTK 3.0. Options: No testing, no 
>>>>> documentation, no examples, don't use FLTK
>>>>> I have just built ITK 3.4. I have VTK 5.0.3, CMake 2.4 patch 7. My 
>>>>> system is:
>>>>> Windows XP pro 32 bits
>>>>> Visual C++ .net 2002 (Service Pack 1)
>>>>> Here are the 9 compilation errors (sorry in french ;-) ):
>>>>> c:\lib\IGSTK-3.0\Source\igstkCircularSimulatedTracker.cxx(146): 
>>>>> error C2248: 'igstk::SimulatedTracker::ResultType'
>>>>>         
>> : impossible d'accéder à protected typedef déclaré(e) dans la classe 
>> 'igstk::SimulatedTracker'
>> c:\lib\IGSTK-3.0\Source\igstkCircularSimulatedTracker.cxx(146): error 
>> C2248: 'igstk::SimulatedTracker::ResultType'
>> : impossible d'accéder à protected typedef déclaré(e) dans la classe 
>> 'igstk::SimulatedTracker'
>>  
>>>>>      c:\lib\IGSTK-3.0\Source\igstkSimulatedTracker.h(57) : voir la
>>>>> déclaration de 'igstk::SimulatedTracker::ResultType'
>>>>>      c:\lib\IGSTK-3.0\Source\igstkSimulatedTracker.h(41) : voir la
>>>>> déclaration de 'igstk::SimulatedTracker'
>>>>> c:\lib\IGSTK-3.0\Source\igstkCoordinateSystem.cxx(423): error 
>>>>> C2784: 'void
>>>>>         
>> igstk::CoordinateSystemTransformToResult::Initialize(const 
>> igstk::Transform &,const TSource *,const TDestination
>> *)' : impossible de déduire l'argument de modèle de 'const  *' à 
>> partir de
>>  
>>>>> 'igstk::CoordinateSystem::ConstPointer'
>>>>> c:\lib\IGSTK-3.0\Source\igstkImageSpatialObject.txx(234): error 
>>>>> C2784: 'void
>>>>>         
>> igstk::CoordinateSystemTransformToResult::Initialize(const 
>> igstk::Transform &,const TSource *,const TDestination
>> *)' : impossible de déduire l'argument de modèle de 'const  *' à 
>> partir de
>>  
>>>>> 'igstk::CoordinateSystem::Pointer'
>>>>> c:\lib\IGSTK-3.0\Source\igstkView.cxx(412): error C2784: 'void
>>>>>         
>> igstk::CoordinateSystemTransformToResult::Initialize(const
>>  
>>>>> igstk::Transform &,const TSource *,const TDestination *)' : 
>>>>> impossible de déduire l'argument de modèle de 'const         
>> *' à partir de
>>  
>>>>> 'igstk::CoordinateSystem::Pointer'
>>>>> c:\lib\IGSTK-3.0\Source\igstkLandmark3DRegistration.cxx(618): 
>>>>> error C2784: 'void
>>>>> igstk::CoordinateSystemTransformToResult::Initialize(const
>>>>> igstk::Transform &,const TSource *,const TDestination *)' : 
>>>>> impossible de déduire l'argument de modèle de 'const         
>> *' à partir de
>>  
>>>>> 'igstk::CoordinateSystem::Pointer'
>>>>> c:\lib\IGSTK-3.0\Source\igstkLandmark3DRegistration.cxx(654): 
>>>>> error C2784: 'void
>>>>> igstk::CoordinateSystemTransformToResult::Initialize(const
>>>>> igstk::Transform &,const TSource *,const TDestination *)' : 
>>>>> impossible de déduire l'argument de modèle de 'const         
>> *' à partir de
>>  
>>>>> 'igstk::CoordinateSystem::Pointer'
>>>>> c:\lib\IGSTK-3.0\Source\igstkImageSpatialObject.txx(234): error 
>>>>> C2784: 'void
>>>>>         
>> igstk::CoordinateSystemTransformToResult::Initialize(const 
>> igstk::Transform &,const TSource *,const TDestination
>> *)' : impossible de déduire l'argument de modèle de 'const  *' à 
>> partir de
>>  
>>>>> 'igstk::CoordinateSystem::Pointer'
>>>>> c:\lib\IGSTK-3.0\Source\igstkImageSpatialObject.txx(234): error 
>>>>> C2784: 'void
>>>>>         
>> igstk::CoordinateSystemTransformToResult::Initialize(const 
>> igstk::Transform &,const TSource *,const TDestination
>> *)' : impossible de déduire l'argument de modèle de 'const  *' à 
>> partir de
>>  
>>>>> 'igstk::CoordinateSystem::Pointer'
>>>>> Besides, I also tried to build linking FLTK but my compiler 
>>>>> doesn't find FL/Fl.H. Path to the the include dir is
>>>>>         
>> well set. Quite strange since I use FLTK since several years... Never 
>> had that kind of error. I tried using FLTK
>> 1.1.7 and FLTK 1.1.6 with no success....
>>  
>>>>> Please, is someone can help me to build it!
>>>>> Many thanks,
>>>>> Laurent.
>>>>> _______________________________________________
>>>>> IGSTK-Users mailing list
>>>>> IGSTK-Users at public.kitware.com
>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>>>>>         
>>>> _______________________________________________
>>>> IGSTK-Users mailing list
>>>> IGSTK-Users at public.kitware.com
>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>>>>       
>>
>>
>>
>>
>>   



More information about the IGSTK-Users mailing list