Skip to content

Instantly share code, notes, and snippets.

@randvoorhies
Last active December 25, 2015 00:19
Show Gist options
  • Save randvoorhies/6887471 to your computer and use it in GitHub Desktop.
Save randvoorhies/6887471 to your computer and use it in GitHub Desktop.
Patch for Homebrew OpenCV to fix: Undefined symbols for architecture x86_64: "_faacEncClose", referenced from: _Faac_encode_close in libavcodec.a(libfaac.o) _Faac_encode_init in libavcodec.a(libfaac.o) etc...
--- opencv-2.4.6.1/modules/highgui/CMakeLists.txt.orig 2013-10-08 10:16:00.000000000 -0700
+++ opencv-2.4.6.1/modules/highgui/CMakeLists.txt 2013-10-08 10:14:40.000000000 -0700
@@ -191,7 +191,7 @@
list(APPEND HIGHGUI_LIBRARIES ${BZIP2_LIBRARIES})
endif()
if(APPLE)
- list(APPEND HIGHGUI_LIBRARIES "-framework VideoDecodeAcceleration" bz2)
+ list(APPEND HIGHGUI_LIBRARIES "-framework VideoDecodeAcceleration -lmp3lame -lfaac -liconv -lx264 -lxvidcore" bz2)
endif()
endif(HAVE_FFMPEG)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment