Hi Michela,

please always reply to the list so other users can benefit from the 
answers. I fixed the problem in the MITK CMake files in svn revision 
27214 so if you update to the latest version you can work with your 
existing tree.

Best,
Marco


On 11/03/2010 01:24 PM, Michela Schorta wrote:
> Hi Marco!
> I already tried the ITK example HelloWorld
> There I took a similar cmake file:
>
>
> # This project is designed to be built outside the Insight source tree.
> PROJECT(HelloWorld2)
>
> # Find ITK.
> FIND_PACKAGE(ITK REQUIRED)
> INCLUDE(${ITK_USE_FILE})
>
> ADD_EXECUTABLE(HelloWorld2 HelloWorld2.cpp )
>
> TARGET_LINK_LIBRARIES(HelloWorld2 ITKCommon)
>
>
> The ITK path also contains a blank and the configuration in CMake
> worked, so this is probably not the problem! I'll try it without blank
> anyway...
>
> Thank you for your help 'til now:)
>
> Best
> Michela
>
>
> Am 03.11.2010 11:28, schrieb Marco Nolden:
>> Hi,
>>
>> it looks like the mitk/CMake subdirectory is not added to the CMake
>> module path. This should happen on line 26 of the generated
>> MITKConfig.cmake file in your binary tree. This probably happens
>> because you have a blank in your path ("Program files"). I filed a bug
>> for this  http://bugs.mitk.org/show_bug.cgi?id=5912 and will commit a
>> fix soon. If there are other problems please post again or add a
>> comment to the bug.
>>
>>
>> Best
>> Marco
>>
>>
>> On 11/03/2010 10:38 AM, Michela Schorta wrote:
>>>    Hi!
>>> I'd like to build my own Step1 of the tutorial, so I wrote the following
>>> CMakeList.txt:
>>>
>>> PROJECT(Step1)
>>>
>>> CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
>>> if(COMMAND cmake_policy)
>>>      cmake_policy(SET CMP0003 OLD)
>>> endif(COMMAND cmake_policy)
>>>
>>> FIND_PACKAGE(MITK REQUIRED)
>>>
>>> MITK_USE_MODULE(QmitkExt)
>>> INCLUDE_DIRECTORIES(${ALL_INCLUDE_DIRECTORIES})
>>>
>>> FIND_PACKAGE(ITK REQUIRED)
>>> INCLUDE(${ITK_USE_FILE})
>>>
>>> FIND_PACKAGE(Qt4 REQUIRED)
>>> INCLUDE(${QT_USE_FILE})
>>> INCLUDE_DIRECTORIES(${QMITK_INCLUDE_DIRS})
>>> LINK_DIRECTORIES(${QMITK_LINK_DIRECTORIES})
>>>
>>> ADD_EXECUTABLE(Step1 Step1.cpp QtTesting.cpp)
>>> TARGET_LINK_LIBRARIES(Step1 ${QMITK_LIBRARIES} ${QT_LIBRARIES})
>>>
>>>
>>> I'm using the following versions of the programs:
>>> VS2008, CMake 2.8.2, QT4.7, VTK5.6.1, ITK 3.20, MITK svn
>>> http://svn2.mitk.org/trunk/mitk
>>> The programs are working, so is the tutorial in MITK, but by configuring
>>> CMake I get the following errors:
>>>
>>>
>>>
>>> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:138
>>> (INCLUDE):
>>>
>>> include could not find load file:
>>>
>>> MacroParseArguments
>>>
>>> Call Stack (most recent call first):
>>>
>>> C:/Program Files/MITK/bin/MITKConfig.cmake:37 (INCLUDE)
>>>
>>> CMakeLists.txt:8 (FIND_PACKAGE)
>>>
>>> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
>>> (INCLUDE):
>>>
>>> include could not find load file:
>>>
>>> MITK_ITK_Config
>>>
>>> Call Stack (most recent call first):
>>>
>>> CMakeLists.txt:10 (MITK_USE_MODULE)
>>>
>>> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
>>> (INCLUDE):
>>>
>>> include could not find load file:
>>>
>>> MITK_Poco_Config
>>>
>>> Call Stack (most recent call first):
>>>
>>> CMakeLists.txt:10 (MITK_USE_MODULE)
>>>
>>> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
>>> (INCLUDE):
>>>
>>> include could not find load file:
>>>
>>> MITK_QT_Config
>>>
>>> Call Stack (most recent call first):
>>>
>>> CMakeLists.txt:10 (MITK_USE_MODULE)
>>>
>>> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
>>> (INCLUDE):
>>>
>>> include could not find load file:
>>>
>>> MITK_QVTK_Config
>>>
>>> Call Stack (most recent call first):
>>>
>>> CMakeLists.txt:10 (MITK_USE_MODULE)
>>>
>>> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
>>> (INCLUDE):
>>>
>>> include could not find load file:
>>>
>>> MITK_VTK_Config
>>>
>>> Call Stack (most recent call first):
>>>
>>> CMakeLists.txt:10 (MITK_USE_MODULE)
>>>
>>>
>>> Does anybody know what's wrong about the file?
>>>
>>>
>>> Best regards
>>> Michela
>>
>>
>


------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to