[IGSTK-Developers] Sandbox Compilation problems.

Luis Ibanez luis.ibanez at kitware.com
Fri Sep 7 09:19:37 EDT 2007


Hi Ole,

You should add to your search path for headers the directory:

       ${IGSTKSandbox_BINARY_DIR}/SourceLatest

and should make sure that it is visited *BEFORE* the directory

       ${IGSTK_SOURCE_DIR}/Source

You can achieve this by adding to the CMakeLists.txt file of
your project the CMake command:

      INCLUDE_DIRECTORIES( BEFORE
       ${IGSTKSandbox_BINARY_DIR}/SourceLatest )

You can double check the effect by looking at the command line
that results from your "make". You should see the "SourceLatest"
directory appear before the "IGSTK/Source" directory. In fact
you should be able to *NOT* refer to IGSTK at all, and only use
the code in the Sandbos.


Please give it a try and let us know how it goes,


    Thanks


      Luis


-------------------------
Ole Vegard Solberg wrote:
> Hi Andinet and Luis,
> 
> Torleif had te leave for the weekend, but I will try to explain:
> 
> The error messages are simply:
> .../cvsStable/IGSTKSandbox201/Source/igstkObjectRepresentation.h: 31:32: 
> error: igstkSpatialObject.h: No such file or directory
> ... error: igstkTransform.h: No such file or directory
> ... error: igstkImageSpatialObject.h: No such file or directory
> ...
> 
> We have an external application that links to the Sandbox (with  cmake). 
> The problem is that the compiler don't find the header files  that are 
> placed in the  IGSTKSandbox/IGSTK/Source directory. (The  files in 
> question are the files in the Sandbox that are changed from  the IGSTK 
> version.)
> 
> As Torleif said; a simple (dirty) fix to this problem is to copy the  
> files from IGSTKSandbox/IGSTK/Source to IGSTKSandbox/Source, but I  can 
> see this resulting in problems if users forget to copy these  files 
> after updating the code from cvs.
> 
> In the dashboard, you get no errors since the tests are compiled  along 
> with the rest of the files. (In the same cmake "project").
> 
> I assume the error is some missing path-information in the cmake  setup 
> for the Sandbox, or some missing path-information in our cmake  setup.
> 
> Ole Vegard
> 
> On Sep 7, 2007, at 2:09, Luis Ibanez wrote:
> 
>>
>> Hi Torleif,
>>
>>
>> The submissions of the Sandbox to the Dashboard are currently green.
>>
>>       http://public.kitware.com/dashboard.php?name=igstk
>>
>>
>> Could you please post the exact error messages that you are getting
>> when compiling your applications ?
>>
>> That will help us to figure out what might be the source of the
>> problem.
>>
>>
>>   Thanks
>>
>>
>>
> 
> 
> 
> On Sep 7, 2007, at 2:07, Andinet Enquobahrie wrote:
> 
>> Hi Torleif,
>>
>>> Hi.
>>> For the last month or so, several users at our location have had   
>>> problems compiling applications that use the sandbox source.
>>> We have so far solved the immediate problem of compiling by  copying  
>>> headers and template files from IGSTKSandbox/IGSTK/Source  to  
>>> IGSTKSandbox/Source.
>>
>>
>>
>> What problems did they have? Please give us more details. So that  we 
>> have better understanding of the problem.
>>
>> The example applications in the sandbox compile without a problem.   
>> There is no need to manually copy the files.
>> The cmake configuration should take care of all that.
>>
>> In the dashboard, we have Sandbox build submissions from windows,  
>> unix and mac platforms and I didn't see
>> any compilation problems.
>>
>> Please give us more information
>>
>> Thanks
>>
>> -Andinet
>>
>> -- 
>> ==========================================================
>> Andinet A. Enquobahrie, PhD
>> R&D Engineer
>> Kitware Inc.
>>
>> 28 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-371-3971 x124
>> www.kitware.com
>>
>>
>> _______________________________________________
>> IGSTK-Developers mailing list
>> IGSTK-Developers at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers
> 
> 
> 


More information about the IGSTK-Developers mailing list