Thanks for that fix David, I pushed it for now. I'll take a look at moving that flag so it is excluded when building on cygwin with X11.<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 9:53 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">IIRC the cygwin target can support either, Bill would probably know.<br>
But you're right, the -lgdi32 might belong inside the CMakeLists.txt<br>
for Common and Rendering for cygwin/no-X11, instead of being<br>
set globally in vtkDetermineCompilerFlags.<br>
<font color="#888888"><br>
  David<br>
</font><div><div></div><div class="h5"><br>
On Wed, Oct 6, 2010 at 7:41 AM, Marco Atzeri <<a href="mailto:marco_atzeri@yahoo.it">marco_atzeri@yahoo.it</a>> wrote:<br>
> question is cygwin the target or just the development platform ?<br>
><br>
> On cygwin target the standard graphical interface<br>
> is *NIX/X11 instead of gdi32<br>
><br>
> Marco<br>
><br>
> --- Mer 6/10/10, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> ha scritto:<br>
><br>
>> Da: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
>> Oggetto: Re: [vtk-developers] Kitware VTK cygwin build<br>
>> A: "Dave Partyka" <<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>><br>
>> Cc: "VTK Developers" <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>
>> Data: Mercoledė 6 ottobre 2010, 14:58<br>
>> Just a comment on the cygwin<br>
>> dashboard, it looks like the -lgdi32 line<br>
>> in vtkDetermineCompilerFlags.cmake should be moved:<br>
>><br>
>> @@ -26,16 +26,16 @@<br>
>>    IF(WIN32)<br>
>>  # The platform is gcc on cygwin.<br>
>>      SET(VTK_REQUIRED_CXX_FLAGS<br>
>> "${VTK_REQUIRED_CXX_FLAGS} -mwin32")<br>
>>      SET(VTK_REQUIRED_C_FLAGS<br>
>> "${VTK_REQUIRED_C_FLAGS} -mwin32")<br>
>> +    LINK_LIBRARIES(-lgdi32)<br>
>>    ENDIF(WIN32)<br>
>>    IF(MINGW)<br>
>>      SET(VTK_REQUIRED_CXX_FLAGS<br>
>> "${VTK_REQUIRED_CXX_FLAGS} -mthreads")<br>
>>      SET(VTK_REQUIRED_C_FLAGS<br>
>> "${VTK_REQUIRED_C_FLAGS} -mthreads")<br>
>>      SET(VTK_REQUIRED_EXE_LINKER_FLAGS<br>
>> "${VTK_REQUIRED_EXE_LINKER_FLAGS} -mthreads")<br>
>><br>
>>    SET(VTK_REQUIRED_SHARED_LINKER_FLAGS<br>
>> "${VTK_REQUIRED_SHARED_LINKER_FLAGS} -mthreads")<br>
>><br>
>>    SET(VTK_REQUIRED_MODULE_LINKER_FLAGS<br>
>> "${VTK_REQUIRED_MODULE_LINKER_FLAGS} -mthreads")<br>
>> -    LINK_LIBRARIES(-lgdi32)<br>
>>    ENDIF(MINGW)<br>
>>    IF(CMAKE_SYSTEM MATCHES "SunOS.*")<br>
>>  # Disable warnings that occur in X11 headers.<br>
>>      IF(DART_ROOT AND BUILD_TESTING)<br>
>><br>
>><br>
>> On Wed, Sep 22, 2010 at 9:32 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> wrote:<br>
>> > I was also surprised I got those warnings. I'll keep<br>
>> digging.<br>
>> ><br>
>> > Bill<br>
>> ><br>
>> > On Wed, Sep 22, 2010 at 8:35 AM, Dave Partyka <<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>><br>
>> wrote:<br>
>> >> vtkUnicodeString is in vtkCommon which failed to<br>
>> compile thus none of the<br>
>> >> tests were built.<br>
>> >> As for the visibility warnings. Visibility is<br>
>> defined in Common\vtkABI.h<br>
>> >> though it "should" be defining the windows<br>
>> declspecs for Cygwin and not<br>
>> >> using __attribute__ visibility (Assuming we're<br>
>> talking about the same<br>
>> >> visibility). Feel free to dig deeper. Dash14 is<br>
>> extremely slow so I may not<br>
>> >> have any further information until tomorrow.<br>
>> >><br>
>> >> On Wed, Sep 22, 2010 at 8:24 AM, Bill Lorensen<br>
>> <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> Dave,<br>
>> >>><br>
>> >>> I see today that the cygwin build is getting<br>
>> closer. But none of the<br>
>> >>> tests are running.<br>
>> >>><br>
>> >>> I am using cygwin version 1.7.7, gcc-4.3.4 and<br>
>> cmake 2.6-patch4.<br>
>> >>><br>
>> >>> I build with shared libs on.<br>
>> >>><br>
>> >>> I had to patch one file:<br>
>> Utilities/Cosmo/ParticleDistribute.cxx<br>
>> >>><br>
>> >>> All built fine except that I get thousands of<br>
>> warnings about<br>
>> >>> "visibility attribute not supported in this<br>
>> configuration".<br>
>> >>><br>
>> >>> All but 8 tests passed.<br>
>> >>><br>
>> >>> I think I'll build cmake 2.8 and see if it<br>
>> solves the visibility issue.<br>
>> >>><br>
>> >>> Bill<br>
>> >>><br>
>> >>> On Tue, Sep 21, 2010 at 9:38 AM, Dave Partyka<br>
>> <<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>><br>
>> >>> wrote:<br>
>> >>> > It's there now. Are these any of the<br>
>> compile errors you guys were<br>
>> >>> > experiencing?<br>
>> >>> > <a href="http://www.cdash.org/CDash/viewBuildError.php?buildid=727533" target="_blank">http://www.cdash.org/CDash/viewBuildError.php?buildid=727533</a><br>
>> >>> > This cygwin is using gcc-3.4.4. I am<br>
>> pretty tempted to see if I can<br>
>> >>> > update<br>
>> >>> > it to at least 4.x.<br>
>> >>> ><br>
>> >>> > On Mon, Sep 20, 2010 at 5:40 PM, Dave<br>
>> Partyka <<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>><br>
>> >>> > wrote:<br>
>> >>> >><br>
>> >>> >> It should be all set now. We should<br>
>> get some feedback on the dashboard<br>
>> >>> >> tomorrow.<br>
>> >>> >><br>
>> >>> >> On Mon, Sep 20, 2010 at 5:04 PM, Dave<br>
>> Partyka<br>
>> >>> >> <<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>><br>
>> >>> >> wrote:<br>
>> >>> >>><br>
>> >>> >>> Okay, I'll build it by hand on<br>
>> Dash14.<br>
>> >>> >>><br>
>> >>> >>> On Mon, Sep 20, 2010 at 5:02 PM,<br>
>> Bill Lorensen<br>
>> >>> >>> <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >>> >>> wrote:<br>
>> >>> >>>><br>
>> >>> >>>> Dave,<br>
>> >>> >>>><br>
>> >>> >>>> I think it would be good to<br>
>> verify that vtk cygwin builds with cmake<br>
>> >>> >>>> 2.8.x. I know it builds with<br>
>> 2.6.<br>
>> >>> >>>><br>
>> >>> >>>> David Doria and I have been<br>
>> going around on this for a few weeks. He<br>
>> >>> >>>> has been working with a<br>
>> cygwin guy to resolve the issue, but their<br>
>> >>> >>>> solution looks complex to me.<br>
>> It would be good to have "the experts"<br>
>> >>> >>>> verify that VTK can indeed be<br>
>> built with cygwin and cmake 2.8.x.<br>
>> >>> >>>><br>
>> >>> >>>> Bill<br>
>> >>> >>>><br>
>> >>> >>>> On Mon, Sep 20, 2010 at 4:52<br>
>> PM, Dave Partyka<br>
>> >>> >>>> <<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>><br>
>> >>> >>>> wrote:<br>
>> >>> >>>> > Hi Bill,<br>
>> >>> >>>> > Dash14 used to do this<br>
>> build. It stopped working because we need<br>
>> >>> >>>> > cmake<br>
>> >>> >>>> > 2.8.x<br>
>> >>> >>>> > to drive the dashboard<br>
>> because only 2.8.x knows how to update git<br>
>> >>> >>>> > repositories. I built a<br>
>> cygwin 2.8.2 release binary and have been<br>
>> >>> >>>> > working<br>
>> >>> >>>> > with Bill Hoffman on<br>
>> getting it submitted to the cygwin package<br>
>> >>> >>>> > managers.<br>
>> >>> >>>> > Once it's done, I can<br>
>> update dash14 packages with their package<br>
>> >>> >>>> > manager.<br>
>> >>> >>>> > If this is critical for<br>
>> you I can build cmake 2.8.2 by hand on that<br>
>> >>> >>>> > machine.<br>
>> >>> >>>> > Otherwise I will wait<br>
>> for the cygwin guys to make the package<br>
>> >>> >>>> > available<br>
>> >>> >>>> > through their package<br>
>> manager.<br>
>> >>> >>>> ><br>
>> >>> >>>> > On Mon, Sep 20, 2010 at<br>
>> 4:45 PM, Bill Lorensen<br>
>> >>> >>>> > <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >>> >>>> > wrote:<br>
>> >>> >>>> >><br>
>> >>> >>>> >> Folks,<br>
>> >>> >>>> >><br>
>> >>> >>>> >> At one time, kitware<br>
>> had a cygwin build for VTK. Can someone<br>
>> >>> >>>> >> revive<br>
>> >>> >>>> >> that? We need to<br>
>> verify that VTK still builds with cygwin and<br>
>> >>> >>>> >> cmake<br>
>> >>> >>>> >> 2.8.2...<br>
>> >>> >>>> >><br>
>> >>> >>>> >> Bill<br>
>> >>> >>>> >><br>
>> _______________________________________________<br>
>> >>> >>>> >> Powered by<br>
>> <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >>> >>>> >><br>
>> >>> >>>> >> Visit other Kitware<br>
>> open-source projects at<br>
>> >>> >>>> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >>> >>>> >><br>
>> >>> >>>> >> Follow this link to<br>
>> subscribe/unsubscribe:<br>
>> >>> >>>> >> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>> >>> >>>> >><br>
>> >>> >>>> ><br>
>> >>> >>>> ><br>
>> >>> >>><br>
>> >>> >><br>
>> >>> ><br>
>> >>> ><br>
>> >><br>
>> >><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>><br>
>><br>
><br>
><br>
><br>
><br>
</div></div></blockquote></div><br>