diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index ce28bb86..1b27a22c 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -19,4 +19,5 @@ add_subdirectory(httpserver.h-master/src) # ================= httpserver end ================= # add_subdirectory(cJSON-1.7.17) -add_subdirectory(libhv/libhv-1.3.2) \ No newline at end of file +add_subdirectory(libhv/libhv-1.3.2) +add_subdirectory(ffmpeg) \ No newline at end of file diff --git a/external/ffmpeg/CMakeLists.txt b/external/ffmpeg/CMakeLists.txt new file mode 100644 index 00000000..ef9bbcc5 --- /dev/null +++ b/external/ffmpeg/CMakeLists.txt @@ -0,0 +1,18 @@ + + +add_custom_target( + ffmpeg + # DEPENDS ${EXTERNAL_LIBS_OUTPUT_PATH}/libgo.a + # COMMAND mkdir ${GOAHEAD_UPLOAD_TMP_PATH} + # COMMAND cp ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/modify/http.c ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/src + # COMMAND touch ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/src/http.c + COMMAND test -f ${EXTERNAL_SOURCE_PATH}/ffmpeg/Makefile || tar -xf ffmpeg_6.1.1.orig.tar.xz + COMMAND cd ffmpeg-6.1.1 && ./configure --enable-cross-compile --target-os=linux --arch=arm64 + --cc=gcc + --cxx=g++ + --prefix=/home/xiaojiazhu/project/tmp + --disable-asm --enable-parsers --disable-decoders --enable-decoder=h264 --enable-decoder=aac + --disable-debug --enable-ffmpeg --enable-shared --enable-static --disable-stripping --disable-doc + COMMAND cd ffmpeg-6.1.1 && make + WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}/ffmpeg/ +) \ No newline at end of file diff --git a/external/ffmpeg/ffmpeg_6.1.1.orig.tar.xz b/external/ffmpeg/ffmpeg_6.1.1.orig.tar.xz new file mode 100755 index 00000000..3c4a2a24 Binary files /dev/null and b/external/ffmpeg/ffmpeg_6.1.1.orig.tar.xz differ