Compilation problem Gstreamer dm368evm dvsdk4.02.00.06
Hi,
I have exactly follow the instructions write on Software developers guide. But I have a compilation problem.
Software developers guide:
DVSDK Linux development kit includes the GStreamer development header files, libraries and package
configs.
1. First, configure your cross compilation environment #Setting_up_cross_compilation_environment
2. Next, follow the typical GStreamer recommended method for compiling your application. e.g.
host $ cd <directory where your application is>
host $ gcc -o decode decode.c `pkg-config --libs --cflags gstreamer-0.10`
My step for the compilation:
stephane@Tamara:~$ export DVSDK="/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06"
stephane@Tamara:~$ source ${DVSDK}/linux-devkit/environment-setup
[linux-devkit]:~> cd workdir/
[linux-devkit]:~/workdir> gcc -o main main.c `pkg-config --libs --cflags gstreamer-0.10`
main.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bus_call’
main.c:41: error: expected ‘)’ before ‘*’ token
main.c: In function ‘main’:
main.c:65: error: ‘GMainLoop’ undeclared (first use in this function)
main.c:65: error: (Each undeclared identifier is reported only once
main.c:65: error: for each function it appears in.)
main.c:65: error: ‘loop’ undeclared (first use in this function)
main.c:67: error: ‘GstElement’ undeclared (first use in this function)
main.c:67: error: ‘pipeline’ undeclared (first use in this function)
main.c:67: error: ‘source’ undeclared (first use in this function)
main.c:67: error: ‘queue’ undeclared (first use in this function)
main.c:67: error: ‘convert’ undeclared (first use in this function)
main.c:67: error: ‘encoder’ undeclared (first use in this function)
main.c:67: error: ‘rtpp’ undeclared (first use in this function)
main.c:67: error: ‘sink’ undeclared (first use in this function)
main.c:68: error: ‘GstBus’ undeclared (first use in this function)
main.c:68: error: ‘bus’ undeclared (first use in this function)
main.c:73: error: ‘NULL’ undeclared (first use in this function)
main.c:73: error: ‘FALSE’ undeclared (first use in this function)
main.c:112: error: ‘GST_STATE_PLAYING’ undeclared (first use in this function)
main.c:120: error: ‘GST_STATE_NULL’ undeclared (first use in this function)
So he can't not recognize elements from Gstreamer.
What I have forgotten ?
Regards
Maxime Suire