[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-users] fix detect define like HAVE_FUN_*
From: |
Alexander Kozyrev |
Subject: |
[Linphone-users] fix detect define like HAVE_FUN_* |
Date: |
Wed, 09 Dec 2015 14:15:06 +0100 |
============= [ fix detect define like HAVE_FUN_* ]
-- Looking for avcodec_get_context_defaults3
-- Looking for avcodec_get_context_defaults3 - not found
-- Looking for avcodec_open2
-- Looking for avcodec_open2 - not found
-- Looking for avcodec_encode_video2
-- Looking for avcodec_encode_video2 - not found
-- Looking for av_frame_alloc
-- Looking for av_frame_alloc - not found
-- Looking for av_frame_free
-- Looking for av_frame_free - not found
-- Looking for av_frame_unref
-- Looking for av_frame_unref - not found
but this function present in libavcodec/* and libavutil/*
errors in WORK/desktop/Build/ms2/CMakeFiles/CMakeError.log
no library pthread and math for build test
so just add it into ms2/cmake/FindFFMpeg.cmake
patch fix for this
diff -urNw mediastreamer2.orig/cmake/FindFFMpeg.cmake
mediastreamer2/cmake/FindFFMpeg.cmake
--- mediastreamer2.orig/cmake/FindFFMpeg.cmake Thu Jun 18 19:53:18
2015
+++ mediastreamer2/cmake/FindFFMpeg.cmake Wed Dec 9 12:58:25 2015
@@ -74,8 +74,8 @@
PATH_SUFFIXES bin lib
)
-set(FFMPEG_INCLUDE_DIRS ${LIBAVCODEC_INCLUDE_DIRS}
${LIBAVUTIL_INCLUDE_DIRS} ${LIBSWSCALE_INCLUDE_DIRS})
-set(FFMPEG_LIBRARIES ${LIBAVCODEC_LIBRARIES} ${LIBAVUTIL_LIBRARIES}
${LIBSWSCALE_LIBRARIES})
+set(FFMPEG_INCLUDE_DIRS ${LIBAVCODEC_INCLUDE_DIRS}
${LIBSWSCALE_INCLUDE_DIRS} ${LIBAVUTIL_INCLUDE_DIRS})
+set(FFMPEG_LIBRARIES ${LIBAVCODEC_LIBRARIES} ${LIBSWSCALE_LIBRARIES}
${LIBAVUTIL_LIBRARIES})
list(REMOVE_DUPLICATES FFMPEG_INCLUDE_DIRS)
list(REMOVE_DUPLICATES FFMPEG_LIBRARIES)
@@ -83,6 +83,7 @@
cmake_push_check_state(RESET)
list(APPEND CMAKE_REQUIRED_INCLUDES ${FFMPEG_INCLUDE_DIRS})
list(APPEND CMAKE_REQUIRED_LIBRARIES ${FFMPEG_LIBRARIES})
+ list(APPEND CMAKE_REQUIRED_FLAGS "-lpthread -lm")
if(MSVC)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -Dinline=__inline)
endif()
===========
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-users] fix detect define like HAVE_FUN_*,
Alexander Kozyrev <=