Hi Taisho,

VTK 6.2 is included in the MITK superbuild and therefore you don’t have to 
build it yourself as long as you don’t need any special options enabled? If you 
still need to build VTK manually, please make sure to configure VTK as close as 
possible to MITK’s VTK build script. We also apply a patch to VTK. See the 
following two files for that purpose:

CMakeExternals/VTK.cmake
CMakeExternals/VTK-6.2.0.patch

Otherwise, please follow the build instructions of the Developer Tutorial: 
http://www.mitk.org/wiki/Developer_Tutorial

Best regards,
Stefan

From: Hirokatsu Watanabe [mailto:lingua.franca....@gmail.com]
Sent: Freitag, 15. Januar 2016 10:37
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] Problem for building MITK with VTK6.2.0 
(vtkTestingRendering is not available)

Hi there,

I have a problem for building MITK with VTK6.2.0.


My building environment is bellow:

- Ubuntu 14.04
- Use VTK6.2.0
- Use ITK4.8.2
- Use Boost


And my cmake options for building VTK is bellow:

cmake -DVTK_QT_VERSION:STRING=5 \
      -DQT_QMAKE_EXECUTABLE:PATH=path/to/Qt5/gcc_64/bin/qmake \
      -DCMAKE_PREFIX_PATH:PATH=path/to/Qt5/gcc_64/lib/cmake  \
      -DVTK_Group_Qt:BOOL=ON \
      -DVTK_USE_ANSI_STDLIB:BOOL=ON \
      -DBUILD_DOCUMENTATION:BOOL=OFF \
      -DBUILD_EXAMPLES:BOOL=OFF \
      -DBUILD_SHARED_LIBS:BOOL=ON \
      -DBUILD_TESTING:BOOL=OFF \
      -DVTK_USE_BOOST:BOOL=ON \
      -DVTK_USE_GUISUPPORT:BOOL=ON \
      -DVTK_USE_QT:BOOL=ON \
      -DVTK_USE_QTCHARTS:BOOL=ON \
      -DBoost_INCLUDE_DIR:PATH=path/to/boost \
      -DVTK_QT_USE_WEBKIT:BOOL=OFF \


And my cmake options for building MITK is bellow:

cmake -DCMAKE_PREFIX_PATH:PATH=path/to/Qt5/gcc_64/ \
      -DVTK_DIR=path/t/VTK-build \
      -DModule_ITKVtkGlue:BOOL=ON \
      -DBUILD_TESTING:BOOL=OFF\
      ${path_to_mitk}


Then, I have bellow error message:

-- Configuring incomplete, errors occurred!
See also 
"/home/vagrant/KyotoPJ/mitk2015.05.2/mitk2015.05.2-src/CMakeFiles/CMakeOutput.log".
See also 
"/home/vagrant/KyotoPJ/mitk2015.05.2/mitk2015.05.2-src/CMakeFiles/CMakeError.log".
-- Performing Test HAS_FLAG_-std=c11
-- Performing Test HAS_FLAG_-std=c11 - Success
-- Generated: /home/vagrant/KyotoPJ/mitk2015.05.2/mitk2015.05.2-src/Project.xml
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Performing Test HAS_CXX_FLAG__Wno_error=gnu
-- Performing Test HAS_CXX_FLAG__Wno_error=gnu - Failed
-- Performing Test HAS_C_FLAG__Wno_error=gnu
-- Performing Test HAS_C_FLAG__Wno_error=gnu - Failed
-- Performing Test HAS_CXX_FLAG__Wno_error=unknown_pragmas
-- Performing Test HAS_CXX_FLAG__Wno_error=unknown_pragmas - Success
-- Performing Test HAS_C_FLAG__Wno_error=unknown_pragmas
-- Performing Test HAS_C_FLAG__Wno_error=unknown_pragmas - Success
-- Performing Test HAS_CXX_FLAG__Wno_error=strict_overflow
-- Performing Test HAS_CXX_FLAG__Wno_error=strict_overflow - Success
-- Performing Test HAS_C_FLAG__Wno_error=strict_overflow
-- Performing Test HAS_C_FLAG__Wno_error=strict_overflow - Success
-- Performing Test HAS_CXX_FLAG__Wno_error=c0x_static_nonintegral_init
-- Performing Test HAS_CXX_FLAG__Wno_error=c0x_static_nonintegral_init - Failed
-- Performing Test HAS_C_FLAG__Wno_error=c0x_static_nonintegral_init
-- Performing Test HAS_C_FLAG__Wno_error=c0x_static_nonintegral_init - Failed
-- Performing Test HAS_CXX_FLAG__Wno_error=static_member_init
-- Performing Test HAS_CXX_FLAG__Wno_error=static_member_init - Failed
-- Performing Test HAS_C_FLAG__Wno_error=static_member_init
-- Performing Test HAS_C_FLAG__Wno_error=static_member_init - Failed
-- Performing Test HAS_CXX_FLAG__Wno_error=unknown_warning
-- Performing Test HAS_CXX_FLAG__Wno_error=unknown_warning - Failed
-- Performing Test HAS_C_FLAG__Wno_error=unknown_warning
-- Performing Test HAS_C_FLAG__Wno_error=unknown_warning - Failed
-- Performing Test HAS_CXX_FLAG__Wno_error=inconsistent_missing_override
-- Performing Test HAS_CXX_FLAG__Wno_error=inconsistent_missing_override - 
Failed
-- Performing Test HAS_C_FLAG__Wno_error=inconsistent_missing_override
-- Performing Test HAS_C_FLAG__Wno_error=inconsistent_missing_override - Failed
-- Performing Test HAS_CXX_FLAG__fvisibility=hidden_fvisibility_inlines_hidden
-- Performing Test HAS_CXX_FLAG__fvisibility=hidden_fvisibility_inlines_hidden 
- Success
-- Performing Test HAS_CXX_FLAG__O1_D_FORTIFY_SOURCE=2
-- Performing Test HAS_CXX_FLAG__O1_D_FORTIFY_SOURCE=2 - Success
CMake Error at 
/home/vagrant/KyotoPJ/vtk6.2/VTK-6.2.0/CMake/vtkModuleAPI.cmake:120 (message):
  Requested modules not available:

    vtkTestingRendering
Call Stack (most recent call first):
  /home/vagrant/KyotoPJ/vtk6.2/VTK-6.2.0-build/VTKConfig.cmake:67 
(vtk_module_config)
  CMake/PackageDepends/MITK_VTK_Config.cmake:1 (find_package)
  CMake/mitkFunctionUseModules.cmake:101 (include)
  CMake/mitkFunctionUseModules.cmake:180 (_include_package_config)
  CMake/mitkFunctionCreateModule.cmake:622 (mitk_use_modules)
  Modules/Core/TestingHelper/CMakeLists.txt:1 (mitk_create_module)


-- Configuring incomplete, errors occurred!
See also 
"/home/vagrant/KyotoPJ/mitk2015.05.2/mitk2015.05.2-src/CMakeFiles/CMakeOutput.log".
See also 
"/home/vagrant/KyotoPJ/mitk2015.05.2/mitk2015.05.2-src/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1



Please teach me how to build MITK with VTK6.2.0.
Regards,

taisho
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to