[vtk-developers] MFC being inadvertently included
Andrew Maclean
andrew.amaclean at gmail.com
Sat Jul 21 18:36:32 EDT 2012
Hi Bill,
Ok, will do, I will have a look at it over the next few hours.
Regards
Andrew
On Sat, Jul 21, 2012 at 11:41 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
> I think it is my bad. Andrew, can you remove the GROUPS Rendering from GUISupport/MFC/module.cmake
> and see if that clears up your problem?
>
> Bill
>
>
> On Sat, Jul 21, 2012 at 7:06 AM, David Cole <david.cole at kitware.com>wrote:
>
>> If necessary, MFC may be tested for via a try_compile. We already have
>> code that does this (after doing some quicker checks first, to
>> short-circuit the try_compile if possible) in the CMake test suite,
>> where we have a test that relies on MFC.
>>
>> It's about 100 lines of CMakeLists code that starts here (this is the
>> line in the v2.8.8 release):
>>
>>
>> http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/CMakeLists.txt;h=c0b7cd6175dd59de710af30256a749647f758bff;hb=6218aba37ad9990304f91bf6c27e014fbf8ad684#l1246
>>
>> Of course, even if you do test for it, and it's available, you may
>> want to provide the capability of turning it off independently. Maybe
>> it should be in its own little module even?
>>
>>
>> HTH,
>> David
>>
>>
>> On Sat, Jul 21, 2012 at 2:32 AM, Andrew Maclean
>> <andrew.amaclean at gmail.com> wrote:
>> > Hi All,
>> >
>> > I have just built the latest clone of VTK 6 and it seems that MFC is
>> being
>> > included by default. Is there any reason for this or has it just been
>> > inadvertently picked up in the dependency graph? The problem here is
>> that
>> > express editions of VS2010 do not contain afxwin.h hence the build will
>> fail
>> > when vtkMFCWindow.h is included in a build.
>> >
>> > The problem is in:
>> > Group Rendering modules:
>> >
>> vtkGeovisCore;vtkGUISupportMFC;vtkInteractionImage;vtkInteractionStyle;vtkInteractionWidgets;vtkRenderingAnnotation;vtkRenderingContext2D;vtkRenderingCore;vtkRenderingFreeType;vtkRenderingFreeTypeOpenGL;vtkRenderingHybridOpenGL;vtkRenderingImage;vtkRenderingLabel;vtkRenderingLOD;vtkRenderingOpenGL;vtkRenderingVolume;vtkRenderingVolumeOpenGL;vtkViewsContext2D;vtkViewsCore;vtkViewsGeovis;vtkViewsInfovis
>> > ....
>> > * vtkGUISupportMFC, needed by VTK_Group_Rendering.
>> > ....
>> > * vtkInteractionStyle, needed by 22 modules:
>> > VTK_Group_Rendering
>> > vtkDomainsChemistry-Test-Cxx
>> > vtkFiltersExtraction-Test-Cxx
>> > vtkFiltersExtraction-Test-Tcl
>> > vtkFiltersHyperTree-Test-Cxx
>> > vtkGUISupportMFC
>> > vtkGUISupportQt
>> > ...
>> >
>> > I definitely have not specified MFC in any of the CMake options.
>> >
>> >
>> > Regards
>> > Andrew
>> >
>> > --
>> > ___________________________________________
>> > Andrew J. P. Maclean
>> >
>> > ___________________________________________
>> >
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtk-developers
>> >
>> >
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
--
___________________________________________
Andrew J. P. Maclean
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120722/2987018a/attachment.html>
More information about the vtk-developers
mailing list