更新配置文件
This commit is contained in:
@ -31,10 +31,12 @@ file(GLOB_RECURSE MODULE_SAMPLE_SRC ../../../module_sample/*.c)
|
||||
include_directories(../../../module_sample)
|
||||
include_directories(../common)
|
||||
include_directories(application)
|
||||
include_directories(/home/300tc/library/ffmpeg_build/include)
|
||||
|
||||
include_directories(../../../../../psdk_lib/include)
|
||||
link_directories(../../../../../psdk_lib/lib/${TOOLCHAIN_NAME})
|
||||
link_libraries(${CMAKE_CURRENT_LIST_DIR}/../../../../../psdk_lib/lib/${TOOLCHAIN_NAME}/lib${PACKAGE_NAME}.a)
|
||||
link_directories(/home/300tc/library/ffmpeg_build/lib)
|
||||
|
||||
if (NOT EXECUTABLE_OUTPUT_PATH)
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||||
@ -48,7 +50,25 @@ add_executable(${PROJECT_NAME}
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../common/3rdparty)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} m dl)
|
||||
#target_link_libraries(${PROJECT_NAME} m dl)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
avformat
|
||||
avfilter
|
||||
avcodec
|
||||
swscale
|
||||
avutil
|
||||
swresample
|
||||
avdevice
|
||||
avutil
|
||||
postproc
|
||||
z
|
||||
m
|
||||
pthread
|
||||
rt
|
||||
crypt
|
||||
wiringPi
|
||||
dl
|
||||
)
|
||||
|
||||
add_custom_command(TARGET ${PROJECT_NAME}
|
||||
PRE_LINK COMMAND cmake ..
|
||||
|
||||
@ -35,12 +35,12 @@ extern "C" {
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
// ATTENTION: User must goto https://developer.dji.com/user/apps/#all to create your own dji sdk application, get dji sdk application
|
||||
// information then fill in the application information here.
|
||||
#define USER_APP_NAME "your_app_name"
|
||||
#define USER_APP_ID "your_app_id"
|
||||
#define USER_APP_KEY "your_app_key"
|
||||
#define USER_APP_LICENSE "your_app_license"
|
||||
#define USER_DEVELOPER_ACCOUNT "your_developer_account"
|
||||
#define USER_BAUD_RATE "460800"
|
||||
#define USER_APP_NAME "imager"
|
||||
#define USER_APP_ID "90210"
|
||||
#define USER_APP_KEY "2c309ca22fb1e67cc166ccc9dc261f4"
|
||||
#define USER_APP_LICENSE "JYdEUQRW5lsZANuJnMr9qGsD/1I3KyJL+es97f0qkC4QuCITbCjTIzQNkjk63nuShBtjtC4cCf9PdlLfGCGQWQ5rJDBURg9JbotJEXejpXJgTV/1Jq3ZAp9Jp7ajOhvClcKDzfOllPj/216BtYrC7G92CED39p4iUec5p4cG/ClHYAEKys+1cyHWufcV3COgqqCdxlveY0LlWXP44Q1e4vcFMfo4AqN4LghOO7fMdqsN6CLWNN0WEZu8GnU1TWzXAUE9uLjzqxH8WJLDJChBQvXdsxm/RTuER2mCu8NflMNDhnl+sWASiqTXJyZwN8gdu2fuDkU8umlhxQP+1Gk8ig=="
|
||||
#define USER_DEVELOPER_ACCOUNT "735056338@qq.com"
|
||||
#define USER_BAUD_RATE "115200"
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ extern "C" {
|
||||
|
||||
/*!< Attention: Select your hardware connection mode here.
|
||||
* */
|
||||
#define CONFIG_HARDWARE_CONNECTION DJI_USE_ONLY_USB_BULK_DEVICE
|
||||
#define CONFIG_HARDWARE_CONNECTION DJI_USE_ONLY_NETWORK_DEVICE
|
||||
|
||||
/*!< Attention: Select the sample you want to run here.
|
||||
* */
|
||||
|
||||
Reference in New Issue
Block a user