全志Linux Tina编译demoOmxVdec错误

测试裸流

 

Making install in demoOmxVdec
make[6]: Entering directory '/home/liuxueneng/WorkCode/Homlet-Tina-H2_H3/out/dolphin-p1/compile_dir/target/libcedarx/libcedarx/demo/demoOmxVdec'
  CXX      demoOmxVdec-demoOmxVdec.o
In file included from ./demoOmxVdec.cpp:12:0:
./OmxCodec.h:4:23: fatal error: OMX_Types.h: No such file or directory
compilation terminated.
Makefile:576: recipe for target 'demoOmxVdec-demoOmxVdec.o' failed
make[6]: *** [demoOmxVdec-demoOmxVdec.o] Error 1
make[6]: Leaving directory '/home/liuxueneng/WorkCode/Homlet-Tina-H2_H3/out/dolphin-p1/compile_dir/target/libcedarx/libcedarx/demo/demoOmxVdec'

编译的文件位于

.libcedarx/libcedarx/demo/demoOmxVdec

 

查找头文件位置

$find ./ -name "OMX_Types.h"
./libcedarc/openmax/include/OMX_Types.h
$ls ./libcedarc/openmax/include/
OMX_Audio.h      OMX_ContentPipe.h  OMX_Image.h     OMX_Index.h     OMX_Other.h  OMX_VideoExt.h
OMX_Component.h  OMX_Core.h         OMX_IndexExt.h  OMX_IVCommon.h  OMX_Types.h  OMX_Video.h

现在需要omx这个头文件到路径包含到对应的Makefile里面,

                                                                               
 349 demoOmxVdec_CFLAGS = $(CFLAGS_CDXG) $(LOCAL_INCLUDE)                          
 350 demoOmxVdec_CPPFLAGS = $(CPPFLAGS_CDXG) $(LOCAL_INCLUDE)                      
 351 LOCAL_INCLUDE = -I$(top_srcdir) \                                             
 352                 -I$(top_srcdir)/libcore/base/include \                        
 353                 -I$(top_srcdir)/libcore/stream/include \                      
 354                 -I$(top_srcdir)/libcore/parser/include \                      
 355                 -I$(top_srcdir)/libcore/common/iniparser \                    
 356                 -I$(top_srcdir)/libcore/playback/include/ \                   
 357                 -I$(top_srcdir)/external/include/adecoder \                   
 358                 -I$(top_srcdir)/external/include \                            
 359                 -I$(top_srcdir)/../libcedarc/include \                        
 360                 -I$(top_srcdir)/../libcedarc/openmax/omxcore/inc/ 

查看Makefile发现LOCAL_INCLUDE原本是想包含该头文件路径,但是却被写错了“

-I$(top_srcdir)/../libcedarc/openmax/omxcore/inc/ 

正确的应该是

-I$(top_srcdir)/../libcedarc/openmax/include/

Makefile是由Makefile.am-->Makefile.in自动生成,正常需要修改Makefile.am文件然后重新configure生成新的Makefile执行Make
但在这里修改比较小,而且我只需要重新编译出结果即可,所以直接修改Makefile修正头文件路径即可。

另外在demo目录下的Makefile.am中有针对

demoOmxVdec demoOmxVenc

编译屏蔽的注释,具体原因不详。。。

   1 if XPLAYERDEMO_ENABLE                                                         
   2 SUBDIRS = xplayerdemo demoOmxVdec parserdemo                                  
   3 endif                                                                         
   4                                                                               
   5 #SUBDIRS = muxtest parserdemo demoVdecoder demoVencoder xmetademo \           
   6 #          jpegdemo recoderdemo xplayerdemo                                   
   7 #not enable omx in linux default                                              
   8 #demoOmxVdec demoOmxVenc   
demoOmxVdec parserdemo 是我自己加进去编译的。

转载于:https://www.cnblogs.com/tid-think/p/10815052.html

你可能感兴趣的:(全志Linux Tina编译demoOmxVdec错误)