[vtkusers] No key events on MAC OSX

David Gobbi david.gobbi at gmail.com
Tue Sep 2 10:40:16 EDT 2014


Hi Chavdar,

I suspect that it isn't working because of the "@" symbols.  Those
only work in ".in" files, the do not work in regular cmake files.  Try
this instead:

add_executable(rec3dapp
  MACOSX_BUNDLE
  ${CPP_FILES}
  ${REC3D_CPP_FILES}
  ${REC3D_VIS_CPP_FILES}
  ${VTKVIEW_CPP_FILES}
)

 - David


On Mon, Sep 1, 2014 at 8:12 AM, C P <cp.vtk.user at googlemail.com> wrote:
> Dear vtk users,
>
> there seems to be no keyboard event processing on MAC OSX. I checked this
> post here:
>
> http://vtk.org/Bug/view.php?id=2025
>
> but without success. Here is the content of my CMakeLists.txt file:
>
> --------------------------------------------------------------------------------------------------------------
>
> project(rec3dapp)
>
> cmake_minimum_required(VERSION 2.6)
>
> find_package(VTK)
>
> find_package(OpenCV)
>
> FILE(GLOB CPP_FILES            *.cpp)
>
> FILE(GLOB REC3D_CPP_FILES      ../rec3d/*.cpp)
>
> FILE(GLOB REC3D_VIS_CPP_FILES  ../rec3dvis/*.cpp)
>
> FILE(GLOB VTKVIEW_CPP_FILES    ../vtkview/*.cpp)
>
> include(${VTK_USE_FILE})
>
> include_directories(
>
>   ..
>
> )
>
> IF(APPLE)
>
>   SET(EXECUTABLE_FLAG MACOSX_BUNDLE)
>
> ENDIF(APPLE)
>
> link_libraries(${VTK_LIBRARIES} ${OpenCV_LIBS})
>
> add_executable(rec3dapp
>
>   MACOSX_BUNDLE
>
>   @CPP_FILES@
>
>   @REC3D_CPP_FILES@
>
>   @REC3D_VIS_CPP_FILES@
>
>   @VTKVIEW_CPP_FILES@
>
> )
>
> --------------------------------------------------------------------------------------------------------------
>
>
> Do you have any suggestions?
>
> Thanks a lot.
>
>
> Best regards
>
> Chavdar


More information about the vtkusers mailing list