您好,我在编译encodets例程时,报如下错:
root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06# make demos
. /home/qxd/dm365/dvsdk_dm365_4_02_00_06/linux-devkit/environment-setup ; cd /home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01/qtInterface ; qmake ; make PLATFORM=dm365
make[1]: Entering directory `/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01/qtInterface'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01/qtInterface'
make -C /home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01 dm365 DVSDK_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06 XDC_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/xdctools_3_16_03_36 CE_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/codec-engine_2_26_02_11 FC_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/framework-components_2_26_00_01 CMEM_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/linuxutils_2_26_01_02 CODEC_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/codecs-dm365_4_02_00_00 XDAIS_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/xdais_6_26_01_03 LINK_INSTALL_DIR= DMAI_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dmai_2_20_00_15 MVTOOL_DIR=/opt/arm-2009q1-203/ CC=/opt/arm-2009q1-203//bin/arm-none-linux-gnueabi-gcc AR=/opt/arm-2009q1-203//bin/arm-none-linux-gnueabi-ar CROSS_COMPILE=/opt/arm-2009q1-203//bin/arm-none-linux-gnueabi- LINUXLIBS_INSTALL_DIR=/home/qxd/dm365/dvsdk_dm365_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr PLATFORM=dm365
make[1]: Entering directory `/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01'
Making all in subdirectory dm365…
make -C dm365
make[2]: Entering directory `/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01/dm365'
Making all in subdirectory encodets…
Compiling writer.o from writer.c..
writer.c:62:27: error: libavutil/opt.h: No such file or directory
writer.c:63:35: error: libavutil/mathematics.h: No such file or directory
writer.c:64:34: error: libavformat/avformat.h: No such file or directory
writer.c:65:32: error: libswscale/swscale.h: No such file or directory
writer.c:66:38: error: libswresample/swresample.h: No such file or directory
writer.c: In function 'create_default_filename':
writer.c:113: warning: passing argument 1 of 'close' makes integer from pointer without a cast
writer.c:123: warning: control reaches end of non-void function
writer.c: In function 'writerThrFxn':
writer.c:207: warning: passing argument 1 of 'fsync' makes integer from pointer without a cast
writer.c:223: warning: pointer targets in initialization differ in signedness
writer.c:241: warning: passing argument 1 of 'fsync' makes integer from pointer without a cast
writer.c:260: warning: passing argument 1 of 'fsync' makes integer from pointer without a cast
writer.c:290: warning: passing argument 1 of 'fsync' makes integer from pointer without a cast
writer.c:149: warning: unused variable 't'
writer.c:148: warning: unused variable 'times'
writer.c:147: warning: unused variable 'Num'
writer.c:146: warning: unused variable 'buf'
make[3]: *** [writer.o] Error 1
make[2]: *** [encodets] Error 2
make[2]: Leaving directory `/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01/dm365'
make[1]: *** [dm365] Error 2
make[1]: Leaving directory `/home/qxd/dm365/dvsdk_dm365_4_02_00_06/dvsdk-demos_4_02_00_01'
make: *** [demos] Error 2
root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06#
请问是否是编译环境不对?
谢谢!
Chris Meng:
你好,
找不到文件和路径,一般来说还是编译环境的路径设置的问题,能否检查一下。