Fix for _CVDisplayLinkRelease etc errors

This one’s for the Googlers :smile:

If you’re getting “Apple Mach-O Linker” errors for symbols like _CVDisplayLinkGetNominalOutputVideoRefreshPeriod, _CVDisplayLinkCreateWithCGDisplay and _CVDisplayLinkRelease then:

add the CoreVideo framework to your project

This is caused by outdated projects which don’t have the CoreVideo framework in their list of frameworks (it’s included in the openFrameworks project but not the ofApp’s project).

  • Select your project in the Project Navigator (i.e. the bar on the left)
  • Select your app’s target in the pane that just came up (the first entry under “TARGETS”)
  • Select the “General” tab if it’s not the one currently selected
  • Scroll down to “Linked Frameworks and Libraries”
  • Click the + button and add the CoreVideo framework

The whole error message:

Undefined symbols for architecture i386:
  "_CVDisplayLinkGetNominalOutputVideoRefreshPeriod", referenced from:
      _vidmodeFromCGDisplayMode in libglfw3.a(cocoa_monitor.m.o)
  "_CVDisplayLinkCreateWithCGDisplay", referenced from:
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monitor.m.o)
  "_CVDisplayLinkRelease", referenced from:
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monitor.m.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
15 Likes

Hi Adam.

Thanks for this post :wink:

Hugues.

Hi Adam,

Thanks for this. I was using the ofxArtnet example, and it needed this fix. I Googled it and found you.

Nathan!

Very useful. Just used this to trouble-shoot my OpenNI examples project, Hacking Arts 2014.

Thanks!

Perfect, thank you!

Thanks! Definitely for the Googlers! :stuck_out_tongue: :smile:

Thank you! Found this while googling :smile:

Thank you so much for this information!

Thanks!

Hey Theo,

I patched the libusb in Win8.1.
I use VS2012 and OF 0.8.1.
I got errors.

I am not very sure, if I did right to patch the libusb. I downloaded the patch and put them in ofxKinectV2/libs/libusbx. Is this right?


Atif

Thanks, you save my day!

A googler (user of, not working for) thanks you!

1 Like

Works great, thanks!

Yes! Thanks. solved compiling ofxSyphon :slight_smile:

Thank you!