Hi Casper, I tried to rebuilt MITK with shard libs, I got the same compilation errors. However, I cannot now find the workbench application! but I dont think this has to do shared libs because I returned it as before and stilldo not get workbench in the mitk-superbuild/bin directory as before. AWhat should I have been missing?
Actually, I need the workbench application and the plugins framework because the intention if to develop a new plugin. What is the configuration that would suffice for this? Much thanks, Zein 2016-02-01 13:29 GMT+01:00 Goch, Caspar Jonas <c.g...@dkfz-heidelberg.de>: > Hi Zein, > > as far as I am aware you can currently not build CTK statically. You can > check our bug tracker for more information [1]. Generally I would suggest > building MITK with shared libraries. > > Best, > Caspar > [1] http://bugs.mitk.org/show_bug.cgi?id=16926 > > -----Ursprüngliche Nachricht----- > Von: Zein Salah [mailto:zeinsa...@gmail.com] > Gesendet: Montag, 1. Februar 2016 12:40 > An: Kislinskiy, Stefan > Cc: mitk-users@lists.sourceforge.net > Betreff: Re: [mitk-users] Installing/Building MITK > > Hi, > > meanwhile, I rebuilt MITK from scratch. I tried, as much as possible, to > leave cmake variable to their default values. However, I turned off > build_testing and build_shared_libraries. I am still getting the following > errors (see bellow PS#1) during building the superbuild > project: > > I ignored the errors and tried to run the Workbench application using the > batch file in "C:\MITK-superbuild\MITK-build\bin". It fails to run and shows > a long list of errors in the console window, related to to "failing to > install Plugin ....". Bellow (PS#2), I only kept the last part of the > contents of the console window before the program crashes. > > If I am not wrong, the errors has to do with CTK. Ich cmake, I turned using > CTK to ON. Was this correct? > > Any suggestion? > > Much thanks, > > Zein > > > > > PS#1: This is the result of building ALL_BUILD in the superbuild project. I > repeated the build to get rid of long build results. > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > 1>------ Build started: Project: DCMTK, Configuration: Release Win32 > 1>------ > 2>------ Build started: Project: GDCM, Configuration: Release Win32 > 2>------ > 3>------ Build started: Project: ANN, Configuration: Release Win32 > 3>------ > 4>------ Build started: Project: CppUnit, Configuration: Release Win32 > 4>------ > 5>------ Build started: Project: Eigen, Configuration: Release Win32 > 5>------ > 6>------ Build started: Project: GLEW, Configuration: Release Win32 > 6>------ > 7>------ Build started: Project: Poco, Configuration: Release Win32 > 7>------ > 8>------ Build started: Project: Qwt, Configuration: Release Win32 > 8>------ > 9>------ Build started: Project: CTK, Configuration: Release Win32 > 9>------ > 10>------ Build started: Project: ITK, Configuration: Release Win32 > 10>------ > 11>------ Build started: Project: VTK, Configuration: Release Win32 > 11>------ > 12>------ Build started: Project: tinyxml, Configuration: Release Win32 > 12>------ > 13>------ Build started: Project: MITK-Data, Configuration: Release > 13>Win32 ------ > 14>------ Build started: Project: MITK-Utilities, Configuration: > Release Win32 ------ > 15>------ Build started: Project: MITK-Configure, Configuration: > Release Win32 ------ > 15> Building Custom Rule C:/MITK/CMakeLists.txt CMake does not need to > 15> re-run because > C:\MITK-superbuild\CMakeFiles\generate.stamp is up-to-date. > 15> Creating directories for 'MITK-Configure' > 15> No download step for 'MITK-Configure' > 15> No update step for 'MITK-Configure' > 15> No patch step for 'MITK-Configure' > 15> Performing configure step for 'MITK-Configure' > 15> loading initial cache file > C:/MITK-superbuild/ep/tmp/MITK-Configure-cache.cmake > 15> -- Performing Test HAS_FLAG_-std=c11 > 15> -- Performing Test HAS_FLAG_-std=c11 - Failed > 15> -- Performing Test HAS_FLAG_-std=c0x > 15> -- Performing Test HAS_FLAG_-std=c0x - Failed > 15> -- Generated: C:/MITK-superbuild/MITK-build/Project.xml > 15> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) > 15> -- Could NOT find Subversion (missing: Subversion_SVN_EXECUTABLE) > 15> -- Performing Test > HAS_CXX_FLAG__fvisibility=hidden_fvisibility_inlines_hidden > 15> -- Performing Test > HAS_CXX_FLAG__fvisibility=hidden_fvisibility_inlines_hidden - Failed > 15> -- Found OpenMP. > 15> -- IGTTutorialStep1 won't be built. Missing: > 15> CMake Error at > C:/MITK-superbuild/ep/src/CTK/CMake/ctkMacroSetupPlugins.cmake:154 > (message): > 15> The following plug-ins are using invalid symbolic names: > 15> de.unihannover.pickerexample > 15> Call Stack (most recent call first): > 15> CMakeLists.txt:1157 (ctkMacroSetupPlugins) > 15> > 15> > 15> -- Configuring incomplete, errors occurred! > 15> See also "C:/MITK-superbuild/MITK-build/CMakeFiles/CMakeOutput.log". > 15> See also "C:/MITK-superbuild/MITK-build/CMakeFiles/CMakeError.log". > 15>C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): > error MSB6006: "cmd.exe" exited with code 1. > 16>------ Build started: Project: MITK-build, Configuration: Release > Win32 ------ > 16> Building Custom Rule C:/MITK/CMakeLists.txt CMake does not need to > 16> re-run because > C:\MITK-superbuild\CMakeFiles\generate.stamp is up-to-date. > 16>CUSTOMBUILD : error : could not find CMAKE_GENERATOR in Cache > ========== Build: 14 succeeded, 2 failed, 2 up-to-date, 0 skipped ========== > > > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- > PS#2: the contents of the console window by running the batch of Workbench, > only the last part if shown to keep it short. The errors "Failed to install > plugin ...." > was repeated manv many times. > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Failed to install plugin QUrl( > "file:///C:/MITK-superbuild/MITK-build/bin/plugins/Release/liborg_mitk_gui_qt_xnat.dll" > ) : ctkPluginExceptio > > at 0FE516FD: ??0ctkBackTrace@@QAE@I@Z + 0xbd > at 0FE5F695: ??0ctkException@@QAE@ABVQString@@ABV0@@Z + 0x45 > at 0FE5F8F1: > ??0ctkRuntimeException@@QAE@ABVQString@@ABVctkException@@@Z + 0x11 > at 0F96FA92: > ??0ctkPluginException@@QAE@ABVQString@@ABW4Type@0@ABVctkException@@@Z > + 0x12 > at 0F98AE2E: > ?getLocalized@ctkPluginLocalization@@QBE?AVQString@@ABV2@0@Z + 0x5f5e > at 0F96EE54: > ?installPlugin@ctkPluginContext@@QAE?AV?$QSharedPointer@VctkPlugin@@@@ABVQUrl@@PAVQIODevice@@@Z > + 0x84 > at 0F97B99A: > ?install@ctkPluginFrameworkLauncher@@SAJABVQString@@PAVctkPluginContext@@@Z > + 0x31a > at 0F97BD78: > ?install@ctkPluginFrameworkLauncher@@SAJABVQString@@PAVctkPluginContext@@@Z > + 0x6f8 > at 0F97D5F1: > ?startup@ctkPluginFrameworkLauncher@@SAPAVctkPluginContext@@PAVQRunnable@@@Z > + 0x141 > at 0F97CD3C: > ?run@ctkPluginFrameworkLauncher@@SA?AVQVariant@@PAVQRunnable@@@Z + 0x9c > at 00D27092: ??? > at 0FC38B02: ?run@Application@Util@Poco@@UAEHXZ + 0x52 > at 00D221E9: ??? > at 00D2D671: ??? > at 7735336A: BaseThreadInitThunk + 0x12 > at 77A89882: RtlInitializeExceptionChain + 0x63 > at 77A89855: RtlInitializeExceptionChain + 0x36 Caused by: > ctkPluginException: The plugin > "C:/MITK-superbuild/MITK-build/bin/plugins/Release/liborg_mitk_gui_qt_xnat.dll" > could not be loaded: > -superbuild/MITK-build/bin/plugins/Release/liborg_mitk_gui_qt_xnat.dll: > Unzulõssiger Zugriff auf einen Speicherbereich. > at 0FE516FD: ??0ctkBackTrace@@QAE@I@Z + 0xbd > at 0FE5F885: ??0ctkRuntimeException@@QAE@ABVQString@@@Z + 0x45 > at 0F96FA5F: ??0ctkPluginException@@QAE@ABVQString@@ABW4Type@0@@Z + > 0xf > at 0F98E7EB: > ?getLocalized@ctkPluginLocalization@@QBE?AVQString@@ABV2@0@Z + 0x991b > at 0F98E402: > ?getLocalized@ctkPluginLocalization@@QBE?AVQString@@ABV2@0@Z + 0x9532 > at 0F98F10C: > ?getLocalized@ctkPluginLocalization@@QBE?AVQString@@ABV2@0@Z + 0xa23c > at 0F98AB5E: > ?getLocalized@ctkPluginLocalization@@QBE?AVQString@@ABV2@0@Z + 0x5c8e > ... 12 more > > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.LogLevel=2 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:215 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.CacheSize=30 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:217 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.ThreadPoolSize=20 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:219 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.Timeout=5000 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:221 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.RequireTopic=true > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:223 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.LogLevel=2 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:215 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.CacheSize=30 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:217 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.ThreadPoolSize=20 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:219 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.Timeout=5000 > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:221 > Mo Feb 1 12:07:40 2016 Debug: org.commontk.eventadmin.RequireTopic=true > in ctkEAConfiguration::startOrUpdate, > C:\MITK-superbuild\ep\src\CTK\Plugins\org.commontk.eventadmin\ctkEAConfiguration.cpp:223 > > > > 2016-01-29 16:07 GMT+01:00 Kislinskiy, Stefan > <s.kislins...@dkfz-heidelberg.de>: >> MITK doesn't touch anything except the build directory you are >> specifying. So if there are some files in the Qt folder, I guess you >> probably set the build directory to your Qt folder. MITK also keeps >> its source directory clean. Just make sure to specify another build >> directory than your source directory, for example, clone MITK into >> D:\MITK and set the build directory to something like >> D:\MITK-superbuild. Beware of the path lengths. It shouldn't be much >> longer than "D:\MITK-superbuild". If you start with MITK, you can also >> try the MITK Project Template: >> http://mitk.org/wiki/Developer_Tutorial_(Microsoft_Windows) >> >> Best regards, >> Stefan >> ________________________________________ >> Von: Zein Salah [zeinsa...@gmail.com] >> Gesendet: Freitag, 29. Januar 2016 15:57 >> An: Kislinskiy, Stefan >> Cc: mitk-users@lists.sourceforge.net >> Betreff: Re: [mitk-users] Installing/Building MITK >> >> well, I am no more sure my build is clean or dirty. Since it is a new >> one, I don't mind doing this from scratch :) But before doing this: I >> noticed that mitk installed some stuff in the Qt folders. Was this >> actually necessary? I would prefer to keep the Qt installaion itself >> clean of external stuff? Is this possible? >> >> thanks, >> Zein >> >> >> 2016-01-29 15:39 GMT+01:00 Kislinskiy, Stefan >> <s.kislins...@dkfz-heidelberg.de>: >>> Please keep the conversation on the list. >>> >>> Did you try a clean SUPERbuild? Usually when you start with a clean >>> superbuild and click on Configure, an error like "Qt not found" occurs. >>> This error message also says to set CMAKE_PREFIX_PATH. When you then set >>> this variable to the correct path, the error should disappear on the next >>> Configure run and various Qt library related variables should appear in the >>> CMake cache (never set them manually). Then just press Generate and give it >>> a new try to build if everything completed successfully in CMake. Setting >>> CMAKE_PREFIX_PATH might not work with a "dirty" superbuild and it does not >>> work, when you added Qt to your system path. Actually, in the latter case, >>> you don't have to set anything in CMake and it should just find Qt during >>> the Configure step. >>> ________________________________________ >>> Von: Zein Salah [zeinsa...@gmail.com] >>> Gesendet: Freitag, 29. Januar 2016 15:26 >>> An: Kislinskiy, Stefan >>> Betreff: Re: [mitk-users] Installing/Building MITK >>> >>> it is actually set to this, but still generating the same error! >>> >>> 2016-01-29 15:15 GMT+01:00 Kislinskiy, Stefan >>> <s.kislins...@dkfz-heidelberg.de>: >>>> Hi, >>>> >>>> set CMAKE_PREFIX_PATH to C:/Qt/5.4/msvc2013_opengl. Notice that it is >>>> *not* the bin directory. This should enable CMake to find Qt. >>>> >>>> Best regards, >>>> Stefan >>>> ________________________________________ >>>> Von: Zein Salah [zeinsa...@gmail.com] >>>> Gesendet: Freitag, 29. Januar 2016 14:33 >>>> An: mitk-users@lists.sourceforge.net >>>> Betreff: [mitk-users] Installing/Building MITK >>>> >>>> Hello, >>>> >>>> I am currently trying to build MITK 2015.05.2. Reading the instructions in: >>>> >>>> http://docs.mitk.org/nightly/BuildInstructionsPage.html >>>> >>>> 1. Under "Build MITK with CMake", there is a list of Options with >>>> descriptions, however, which ones should be set to ON. I intesnd to >>>> use the MITK workbench and most probably creat plugin for it. >>>> >>>> 2. During the superbuild, I had these errors in VS2013: >>>> >>>> 20> Building Custom Rule C:/Develope/MITK-2015.05.2/CMakeLists.txt >>>> 20> CMake does not need to re-run because >>>> C:\Develope\MITK-2015.05.2_bin\CMakeFiles\generate.stamp is >>>> up-to-date. >>>> 20> Creating directories for 'MITK-Configure' >>>> 20> No download step for 'MITK-Configure' >>>> 20> No update step for 'MITK-Configure' >>>> 20> No patch step for 'MITK-Configure' >>>> 20> Performing configure step for 'MITK-Configure' >>>> 20> loading initial cache file >>>> C:/Develope/MITK-2015.05.2_bin/ep/tmp/MITK-Configure-cache.cmake >>>> 20> -- Performing Test HAS_FLAG_-std=c11 >>>> 20> -- Performing Test HAS_FLAG_-std=c11 - Failed >>>> 20> -- Performing Test HAS_FLAG_-std=c0x >>>> 20> -- Performing Test HAS_FLAG_-std=c0x - Failed >>>> 20> -- Generated: >>>> 20> C:/Develope/MITK-2015.05.2_bin/MITK-build/Project.xml >>>> 20> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) >>>> 20> -- Could NOT find Subversion (missing: >>>> 20> Subversion_SVN_EXECUTABLE) >>>> 20> -- Boost version: 1.56.0 >>>> 20> CMake Error at CMakeLists.txt:910 (message): >>>> 20> Could not determine Qt binary directory: 0 >>>> 20> C:/Qt/5.4/msvc2013_opengl/bin/bin >>>> 20> >>>> 20> >>>> 20> -- Configuring incomplete, errors occurred! >>>> 20> See also >>>> "C:/Develope/MITK-2015.05.2_bin/MITK-build/CMakeFiles/CMakeOutput.log". >>>> 20> See also >>>> "C:/Develope/MITK-2015.05.2_bin/MITK-build/CMakeFiles/CMakeError.log". >>>> 20>C:\Program Files >>>> (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): >>>> error MSB6006: "cmd.exe" exited with code 1. >>>> 21>------ Build started: Project: MITK-build, Configuration: Release >>>> Win32 ------ >>>> 21> Building Custom Rule C:/Develope/MITK-2015.05.2/CMakeLists.txt >>>> 21> CMake does not need to re-run because >>>> C:\Develope\MITK-2015.05.2_bin\CMakeFiles\generate.stamp is >>>> up-to-date. >>>> 21>CUSTOMBUILD : error : could not find CMAKE_GENERATOR in Cache >>>> ========== Build: 19 succeeded, 2 failed, 2 up-to-date, 0 skipped >>>> ========== >>>> >>>> >>>> 3. I tried to ignore them and configure the mitk-build, as stated in >>>> the cmake the MITK-2015.05.2 as source directoy and >>>> MITK-2015.05.2_bin/MITK-build as binary directory. I am getting this >>>> cmake error >>>> >>>> CMake Error at CMakeLists.txt:910 (message): >>>> Could not determine Qt binary directory: 0 >>>> C:/Qt/5.4/msvc2013_opengl/bin/bin >>>> >>>> but cannot find the variable to define it. Should I add >>>> QT_BINARY_DIR manually and define it? >>>> >>>> Much thanks, >>>> Zein >>>> >>>> -------------------------------------------------------------------- >>>> ---------- >>>> 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 > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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