Hi Urban,

It seems that you're building a debug version and it is the reason for this problem - a variable in CTK code named DEBUG. My pull request that fixes this problem for CTK was already merged, but MITK doesn't yet use the version with it. What I did was modify my fork of MITK to apply this pull request as a patch step for CTK. If you place the attached files to CMakeExternals folder of MITK - it should solve the problem. Or if it doesn't it will save you time when building the debug version so it's worth it either way :)

Rostislav.

On 06/08/2015 00:41, Urban Simoncic wrote:
Hi,

I was using linux line-ending tarball on Windows. But I am still not successful at building MITK. Now it pops up plenty of errors that seem to be related with CTK, most likely with some wrong path. Error log from MSVC is attached.

Thanks,
Urban

On 5.8.2015 15:45, Goch, Caspar Jonas wrote:
Hi Urban,

Regarding the solution not being there:
That is fine. Configuring/Generating the superbuild only creates a project for the superbuild itself. Third party toolkits are then configured and generated *during* the superbuild. So a solution file in that directory will only be available after running the superbuild.

Regarding the build error:
It seems there is an error during the patch step. Try running cmake with the CppUnit-build directory set as binary directory and narrow the error down that way.
Possible common problems are:
- You are using the linux line-ending tarball on Windows (Would be my first guess, see also [1]) - permissions are set to strict - patch cannot access the file (probably not on Windows)
- the antivirus is blocking access to scan it

Best,
Caspar

[1] http://sourceforge.net/p/mitk/mailman/message/34233529/

-----Ursprüngliche Nachricht-----
Von: Urban Simoncic [mailto:[email protected]]
Gesendet: Mittwoch, 5. August 2015 14:15
An: Goch, Caspar Jonas; '[email protected]'
Betreff: Re: AW: [mitk-users] Problem with building MITK 2015.05 on Win 7

Hi,

I tried to build CPPUnit project individually and I got the attached output.

When I generate MITK project with CMake, the directory MITK-build/ep/src/CppUnit-build is empty. Should be the CppUnit solution file there?

Thanks,
Urban

On 5.8.2015 10:27, Goch, Caspar Jonas wrote:
Hi Urban,

unless I am mistaken the cmake error log is just cmake testing whether some compiler flags exist. (We do test for -rpath in the Superbuild.cmake, but you do not need it to build MITK). Did you try building the failing projects individually?

Just go to YOURBUILD/ep/src/CppUnit-build and try to build the solution file there. That should result in more helpful errors.

Best,
Caspar

-----Ursprüngliche Nachricht-----
Von: Urban Simoncic [mailto:[email protected]]
Gesendet: Dienstag, 4. August 2015 13:20
An: [email protected]
Betreff: [mitk-users] Problem with building MITK 2015.05 on Win 7

Hi,

I have problems with building MITK 2015.05 on Win 7 64bit and MSVC 2012. The problem appears already in CMake configuration phase - CMake error log file in line 225 (attached) says there is an error, which I am not able to locate and solve. Nevertheless, CMake Gui says the configuration and generation is done, but building process ends up with errors like
"Error    1    error MSB6006: "cmd.exe" exited with code 3.
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172
5    CppUnit"

Is anything wrong with my configuration in CMake?

Thanks in advance,
Urban






------------------------------------------------------------------------------


_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

#-----------------------------------------------------------------------------
# CTK
#-----------------------------------------------------------------------------

if(MITK_USE_CTK)

  # Sanity checks
  if(DEFINED CTK_DIR AND NOT EXISTS ${CTK_DIR})
    message(FATAL_ERROR "CTK_DIR variable is defined but corresponds to 
non-existing directory")
  endif()

  set(proj CTK)
  set(proj_DEPENDENCIES )
  set(CTK_DEPENDS ${proj})

  if(NOT DEFINED CTK_DIR)

    set(revision_tag 4d12a3b8)
    #IF(${proj}_REVISION_TAG)
    #  SET(revision_tag ${${proj}_REVISION_TAG})
    #ENDIF()

    set(ctk_optional_cache_args )
    if(MITK_USE_Python)
      if(NOT MITK_USE_SYSTEM_PYTHON)
        list(APPEND proj_DEPENDENCIES Python)
      endif()
      list(APPEND ctk_optional_cache_args
           -DCTK_LIB_Scripting/Python/Widgets:BOOL=ON
           -DCTK_ENABLE_Python_Wrapping:BOOL=ON
           -DCTK_APP_ctkSimplePythonShell:BOOL=ON
           -DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_EXECUTABLE}
           -DPYTHON_INCLUDE_DIR:PATH=${PYTHON_INCLUDE_DIR}
           -DPYTHON_INCLUDE_DIR2:PATH=${PYTHON_INCLUDE_DIR2}
           -DPYTHON_LIBRARY:FILEPATH=${PYTHON_LIBRARY}
      )
    else()
      list(APPEND ctk_optional_cache_args
           -DCTK_LIB_Scripting/Python/Widgets:BOOL=OFF
           -DCTK_ENABLE_Python_Wrapping:BOOL=OFF
           -DCTK_APP_ctkSimplePythonShell:BOOL=OFF
      )
    endif()

    if(MITK_USE_DCMTK)
      list(APPEND ctk_optional_cache_args
           -DDCMTK_DIR:PATH=${DCMTK_DIR}
           -DDCMTK_CMAKE_DEBUG_POSTFIX:STRING=d
          )
      list(APPEND proj_DEPENDENCIES DCMTK)
    else()
      list(APPEND ctk_optional_cache_args
           
-DDCMTK_URL:STRING=${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/CTK_DCMTK_085525e6.tar.gz
          )
    endif()

    if(CTEST_USE_LAUNCHERS)
      list(APPEND ctk_optional_cache_args
        
"-DCMAKE_PROJECT_${proj}_INCLUDE:FILEPATH=${CMAKE_ROOT}/Modules/CTestUseLaunchers.cmake"
      )
    endif()

    set (ctk_qt_args -DCTK_QT_VERSION:STRING=${DESIRED_QT_VERSION})

    if (DESIRED_QT_VERSION MATCHES "4")
      list(APPEND ctk_qt_args 
-DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE})
    endif()

    FOREACH(type RUNTIME ARCHIVE LIBRARY)
      IF(DEFINED CTK_PLUGIN_${type}_OUTPUT_DIRECTORY)
        LIST(APPEND mitk_optional_cache_args 
-DCTK_PLUGIN_${type}_OUTPUT_DIRECTORY:PATH=${CTK_PLUGIN_${type}_OUTPUT_DIRECTORY})
      ENDIF()
    ENDFOREACH()

    set(ctk_patch_command "")
    if (WIN32)
        set(ctk_patch_command ${PATCH_COMMAND} -N -p1 -i 
${CMAKE_CURRENT_LIST_DIR}/CTK.patch)
    endif()

    ExternalProject_Add(${proj}
      LIST_SEPARATOR ${sep}
      URL ${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/CTK_${revision_tag}.tar.gz
      URL_MD5 135910e407bd1f5de29d2a0a9efe5f80
      #GIT_REPOSITORY https://github.com/commontk/CTK.git
      #GIT_TAG origin/master
      UPDATE_COMMAND ""
      INSTALL_COMMAND ""
      PATCH_COMMAND ${ctk_patch_command}
      CMAKE_GENERATOR ${gen}
      CMAKE_ARGS
        ${ep_common_args}
        ${ctk_optional_cache_args}
        ${ctk_qt_args}
        # The CTK PluginFramework cannot cope with
        # a non-empty CMAKE_DEBUG_POSTFIX for the plugin
        # libraries yet.
        -DCMAKE_DEBUG_POSTFIX:STRING=
        -DGit_EXECUTABLE:FILEPATH=${GIT_EXECUTABLE}
        -DGIT_EXECUTABLE:FILEPATH=${GIT_EXECUTABLE}
        -DCTK_LIB_CommandLineModules/Backend/LocalProcess:BOOL=ON
        -DCTK_LIB_CommandLineModules/Frontend/QtGui:BOOL=ON
        -DCTK_LIB_PluginFramework:BOOL=ON
        -DCTK_LIB_DICOM/Widgets:BOOL=ON
        -DCTK_LIB_XNAT/Core:BOOL=ON
        -DCTK_PLUGIN_org.commontk.eventadmin:BOOL=ON
        -DCTK_PLUGIN_org.commontk.configadmin:BOOL=ON
        -DCTK_USE_GIT_PROTOCOL:BOOL=OFF
        
-DDCMTK_URL:STRING=${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/CTK_DCMTK_085525e6.tar.gz
        
-DqRestAPI_URL:STRING=${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/qRestAPI_5f3a03b1.tar.gz
        # See bug 19073
        
-DPythonQt_URL:STRING=${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/PythonQt_36ab9c7c.tar.gz
      CMAKE_CACHE_ARGS
        ${ep_common_cache_args}
      CMAKE_CACHE_DEFAULT_ARGS
        ${ep_common_cache_default_args}
      DEPENDS ${proj_DEPENDENCIES}
     )

    ExternalProject_Get_Property(${proj} binary_dir)
    set(CTK_DIR ${binary_dir})
    #set(CTK_DIR ${ep_prefix})
    #mitkFunctionInstallExternalCMakeProject(${proj})

  else()

    mitkMacroEmptyExternalProject(${proj} "${proj_DEPENDENCIES}")

  endif()

endif()
>From c76af6a4ac6da8a83d15018561d67fa8458013a9 Mon Sep 17 00:00:00 2001
From: Rostislav Khlebnikov <[email protected]>
Date: Tue, 21 Jul 2015 16:36:03 +0100
Subject: [PATCH] DEBUG variable renamed to DEBUG_FLAG

Signed-off-by: Rostislav Khlebnikov <[email protected]>
---
 Libs/PluginFramework/ctkPluginAbstractTracked.tpp  | 24 +++++++++++-----------
 Libs/PluginFramework/ctkPluginAbstractTracked_p.h  |  2 +-
 Libs/PluginFramework/ctkPluginTracker.tpp          |  4 ++--
 Libs/PluginFramework/ctkPluginTracker_p.h          |  2 +-
 Libs/PluginFramework/ctkPluginTracker_p.tpp        |  2 +-
 Libs/PluginFramework/ctkServiceTracker.tpp         | 14 ++++++-------
 Libs/PluginFramework/ctkServiceTracker_p.h         |  2 +-
 Libs/PluginFramework/ctkServiceTracker_p.tpp       |  4 ++--
 Libs/PluginFramework/ctkTrackedPlugin.tpp          |  2 +-
 Libs/PluginFramework/ctkTrackedService.tpp         |  2 +-
 .../service/debug/ctkDebugOptionsListener.h        |  6 +++---
 11 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/Libs/PluginFramework/ctkPluginAbstractTracked.tpp 
b/Libs/PluginFramework/ctkPluginAbstractTracked.tpp
index b661206..c3755a5 100644
--- a/Libs/PluginFramework/ctkPluginAbstractTracked.tpp
+++ b/Libs/PluginFramework/ctkPluginAbstractTracked.tpp
@@ -26,7 +26,7 @@
 
 //----------------------------------------------------------------------------
 template<class S, class T, class R>
-const bool ctkPluginAbstractTracked<S,T,R>::DEBUG = false;
+const bool ctkPluginAbstractTracked<S,T,R>::DEBUG_FLAG = false;
 
 //----------------------------------------------------------------------------
 template<class S, class T, class R>
@@ -62,7 +62,7 @@ void ctkPluginAbstractTracked<S,T,R>::setInitial(const 
QList<S>& list)
 {
   foreach (S item, list)
   {
-    if (DEBUG)
+    if (DEBUG_FLAG)
     {
       qDebug() << "ctkPluginAbstractTracked::setInitial:" << item;
     }
@@ -94,7 +94,7 @@ void ctkPluginAbstractTracked<S,T,R>::trackInitial()
       if (tracked.value(item))
       {
         /* if we are already tracking this item */
-        if (DEBUG)
+        if (DEBUG_FLAG)
         {
           qDebug() << "ctkPluginAbstractTracked::trackInitial[already 
tracked]: " << item;
         }
@@ -105,7 +105,7 @@ void ctkPluginAbstractTracked<S,T,R>::trackInitial()
         /*
          * if this item is already in the process of being added.
          */
-        if (DEBUG)
+        if (DEBUG_FLAG)
         {
           qDebug() << "ctkPluginAbstractTracked::trackInitial[already adding]: 
" << item;
         }
@@ -113,7 +113,7 @@ void ctkPluginAbstractTracked<S,T,R>::trackInitial()
       }
       adding.push_back(item);
     }
-    if (DEBUG)
+    if (DEBUG_FLAG)
     {
       qDebug() << "ctkPluginAbstractTracked::trackInitial: " << item;
     }
@@ -150,7 +150,7 @@ void ctkPluginAbstractTracked<S,T,R>::track(S item, R 
related)
       if (adding.contains(item))
       {
         /* if this item is already in the process of being added. */
-        if (DEBUG)
+        if (DEBUG_FLAG)
         {
           qDebug() << "ctkPluginAbstractTracked::track[already adding]: " << 
item;
         }
@@ -160,7 +160,7 @@ void ctkPluginAbstractTracked<S,T,R>::track(S item, R 
related)
     }
     else
     { /* we are currently tracking this item */
-      if (DEBUG)
+      if (DEBUG_FLAG)
       {
         qDebug() << "ctkPluginAbstractTracked::track[modified]: " << item;
       }
@@ -194,7 +194,7 @@ void ctkPluginAbstractTracked<S,T,R>::untrack(S item, R 
related)
     { /* if this item is already in the list
        * of initial references to process
        */
-      if (DEBUG)
+      if (DEBUG_FLAG)
       {
         qDebug() << "ctkPluginAbstractTracked::untrack[removed from initial]: 
" << item;
       }
@@ -207,7 +207,7 @@ void ctkPluginAbstractTracked<S,T,R>::untrack(S item, R 
related)
     { /* if the item is in the process of
        * being added
        */
-      if (DEBUG)
+      if (DEBUG_FLAG)
       {
         qDebug() << "ctkPluginAbstractTracked::untrack[being added]: " << item;
       }
@@ -226,7 +226,7 @@ void ctkPluginAbstractTracked<S,T,R>::untrack(S item, R 
related)
     }
     modified(); /* increment modification count */
   }
-  if (DEBUG)
+  if (DEBUG_FLAG)
   {
     qDebug() << "ctkPluginAbstractTracked::untrack[removed]: " << item;
   }
@@ -326,7 +326,7 @@ bool 
ctkPluginAbstractTracked<S,T,R>::customizerAddingFinal(S item, const T& cus
 template<class S, class T, class R>
 void ctkPluginAbstractTracked<S,T,R>::trackAdding(S item, R related)
 {
-  if (DEBUG)
+  if (DEBUG_FLAG)
   {
     qDebug() << "ctkPluginAbstractTracked::trackAdding:" << item;
   }
@@ -353,7 +353,7 @@ void ctkPluginAbstractTracked<S,T,R>::trackAdding(S item, R 
related)
    */
   if (becameUntracked && object)
   {
-    if (DEBUG)
+    if (DEBUG_FLAG)
     {
       qDebug() << "ctkPluginAbstractTracked::trackAdding[removed]: " << item;
     }
diff --git a/Libs/PluginFramework/ctkPluginAbstractTracked_p.h 
b/Libs/PluginFramework/ctkPluginAbstractTracked_p.h
index 5423c62..d04bf01 100644
--- a/Libs/PluginFramework/ctkPluginAbstractTracked_p.h
+++ b/Libs/PluginFramework/ctkPluginAbstractTracked_p.h
@@ -51,7 +51,7 @@ class ctkPluginAbstractTracked : public QMutex
 public:
 
   /* set this to true to compile in debug messages */
-  static const bool DEBUG; // = false;
+  static const bool DEBUG_FLAG; // = false;
 
   /**
    * ctkPluginAbstractTracked constructor.
diff --git a/Libs/PluginFramework/ctkPluginTracker.tpp 
b/Libs/PluginFramework/ctkPluginTracker.tpp
index 26c53a1..7f0df24 100644
--- a/Libs/PluginFramework/ctkPluginTracker.tpp
+++ b/Libs/PluginFramework/ctkPluginTracker.tpp
@@ -55,7 +55,7 @@ void ctkPluginTracker<T>::open()
       return;
     }
 
-    if (d->DEBUG)
+    if (d->DEBUG_FLAG)
     {
       qDebug() << "ctkPluginTracker<T>::open";
     }
@@ -100,7 +100,7 @@ void ctkPluginTracker<T>::close()
       return;
     }
 
-    if (d->DEBUG)
+    if (d->DEBUG_FLAG)
     {
       qDebug() << "ctkPluginTracker<T>::close";
     }
diff --git a/Libs/PluginFramework/ctkPluginTracker_p.h 
b/Libs/PluginFramework/ctkPluginTracker_p.h
index 44a092d..e12af36 100644
--- a/Libs/PluginFramework/ctkPluginTracker_p.h
+++ b/Libs/PluginFramework/ctkPluginTracker_p.h
@@ -51,7 +51,7 @@ public:
   QSharedPointer<ctkTrackedPlugin<T> > tracked() const;
 
   /* set this to true to compile in debug messages */
-  static const bool DEBUG; //  = false;
+  static const bool DEBUG_FLAG; //     = false;
 
   /**
    * The Bundle Context used by this <code>ctkPluginTracker</code>.
diff --git a/Libs/PluginFramework/ctkPluginTracker_p.tpp 
b/Libs/PluginFramework/ctkPluginTracker_p.tpp
index 8f096f8..dbdf238 100644
--- a/Libs/PluginFramework/ctkPluginTracker_p.tpp
+++ b/Libs/PluginFramework/ctkPluginTracker_p.tpp
@@ -24,7 +24,7 @@
 
 //----------------------------------------------------------------------------
 template<class T>
-const bool ctkPluginTrackerPrivate<T>::DEBUG = false;
+const bool ctkPluginTrackerPrivate<T>::DEBUG_FLAG = false;
 
 //----------------------------------------------------------------------------
 template<class T>
diff --git a/Libs/PluginFramework/ctkServiceTracker.tpp 
b/Libs/PluginFramework/ctkServiceTracker.tpp
index 2a243ac..381919f 100644
--- a/Libs/PluginFramework/ctkServiceTracker.tpp
+++ b/Libs/PluginFramework/ctkServiceTracker.tpp
@@ -85,7 +85,7 @@ void ctkServiceTracker<S,T>::open()
       return;
     }
 
-    if (d->DEBUG)
+    if (d->DEBUG_FLAG)
     {
       qDebug() << "ctkServiceTracker<S,T>::open: " << d->filter;
     }
@@ -141,7 +141,7 @@ void ctkServiceTracker<S,T>::close()
     {
       return;
     }
-    if (d->DEBUG)
+    if (d->DEBUG_FLAG)
     {
       qDebug() << "ctkServiceTracker<S,T>::close:" << d->filter;
     }
@@ -167,7 +167,7 @@ void ctkServiceTracker<S,T>::close()
     outgoing->untrack(ref, ctkServiceEvent());
   }
 
-  if (d->DEBUG)
+  if (d->DEBUG_FLAG)
   {
     QMutexLocker lock(&d->mutex);
     if ((d->cachedReference.getPlugin().isNull()) && (d->cachedService == 0))
@@ -235,14 +235,14 @@ ctkServiceReference 
ctkServiceTracker<S,T>::getServiceReference() const
   }
   if (!reference.getPlugin().isNull())
   {
-    if (d->DEBUG)
+    if (d->DEBUG_FLAG)
     {
       qDebug() << "ctkServiceTracker<S,T>::getServiceReference[cached]:"
                    << d->filter;
     }
     return reference;
   }
-  if (d->DEBUG)
+  if (d->DEBUG_FLAG)
   {
     qDebug() << "ctkServiceTracker<S,T>::getServiceReference:" << d->filter;
   }
@@ -351,14 +351,14 @@ T ctkServiceTracker<S,T>::getService() const
   T service = d->cachedService;
   if (service != 0)
   {
-    if (d->DEBUG)
+    if (d->DEBUG_FLAG)
     {
       qDebug() << "ctkServiceTracker<S,T>::getService[cached]:"
                << d->filter;
     }
     return service;
   }
-  if (d->DEBUG)
+  if (d->DEBUG_FLAG)
   {
     qDebug() << "ctkServiceTracker<S,T>::getService:" << d->filter;
   }
diff --git a/Libs/PluginFramework/ctkServiceTracker_p.h 
b/Libs/PluginFramework/ctkServiceTracker_p.h
index 8a3751c..7d457e0 100644
--- a/Libs/PluginFramework/ctkServiceTracker_p.h
+++ b/Libs/PluginFramework/ctkServiceTracker_p.h
@@ -72,7 +72,7 @@ public:
   QList<ctkServiceReference> 
getServiceReferences_unlocked(ctkTrackedService<S,T>* t) const;
 
   /* set this to true to compile in debug messages */
-  static const bool    DEBUG; //       = false;
+  static const bool    DEBUG_FLAG; //  = false;
 
   /**
    * The Plugin Context used by this <code>ctkServiceTracker</code>.
diff --git a/Libs/PluginFramework/ctkServiceTracker_p.tpp 
b/Libs/PluginFramework/ctkServiceTracker_p.tpp
index b548bb4..479bd1a 100644
--- a/Libs/PluginFramework/ctkServiceTracker_p.tpp
+++ b/Libs/PluginFramework/ctkServiceTracker_p.tpp
@@ -28,7 +28,7 @@
 
 //----------------------------------------------------------------------------
 template<class S, class T>
-const bool ctkServiceTrackerPrivate<S,T>::DEBUG = false;
+const bool ctkServiceTrackerPrivate<S,T>::DEBUG_FLAG = false;
 
 //----------------------------------------------------------------------------
 template<class S, class T>
@@ -142,7 +142,7 @@ void ctkServiceTrackerPrivate<S,T>::modified()
 {
   cachedReference = 0; /* clear cached value */
   cachedService = 0; /* clear cached value */
-  if (DEBUG)
+  if (DEBUG_FLAG)
   {
     qDebug() << "ctkServiceTracker::modified:" << filter;
   }
diff --git a/Libs/PluginFramework/ctkTrackedPlugin.tpp 
b/Libs/PluginFramework/ctkTrackedPlugin.tpp
index 91eb1bd..bfe3b99 100644
--- a/Libs/PluginFramework/ctkTrackedPlugin.tpp
+++ b/Libs/PluginFramework/ctkTrackedPlugin.tpp
@@ -43,7 +43,7 @@ void ctkTrackedPlugin<T>::pluginChanged(const ctkPluginEvent& 
event)
 
   QSharedPointer<ctkPlugin> plugin = event.getPlugin();
   ctkPlugin::State state = plugin->getState();
-  if (pluginTracker->d_func()->DEBUG)
+  if (pluginTracker->d_func()->DEBUG_FLAG)
   {
     qDebug() << "ctkTrackedPlugin<T>::pluginChanged[" << state << "]: " << 
*plugin;
   }
diff --git a/Libs/PluginFramework/ctkTrackedService.tpp 
b/Libs/PluginFramework/ctkTrackedService.tpp
index 7c66371..638060a 100644
--- a/Libs/PluginFramework/ctkTrackedService.tpp
+++ b/Libs/PluginFramework/ctkTrackedService.tpp
@@ -44,7 +44,7 @@ void ctkTrackedService<S,T>::serviceChanged(const 
ctkServiceEvent& event)
   }
 
   ctkServiceReference reference = event.getServiceReference();
-  if (serviceTracker->d_func()->DEBUG)
+  if (serviceTracker->d_func()->DEBUG_FLAG)
   {
     qDebug() << "ctkTrackedService::serviceChanged["
         << event.getType() << "]: " << reference;
diff --git a/Libs/PluginFramework/service/debug/ctkDebugOptionsListener.h 
b/Libs/PluginFramework/service/debug/ctkDebugOptionsListener.h
index c599642..9cd3454 100644
--- a/Libs/PluginFramework/service/debug/ctkDebugOptionsListener.h
+++ b/Libs/PluginFramework/service/debug/ctkDebugOptionsListener.h
@@ -42,7 +42,7 @@ struct ctkDebugOptions;
  * <pre>
  * class Activator : ctkPluginActivator, ctkDebugOptionsListener
  * {
- *   static bool DEBUG = false;
+ *   static bool DEBUG_FLAG = false;
  *
  *   void start(ctkPluginContext* context)
  *   {
@@ -53,12 +53,12 @@ struct ctkDebugOptions;
  *
  *   void optionsChanged(const ctkDebugOptions& options)
  *   {
- *     DEBUG = options->getBooleanOption("com.mycompany.mybundle/debug", 
false);
+ *     DEBUG_FLAG = options->getBooleanOption("com.mycompany.mybundle/debug", 
false);
  *   }
  *
  *   void doSomeWork()
  *   {
- *     if (DEBUG) BERRY_INFO << "foo";
+ *     if (DEBUG_FLAG) BERRY_INFO << "foo";
  *   }
  *   ...
  * }
-- 
1.8.4.msysgit.0

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to