New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTK_USE_COCOA not set #2
Comments
Thanks for the detailed report, root cause has been identified and reported in https://gitlab.kitware.com/vtk/vtk/-/issues/18032 Waiting this is addressed a workaround will be added to the |
jcfr
added a commit
that referenced
this issue
Oct 16, 2020
This commit works around issue https://gitlab.kitware.com/vtk/vtk/-/issues/18032 and fixes the following link error: [ 14%] Linking CXX shared library /Users/jcfr/Projects/SLG-rwdi/lib/Slicer-4.13/libvtkRenderingLookingGlass.dylib Undefined symbols for architecture x86_64: "vtkCocoaLookingGlassRenderWindow::SetLGDeviceIndex(int)", referenced from: vtkLookingGlassInterface::CreateLookingGlassRenderWindow(int) in vtkLookingGlassInterface.cxx.o "vtkCocoaLookingGlassRenderWindow::New()", referenced from: vtkLookingGlassInterface::CreateLookingGlassRenderWindow(int) in vtkLookingGlassInterface.cxx.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Fixes #2 Co-authored-by: Samuel Gerber <samuel.gerber@kitware.com>
Merged
jcfr
added a commit
that referenced
this issue
Oct 16, 2020
This commit works around issue https://gitlab.kitware.com/vtk/vtk/-/issues/18032 and fixes the following link error: [ 14%] Linking CXX shared library /Users/jcfr/Projects/SLG-rwdi/lib/Slicer-4.13/libvtkRenderingLookingGlass.dylib Undefined symbols for architecture x86_64: "vtkCocoaLookingGlassRenderWindow::SetLGDeviceIndex(int)", referenced from: vtkLookingGlassInterface::CreateLookingGlassRenderWindow(int) in vtkLookingGlassInterface.cxx.o "vtkCocoaLookingGlassRenderWindow::New()", referenced from: vtkLookingGlassInterface::CreateLookingGlassRenderWindow(int) in vtkLookingGlassInterface.cxx.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Fixes #2 Co-authored-by: Samuel Gerber <samuel.gerber@kitware.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When building on macOSX the linking step fails with:
The issue appears to be that
VTK_USE_COCOA
is not set and the files are not included inCMakeLists.txt
in theLookingGlassVTKModule
here:https://github.com/Kitware/LookingGlassVTKModule/blob/f3b4c8928c002533337479733af4ec10282c7aa9/CMakeLists.txt#L13
By including the mac specific source files the build works.
This might be related to a warning during the CMake configuration step:
The text was updated successfully, but these errors were encountered: