3

setting the header file path in MAKEFILE

view full story
linux-howto

http://www.linuxforums.org – Hello, I am trying to compile the gstreamer. for that i tries make to compile and i got some error. That error shows that it didnt find the correct header file where it searches for header file. now how to change that searching path in 'Makefile" errors are Code: dec_la-mfw_gst_aacdec.o mfw_gst_aacdec.c:52:32: error: aacd_dec_interface.h: No such file or directory In file included from mfw_gst_aacdec.c:53: mfw_gst_aacdec.h:96: error: expected specifier-qualifier-list before 'AACD_Block_Params' mfw_gst_aacdec.c:113: error: 'AACD_INPUT_BUFFER_SIZE' undeclared here (not in a function) mfw_gst_aacdec.c:117: error: 'INTERNAL_BS_BUFSIZE' undeclared here (not in a function) mfw_gst_aacdec.c:161: error: expected ')' before '*' token mfw_gst_aacdec.c:170: error: expected ')' before '*' token mfw_gst_aacdec.c:172: error: expected ')' before '*' token mfw_gst_aacdec.c:173: error: expected ')' before '*' token mfw_gst_aacdec.c:174: error: expected ')' before '*' token mfw_gst_aacdec.c: In function 'App_FindFileType': mfw_gst_aacdec.c:240: error: 'AACD_App_params' has no member named 'App_adif_header_present' mfw_gst_aacdec.c:245: error: 'AACD_App_params' has no member named 'App_adts_header_present' mfw_gst_aacdec.c: At top level: mfw_gst_aacdec.c:253: error: expected ')' before '*' token mfw_gst_aacdec.c: In function 'App_bs_readinit': mfw_gst_aacdec.c:359: error: 'BIT_COUNTER_INIT' undeclared (first use in this function) mfw_gst_aacdec.c:359: error: (Each undeclared identifier is reported only once mfw_gst_aacdec.c:359: error: for each function it appears in.) mfw_gst_aacdec.c: In function 'App_bs_read_bits': mfw_gst_aacdec.c:399: error: 'AACD_App_params' has no member named 'BitsInHeader' mfw_gst_aacdec.c:408: error: 'MIN_REQD_BITS' undeclared (first use in this function) mfw_gst_aacdec.c: In function 'App_bs_byte_align': mfw_gst_aacdec.c:461: error: 'MIN_REQD_BITS' undeclared (first use in this function) mfw_gst_aacdec.c:464: error: 'AACD_App_params' has no member named 'BitsInHeader' mfw_gst_aacdec.c: At top level: But the header file are in the location of Code: root@ariem-desktop:/gst-fsl-plugin-1.6.0/src# find /home/ -iname "aacd_dec_interface.h" /home/ariem/Desktop/plugins/fsl_linux_sdk_codecs_1.6.0_1/fsl-mm-codeclib-1.6.0/ghdr/aacd_dec_interface.h root@ariem-desktop:/gst-fsl-plugin-1.6.0/src# Some specific part in "Makefile" which is needed for denoting the path for hearder file Code: BUILD_GCC_TRUE = # CC = gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 -I/usr/include/mm_ghdr CPP = gcc -E CPPFLAGS = CXX = g++ CXXCPP = g++ -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = -g -O2 CYGPATH_W = echo DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"\" -DVERSION=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 DEPDIR = .deps ECHO = echo ECHO_C = ECHO_N = -n ECHO_T = EGREP = grep -E EXEEXT = F77 = FFLAGS = FSL_MM_CORE_CFLAGS = -I/usr/include/mm_ghdr  FSL_MM_CORE_LIBS = GST_BASE_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 GST_BASE_LIBS = -pthread -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 GST_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 GST_LIBS = -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 GST_MAJORMINOR = 0.10 GST_PLUGINS_BASE_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 GST_PLUGINS_BASE_LIBS = -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 GST_PLUGIN_LDFLAGS = -module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).* HAVE_PKGCONFIG = yes INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s LDFLAGS = Can anyone help me. In which area in makefile i have to change?i am confused. Please help me (HowTos)