mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修正posix系统下编译失败的bug
This commit is contained in:
parent
c13d18a352
commit
ec6edb5f24
@ -68,7 +68,7 @@ endif(MP4V2_FOUND)
|
|||||||
#查找x264是否安装
|
#查找x264是否安装
|
||||||
find_package(X264 QUIET)
|
find_package(X264 QUIET)
|
||||||
if(X264_FOUND)
|
if(X264_FOUND)
|
||||||
message(STATUS "找到x264库:\"${X264_INCLUDE_DIR}\",ENABLE_X264宏已打开")
|
message(STATUS "找到x264库:\"${X264_INCLUDE_DIRS}\",ENABLE_X264宏已打开")
|
||||||
include_directories(${X264_INCLUDE_DIRS})
|
include_directories(${X264_INCLUDE_DIRS})
|
||||||
add_definitions(-DENABLE_X264)
|
add_definitions(-DENABLE_X264)
|
||||||
list(APPEND LINK_LIB_LIST ${X264_LIBRARIES})
|
list(APPEND LINK_LIB_LIST ${X264_LIBRARIES})
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
* Author: xzl
|
* Author: xzl
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
|
#include <dirent.h>
|
||||||
|
#endif //!defined(_WIN32)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -19,6 +23,7 @@
|
|||||||
#include "Util/mini.h"
|
#include "Util/mini.h"
|
||||||
#include "Util/NoticeCenter.h"
|
#include "Util/NoticeCenter.h"
|
||||||
|
|
||||||
|
|
||||||
using namespace ZL::Util;
|
using namespace ZL::Util;
|
||||||
|
|
||||||
namespace ZL {
|
namespace ZL {
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
#ifndef SRC_SHELL_CMD_H_
|
#ifndef SRC_SHELL_CMD_H_
|
||||||
#define SRC_SHELL_CMD_H_
|
#define SRC_SHELL_CMD_H_
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
|
#include <getopt.h>
|
||||||
|
#endif //!defined(_WIN32)
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
Loading…
Reference in New Issue
Block a user