Skip to content
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

COMP: Fix macOS linking #10

Merged
merged 1 commit into from Oct 16, 2020

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented 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

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>
@jcfr jcfr merged commit e47e3ad into master Oct 16, 2020
@jcfr jcfr deleted the 2-workaround-missing-VTK_USE_COCOA-from-vtk-config branch October 16, 2020 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VTK_USE_COCOA not set
1 participant