[vtkusers] Custom VTK Cocoa window flickers gray on new macOS

Alessandro Volz alessandro.volz at gmail.com
Fri Nov 16 16:52:11 EST 2018


Hi again,

I actually came around and got the SimpleCocoaVTK example to build against my VTK libs. 

Is it supposed to just show a gray window with two "Do Something" buttons? I suppose not.

So, chances are, I'm building VTK the wrong way. Here is my CMake:

cmake /Users/ale/Work/VTK -DVTK_USE_X:BOOL=OFF -DVTK_USE_COCOA:BOOL=ON -DBUILD_DOCUMENTATION=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DVTK_Group_StandAlone=OFF -DVTK_Group_Rendering=OFF -DModule_vtkIOImage=ON -DModule_vtkFiltersGeneral=ON -DModule_vtkImagingMorphological=ON -DModule_vtkImagingStencil=ON -DModule_vtkRenderingOpenGL2=ON -DModule_vtkRenderingVolumeOpenGL2=ON -DModule_vtkRenderingAnnotation=ON -DModule_vtkInteractionWidgets=ON -DModule_vtkIOGeometry=ON -DModule_vtkIOExport=ON -DModule_vtkFiltersTexture=ON -DModule_vtktiff=ON -DVTK_USE_SYSTEM_ZLIB:BOOL=ON -DVTK_USE_SYSTEM_EXPAT=ON -DVTK_USE_SYSTEM_LIBXML2=ON -DCMAKE_INSTALL_PREFIX=/Users/ale/Work/VTK-Install -DVTK_INSTALL_INCLUDE_DIR=include '-DCMAKE_CXX_FLAGS=-w -fvisibility=default -stdlib=libc++ -std=c++0x'

Do you see anything suspicious?

Could you build the SimpleCocoaVTK on your mac, zip it up and send it to me, to test if the problem is at hardware level or at build level?

Best,

Alessandro

> On Nov 16, 2018, at 4:34 PM, Sean McBride <sean at rogue-research.com> wrote:
> 
> On Tue, 13 Nov 2018 20:06:37 +0100, Alessandro Volz said:
> 
>> I mean, from 10.13 to 10.14, no change in 10.14.1.
>> 
>> We also noticed this only happens when linking against the 10.14 SDK
>> (Xcode 10.x) or with dark mode support enabled on Xcode 9.3.x (through
>> the Info.plist).
>> 
>> I can try reproduce, no guarantee. It’ll also take me a while to do, so
>> if anyone has any pointers, please please :)
> 
> Another thought: do any of VTK's existing unit tests exhibit the problem?
> 
> Cheers,
> 
> -- 
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com 
> Mac Software Developer              Montréal, Québec, Canada

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181116/4bd13d12/attachment.html>


More information about the vtkusers mailing list