IWegner <iwegner@...> writes:

> 
> Hi Sascha,
> so how to proceed with the release 2013.09.0 and external projetcs?  Shall 
we add the flag mentioned below manually or will there be a fix?
> Thanks for your great work,
> Ingmar 
> ------------------
> Hi,
> Previously, Poco has been shipped with the MITK source code under the 
Utilities directory. So the MITK_CXX_FLAGS where applied to the Poco build. 
We converted Poco to a proper external project but forgot about the 
_WIN32_WINNT definition during that process.
> Best,
> Sascha
> In general, I have solved my problem by adding /D_WIN32_WINNT=0x0501 (with 
other CXX flags) in CMake GUI of MITK. Then built MITK and did the same 
/D_WIN32_WINNT=0x0501 with my application and built and it worked fine.
> I would request you put some light on why not to place the if(WIN32) 
before superbuild check in MITK CMakeLists.txt itself, because then we need 
not to add any other #define to includes windows.h.
> Thanks and Regards Rachit Jain
> On Thu, Oct 10, 2013 at 2:29 PM, Pierre-Yves Menguy <pierreyves.menguy-
[email protected]> wrote: Hello,
> I was trying to realize a small proof-of-concept at the attention of a 
colleague, when I encountered the same bug of UnWindows.h as you. I found 
differents posts stating about "POCO_NO_UNWINDOWS" in CMake, but to no 
difference.
> The only work-around I found at the moment is to include <Windows.h> to 
prevent ITK to set his own default value (itkThreadSupport.h) Use this code 
snippet : #if _WIN32 #include <Windows.h> #endif
> It fixed the problem for me. As Stefan stated, you may have a correct line 
to insert this.
> Regards,
> Pierre-Yves Menguy
> On 10 October 2013 10:29, Rachit Jain <rachitjain2110-
[email protected]> wrote:
> Hi All
> Came to know about new MITK version 2013.09.0, so was curious to try and 
use it.
> My application (C++using VS2010, QT 4.8.4onwindows 764 bit)was using MITK 
2013.06.0and while moving to version 2013.09.0, I got some minor issues that 
I fixed, so sharingwith allof youso that everybody can take benefit out of 
it:
> 1. The path of CppMicroServices is changed from 
Core/Code/CppMicroServices/include to Core/CppMicroServices/include
> 2. Because of new QWT version 6.1.0, classes like QwtIntervalData, 
QwtDoubleRect do not exist anymore. So refactoring is required. This link 
might be helpful: http://www.qtcentre.org/archive/index.php/t-49691.html
> 3. Header files have been changed from mitkModuleRegistry.h to 
usModuleRegistry.h. Similarly Module and ModuleRegistry classes are not in 
mitk namespace anymore, they are in US_NAMESPACE namespace.
> There is one issue which I am not able to fix yet, i.e. related to 
UnWindows.h, I see a section that says:
> #if defined(_WIN32_WINNT) && (_WIN32_WINNT < 0x0501) #error Unsupported 
Windows version. #elif !defined(_WIN32_WINNT) // define minimum supported 
#define _WIN32_WINNT 0x0501 #endif
> When I am building my application, it gives me a compilation error saying 
"Unsupported Windows version". I commented the #error, just for testing 
purpose, then my application compiles but fails to run. I searched in Cmake 
settings of MITK, but could not find anything specific related to this.
> Please share if you have encountered the same issue or know how to fix it.
> Thanks and Regards Rachit Jain
> --------------------------------------------------------------------------
----October Webinars: Code for Performance Free Intel webinars can help you 
accelerate application performance. Explore tips for MPI, OpenMP, advanced 
profiling, and more. Get the most from the latest Intel processors and 
coprocessors. See abstracts and register > 
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk 
_______________________________________________ mitk-users mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/mitk-users


I have the same error in my plug-in since upgrading to the latest version 
and I'm currently defining D_WIN32_WINNT manually in my code to temporarily 
fix the problem.
However, for future compatibility it would be preferable to have this issue 
fixed in the MITK superbuild. Are there plans to add a fix soon?

Regards,
Sascha



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to