CMake linking problem

懵懂的女人 提交于 2019-12-03 14:31:23

Doh, just needed to replace CMAKE_LINKER_FLAGS with CMAKE_EXE_LINKER_FLAGS.

The real problem is you mistyped the property name, it's LINK_FLAGS, not LINKER_FLAGS. Your solution is just a workaround.

You should find the library gstreamer-0.10, and use target_link_libraries to link it to your target. You need a FindGStream.cmake module, here is one I found with a google search:

http://gitorious.org/phonon/import/blobs/88743646f086352c5b41544ad6b0b48d2379df62/cmake/FindGStreamer.cmake

With a module like that, you would want something like this:

include(FindGStreamer.cmake) include_directories( ${GSTREAMER_INCLUDE_DIR}) add_definitions(${GSTREAMER_DEFINITIONS}) target_link_libraries(MPEG4GStreamer ${GSTREAMER_LIBRARIES})

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!