Hi Frank, I had some time ago the same problem, or nearly the same. I updated my MITK sources via SVN an recompiled everything. Maybe that helps a bit.
Regards Michael 2010/4/21 Frank Blaschke <[email protected]> > Hi, > > I wanna compile my first mitk-project, but in every case i get one error. > > Maybe it's the same problem like this guy have > http://comments.gmane.org/gmane.comp.lib.mitk.user/986 > But i can't find a solution for this. > > > My Log include the following: > In file included from /usr/src/mitk/Core/Code/IO/mitkLogMacros.h:21, > from > /usr/src/mitk/Core/Code/DataManagement/mitkCommon.h:29, > from > /usr/src/mitk/Core/Code/Controllers/mitkTestManager.h:21, > from > /usr/src/mitk/Core/Code/Controllers/mitkTestingMacros.h:23, > from /home/xyz/workspace/mitktest/mainwindow.cpp:8: > /usr/src/mitk/Utilities/mbilog/mbilog.h:22:26: error: mbilogConfig.h: > No such file or directory > > Do i forgot some options in building mitk? > > I use Ubuntu 9.10 32bit, GCC 4.4.1, Code::Blocks 8.02 (CMake 2.6 patch > 4) > > in my programm i just include > > #include "mainwindow.h" > #include "ui_mainwindow.h" > #include <QFileDialog> > #include <QString> > > #include "mitkTestingMacros.h" > > i tried with other headers, also qmitkXYZ.h, nothing works. > > > > > > my CMakeLists.txt is: > > CMAKE_MINIMUM_REQUIRED(VERSION 2.6) > > # The name of our project is "MedImageExplorer". CMakeLists files in > this project can > # refer to the root source directory of the project as > ${POOLVTK_SOURCE_DIR} and > # to the root binary directory of the project as ${POOLVTK_BINARY_DIR}. > > SET(PNAME "MedImageExplorer") > > SET(SRCS main.cpp mainwindow.cpp ) # RAW_Dialog.cxx typeDialog.cxx) > SET(HDRS mainwindow.h ) #RAW_Dialog.h typeDialog.h) > # MOCS include all header within a 'Q_OBJECT' in the 'class xyz : > public QWidget' > SET(MOCS mainwindow.h ) # RAW_Dialog.h typeDialog.h) > SET(UIS mainwindow.ui) > SET(RES ) > > > ### Project ### > PROJECT(${PNAME}) > > SET(CMAKE_BUILD_TYPE Release) > SET(CMAKE_CXX_FLAGS "-Wall") > > ### VTK ### > FIND_PACKAGE(VTK REQUIRED) > IF(NOT VTK_DIR) > MESSAGE(FATAL_ERROR "Please set VTK_DIR.") > #INCLUDE(${VTK_USE_FILE}) > ENDIF(NOT VTK_DIR) > > ### ITK ### > FIND_PACKAGE ( ITK REQUIRED) > IF ( ITK_FOUND ) > INCLUDE( ${USE_ITK_FILE} ) > ENDIF( ITK_FOUND ) > > ### MITK ### > FIND_PACKAGE(MITK REQUIRED) > IF ( MITK_FOUND ) > INCLUDE_DIRECTORIES(${ALL_INCLUDE_DIRECTORIES} ${QMITK_INCLUDE_DIRS}) > LINK_DIRECTORIES(${MITK_LINK_DIRECTORIES}) > #MITK_USE_MODULE(QmitkExt) > #INCLUDE( ${MITK_USE_FILE} ) > > ENDIF( MITK_FOUND ) > #IMPORTANT: do not include the ITK_USE_FILE in your project when using > MITK. There's a conflict in the ITK and MITK tree classes which will > be resolved soon. > > > ### Qt ### > FIND_PACKAGE(Qt4 REQUIRED) > IF(QT_USE_FILE) > SET(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "") > SET(QT_MOC_EXECUTABLE ${VTK_QT_MOC_EXECUTABLE} CACHE FILEPATH "") > SET(QT_UIC_EXECUTABLE ${VTK_QT_UIC_EXECUTABLE} CACHE FILEPATH "") > SET(DESIRED_QT_VERSION ${VTK_DESIRED_QT_VERSION} CACHE FILEPATH "") > INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} > ${QT_QTCORE_INCLUDE_DIR} ${QMITK_INCLUDE_DIRS}) > LINK_DIRECTORIES(${QMITK_LINK_DIRECTORIES}) > INCLUDE(${QT_USE_FILE}) > QT4_WRAP_CPP(MOC_CPP ${MOCS}) > QT4_WRAP_UI(UI_CPP ${UIS}) > QT4_ADD_RESOURCES(RES_H ${RES}) > INCLUDE_DIRECTORIES( . ) > ELSE(QT_USE_FILE) > SET(QT_LIBRARIES ${QT_QT_LIBRARY}) > ENDIF(QT_USE_FILE) > > ### FINAL PROGRAM ### > SET(FINAL_SRCS > ${SRCS} > ${MOC_CPP} > ${UI_CPP} > ) > > SET( FINAL_LIBS > ${QT_LIBRARIES} > ${QMITK_LIBRARIES} > #QVTK > #ITKAlgorithms ITKBasicFilters ITKCommon ITKFEM ITKIO ITKMetaIO > ITKNumerics itkpng itkzlib > #vtkCommon vtkexpat vtkFiltering vtkfreetype vtkftgl vtkGraphics > vtkHybrid vtkImaging vtkIO vtkjpeg vtkpng vtkRendering vtktiff vtkzlib > vtkVolumeRendering > ) > > ADD_EXECUTABLE(${PNAME} ${FINAL_SRCS}) > # todo: testing on a MAC > # ADD_EXECUTABLE( ${PNAME} MACOSX_BUNDLE ${SRCS}) > > TARGET_LINK_LIBRARIES(${PNAME} ${FINAL_LIBS}) > > > > ############################################ > # Hopefully you have fun with it. # > # by: Frank Blaschke, [your name] # > > > > ------------------------------------------------------------------------------ > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users > -- Suchmaschine, E-Mail Account, Preisvergleiche und viele andere Tools! Alles aus einer Hand bei Google. 2.5 GB Postfach und alles kostenlos!
------------------------------------------------------------------------------
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
