This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compilation problem Gstreamer dm368evm dvsdk4.02.00.06

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

  • Hello,

    1) First of all you should not be using "x86 gcc" compiler to compile binary which will run on ARM. Instead you should be using arm-none-gnueabai-gcc compiler from CS2009q1.

    2) Have you tried compiling your application outside the cross compilation environment ? i.e on X86 PC to ensure that your application compiles succesfully ?

    3) If above tip does not help, then please post the output of "pkg-config --cflags --libs gstreamer-0.10" (this command should be run in cross compile environment).

    Thanks

    Brijesh

      

     

  • Hi Brijesh,

    This is what  "pkg-config --cflags --libs gstreamer-0.10 gives:

    [linux-devkit]:~/workdir> pkg-config --cflags --libs gstreamer-0.10


    -pthread -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include/gstreamer-0.10 -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include/glib-2.0 -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/glib-2.0/include -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include/libxml2  -pthread -L/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0 

    What should I do?

     

    Thanks

    Maxime Suire

  • Hi,

    I tried to use a makefile:


    include ${DVSDK}/Rules.make

    main:
        $(CSTOOL_PREFIX)gcc -o main main.c `pkg-config --libs --cflags gstreamer-0.10`

     

    It's done that:

    [linux-devkit]:~/workdir> make main
    /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc -o main main.c `pkg-config --libs --cflags gstreamer-0.10`
    main.c:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bus_call'
    main.c:38: error: expected ')' before '*' token
    main.c: In function 'main':
    main.c:62: error: 'GMainLoop' undeclared (first use in this function)
    main.c:62: error: (Each undeclared identifier is reported only once
    main.c:62: error: for each function it appears in.)
    main.c:62: error: 'loop' undeclared (first use in this function)
    main.c:64: error: 'GstElement' undeclared (first use in this function)
    main.c:64: error: 'pipeline' undeclared (first use in this function)
    main.c:64: error: 'source' undeclared (first use in this function)
    main.c:64: error: 'queue' undeclared (first use in this function)
    main.c:64: error: 'convert' undeclared (first use in this function)
    main.c:64: error: 'encoder' undeclared (first use in this function)
    main.c:64: error: 'rtpp' undeclared (first use in this function)
    main.c:64: error: 'sink' undeclared (first use in this function)
    main.c:65: error: 'GstBus' undeclared (first use in this function)
    main.c:65: error: 'bus' undeclared (first use in this function)
    main.c:70: error: 'NULL' undeclared (first use in this function)
    main.c:70: error: 'FALSE' undeclared (first use in this function)
    main.c:109: error: 'GST_STATE_PLAYING' undeclared (first use in this function)
    main.c:117: error: 'GST_STATE_NULL' undeclared (first use in this function)
    make: *** [main] Erreur 1

     

    What is the problem?

     

    Regards

     

    Maxime Suire

     

     

     

     

  • Hello,

    The output of pkg-config looks good to me and now i think there might be something wrong with your gstreamer application. I have responded to somewhat similar issue on other forum post http://e2e.ti.com/support/embedded/f/354/p/101383/355783.aspx#355783. I would suggest try compiling sample application from gst application guide. In summary, if you are able to build gstreamer_ti target from top label DVSDK makefile then you have gstreamer base libraries installed properly and that should be good enough for typical application development.

    Thanks

    Brijesh

     

  • Hello,

    I have tried to compile the demo programme of GStreamer and I have always some problems.

    [linux-devkit]:~/workdir> make main 0
    /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc -Wall 'pkg-config --cflags --libs gstreamer-0.10' main.c -o main
    arm-none-linux-gnueabi-gcc: pkg-config --cflags --libs gstreamer-0.10: No such file or directory
    main.c:1:21: error: gst/gst.h: No such file or directory
    main.c:2:18: error: glib.h: No such file or directory
    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:64: error: 'GMainLoop' undeclared (first use in this function)
    main.c:64: error: (Each undeclared identifier is reported only once
    main.c:64: error: for each function it appears in.)
    main.c:64: error: 'loop' undeclared (first use in this function)
    main.c:66: error: 'GstElement' undeclared (first use in this function)
    main.c:66: error: 'pipeline' undeclared (first use in this function)
    main.c:66: error: 'source' undeclared (first use in this function)
    main.c:66: warning: left-hand operand of comma expression has no effect
    main.c:66: error: 'demuxer' undeclared (first use in this function)
    main.c:66: warning: left-hand operand of comma expression has no effect
    main.c:66: error: 'decoder' undeclared (first use in this function)
    main.c:66: warning: left-hand operand of comma expression has no effect
    main.c:66: error: 'conv' undeclared (first use in this function)
    main.c:66: warning: left-hand operand of comma expression has no effect
    main.c:66: error: 'sink' undeclared (first use in this function)
    main.c:66: warning: left-hand operand of comma expression has no effect
    main.c:67: error: 'GstBus' undeclared (first use in this function)
    main.c:67: error: 'bus' undeclared (first use in this function)
    main.c:70: warning: implicit declaration of function 'gst_init'
    main.c:72: warning: implicit declaration of function 'g_main_loop_new'
    main.c:72: error: 'NULL' undeclared (first use in this function)
    main.c:72: error: 'FALSE' undeclared (first use in this function)
    main.c:77: warning: implicit declaration of function 'g_printerr'
    main.c:83: warning: implicit declaration of function 'gst_pipeline_new'
    main.c:84: warning: implicit declaration of function 'gst_element_factory_make'
    main.c:98: warning: implicit declaration of function 'g_object_set'
    main.c:98: warning: implicit declaration of function 'G_OBJECT'
    main.c:101: warning: implicit declaration of function 'gst_pipeline_get_bus'
    main.c:101: warning: implicit declaration of function 'GST_PIPELINE'
    main.c:102: warning: implicit declaration of function 'gst_bus_add_watch'
    main.c:102: error: 'bus_call' undeclared (first use in this function)
    main.c:103: warning: implicit declaration of function 'gst_object_unref'
    main.c:107: warning: implicit declaration of function 'gst_bin_add_many'
    main.c:107: warning: implicit declaration of function 'GST_BIN'
    main.c:112: warning: implicit declaration of function 'gst_element_link'
    main.c:113: warning: implicit declaration of function 'gst_element_link_many'
    main.c:114: warning: implicit declaration of function 'g_signal_connect'
    main.c:114: warning: implicit declaration of function 'G_CALLBACK'
    main.c:114: error: 'on_pad_added' undeclared (first use in this function)
    main.c:125: warning: implicit declaration of function 'g_print'
    main.c:126: warning: implicit declaration of function 'gst_element_set_state'
    main.c:126: error: 'GST_STATE_PLAYING' undeclared (first use in this function)
    main.c:131: warning: implicit declaration of function 'g_main_loop_run'
    main.c:136: error: 'GST_STATE_NULL' undeclared (first use in this function)
    main.c:139: warning: implicit declaration of function 'GST_OBJECT'
    make: *** [main] Erreur 1

    But when I make : pkg-config --cflags --libs gstreamer-0.10


    -pthread -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include/gstreamer-0.10 -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include/glib-2.0 -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/glib-2.0/include -I/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include/libxml2  -pthread -L/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0

     

    Any Idea?

     

    Regards

    Maxime Suire

  • Hi,

     

    Now I have got a new problem:

    [linux-devkit]:~/workdir> make main
    /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc -rpath-link -o main main.c `pkg-config --libs --cflags gstreamer-0.10`
    arm-none-linux-gnueabi-gcc: unrecognized option '-rpath-link'
    /home/stephane/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libgstreamer-0.10.so, not found (try using -rpath or -rpath-link)
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflateEnd'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzdirect'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzopen'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzclose'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `deflate'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflateInit2_'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflate'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzwrite'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `crc32'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `deflateEnd'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzdopen'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `deflateInit2_'
    /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzread'
    collect2: ld returned 1 exit status
    make: *** [main] Erreur 1

     

    But when I'm outside the cross-compile environment and I'm using gcc there is no problem

    gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) helloworld.c -o helloworld

    Regards

    Maxime Suire

  • Maxime Suire said:

    Now I have got a new problem:

    [linux-devkit]:~/workdir> make main
    /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc -rpath-link -o main main.c `pkg-config --libs --cflags gstreamer-0.10`
    arm-none-linux-gnueabi-gcc: unrecognized option '-rpath-link'

     

    - I think that the message complains about the order of the options. -rpath-link is a linker option so it should appear after the -o.
    Typically:
    /home/user/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -o -rapth-link factorial hello.c

    - Make sure to look at the -rapth-link section of the Linker document:
    http://www.codesourcery.com/sgpp/lite/arm/portal/release858

    Anthony

     

  • Hi,

    Thanks for all your replys

    I'm trying to use

    /home/user/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -o -rapth-link factorial hello.c

    I must specify a directory after -rpath-link ?

    My debug before using -rpath-link was:

    /home/stephane/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/libgstreamer-0.10.so, not found (try using -rpath or -rpath-link)

    So my makefile looks like:

    include ${DVSDK}/Rules.make

    main:
        $(CSTOOL_PREFIX)gcc -Wall `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=`/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/` main


    I choose /home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/ directory because he contain libz.so.1

    It's the good directory in my case? It's the good way to use -rapth-link option?


    Regards,


    Maxime Suire

  • Maxime,

    --rpath-link is used to provide the path where the dynamic loader on the DM368 will find libz.so.1 when it runs on the DM368. So it needs to be the path in the target file system so "/usr/lib" not the path you used on the build PC. The linker finds the /usr/lib path relative to LD_LIBRARY_PATH.

    Iain

  • Hi Iain,

    Thanks for your reply.

    I'm trying to using -rpath-rlink option

    MY MAKEFILE:

    include ${DVSDK}/Rules.make


    main:
        $(CSTOOL_PREFIX)gcc  `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=/home/stephane/targetfs/usr/lib main

     

    MY DEBUG:

    [linux-devkit]:~/Bureau/comp> make main
    /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc  `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=/home/stephane/targetfs/usr/lib main
    arm-none-linux-gnueabi-gcc: main: No such file or directory
    make: *** [main] Erreur 1

     

    I have probably a syntax error, but which one?

    Did anyone have an idea?

    Regards 

     

    Maxime Suire

  • Maxime,

    I am not that familiar with the codesourcery tools so I can not help much.
    Could you please look at the following forum post:
    http://sourcery.mentor.com/archives/arm-gnu/msg03368.html
    http://sourcery.mentor.com/archives/arm-gnu/msg02885.html

    Also mentor graphic has setup a forum specifically on Codesroucery workbench.
    May be you could ask there for some help:
    http://communities.mentor.com/mgcx/community/embedded_software/sourcery_tools

    Hope it helps.

    Anthony

     

  • Also Iain gave save hint above. It seems that the path you have is the one of the host PC, not the one on the target.

  •     Hi,

        Thank for your replies
    I posted at http://communities.mentor.com/mgcx/thread/7789 but I haven't got answer.
    So you will find in this post the detail of manipulations I have tried to compile an Gstremer application for DM368EVM.


    THE STRUCTURE OF THIS POST

    1/ Fisrt TRY I use TARGET FILE SYSTEM (NFS SERVER)LIBRARY located at: ${HOME}/tarfetfs/usr/lib
        1.1/ SETTING UP COMPILATION ENVIRONEMENT
        1.2/ THE MAKEFILE
        1.3/ ATTEMPT TO COMPILE
    2/ Sencond TRY with DVSDk LIBRARY located at: ${HOME}/tarfetf/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/
        2.1/ SETTING UP COMPILATION ENVIRONEMENT
        2.2/ THE MAKEFILE
        2.3/ ATTEMPT TO COMPILE
    3/QUESTIONS
        3.1/
        3.2/
        3.3/
        3.4/



    1/ Fisrt TRY I use TARGET FILE SYSTEM (NFS SERVER)LIBRARY located at: ${HOME}/tarfetfs/usr/lib
       
        1.1/ SETTING UP COMPILATION ENVIRONEMENT


        stephane@Tamara:~$ export DVSDK="/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/"
        stephane@Tamara:~$ source ${DVSDK}/linux-devkit/environment-setup


        ---------------------ENVIRONEMENT SETUP FILE--------------------------------
        [linux-devkit]:~/Bureau/comp> cat ${DVSDK}/linux-devkit/environment-setup
        export SDK_PATH=/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit
        export TOOLCHAIN_PATH=/home/stephane/CodeSourcery/Sourcery_G++_Lite/
        export TARGET_SYS=arm-none-linux-gnueabi
        export CC=arm-none-linux-gnueabi-gcc
        export CPP="arm-none-linux-gnueabi-gcc -E"
        export NM=arm-none-linux-gnueabi-nm
        export RANLIB=arm-none-linux-gnueabi-ranlib
        export OBJCOPY=arm-none-linux-gnueabi-objcopy
        export STRIP=arm-none-linux-gnueabi-strip
        export AS=arm-none-linux-gnueabi-as
        export AR=arm-none-linux-gnueabi-ar
        export OBJDUMP=arm-none-linux-gnueabi-objdump
        export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
        export PATH=$SDK_PATH/bin:$TOOLCHAIN_PATH/bin:$PATH
        export CPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH
        export LIBTOOL_SYSROOT_PATH=$SDK_PATH/$TARGET_SYS
        export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS
        export PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS/usr/lib/pkgconfig
        export CONFIG_SITE=$SDK_PATH/site-config
        alias opkg="LD_LIBRARY_PATH=$SDK_PATH/lib $SDK_PATH/bin/opkg-cl -f $SDK_PATH/etc/opkg-sdk.conf -o $SDK_PATH"
        alias opkg-target="LD_LIBRARY_PATH=$SDK_PATH/lib $SDK_PATH/bin/opkg-cl -f $SDK_PATH/$TARGET_SYS/etc/opkg.conf -o $SDK_PATH/$TARGET_SYS"
        export CC=arm-none-linux-gnueabi-gcc
        export CPP="arm-none-linux-gnueabi-gcc -E"
        export NM=arm-none-linux-gnueabi-nm
        export RANLIB=arm-none-linux-gnueabi-ranlib
        export OBJCOPY=arm-none-linux-gnueabi-objcopy
        export STRIP=arm-none-linux-gnueabi-strip
        export AS=arm-none-linux-gnueabi-as
        export AR=arm-none-linux-gnueabi-ar
        export OBJDUMP=arm-none-linux-gnueabi-objdump
        export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
        export OE_QMAKE_CC=${TARGET_SYS}-gcc
        export OE_QMAKE_CXX=${TARGET_SYS}-g++
        export OE_QMAKE_LINK=${TARGET_SYS}-g++
        export OE_QMAKE_AR=${TARGET_SYS}-ar
        export OE_QMAKE_LIBDIR_QT=${SDK_PATH}/${TARGET_SYS}/usr/lib
        export OE_QMAKE_INCDIR_QT=${SDK_PATH}/${TARGET_SYS}/usr/include/qtopia
        export OE_QMAKE_MOC=${SDK_PATH}/bin/moc4
        export OE_QMAKE_UIC=${SDK_PATH}/bin/uic4
        export OE_QMAKE_UIC3=${SDK_PATH}/bin/uic34
        export OE_QMAKE_RCC=${SDK_PATH}/bin/rcc4
        export OE_QMAKE_QDBUSCPP2XML=${SDK_PATH}/bin/qdbuscpp2xml4
        export OE_QMAKE_QDBUSXML2CPP=${SDK_PATH}/bin/qdbusxml2cpp4
        export OE_QMAKE_QT_CONFIG=${SDK_PATH}/${TARGET_SYS}/usr/share/qtopia/mkspecs/qconfig.pri
        export QMAKESPEC=${SDK_PATH}/${TARGET_SYS}/usr/share/qtopia/mkspecs/linux-g++
        export OE_QMAKE_LDFLAGS="-L${SDK_PATH}/${TARGET_SYS}/usr/lib -Wl,-rpath-link,${SDK_PATH}/${TARGET_SYS}/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
        export OE_QMAKE_STRIP="echo"
        export PS1="\[\e[32;1m\][linux-devkit]\[\e[0m\]:\w> "


        1.2/ THE MAKEFILE

        [linux-devkit]:~/Bureau/comp> ls
        main.c  makefile
        [linux-devkit]:~/Bureau/comp> cat main.c
                     //////---------------------------------GSTREAMER_HELLO_WORLD----------------------------------///////////////
        [linux-devkit]:~/Bureau/comp> cat makefile

            include ${DVSDK}/Rules.make


            main:
                $(CSTOOL_PREFIX)gcc  `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=/home/stephane/targetfs/usr/lib main

        1.3/ ATTEMPT TO COMPILE

        [linux-devkit]:~/Bureau/comp> make main
        /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc  `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=/home/stephane/targetfs/usr/lib main
        arm-none-linux-gnueabi-gcc: main: No such file or directory
        make: *** [main] Erreur 1

    2/ Sencond TRY with DVSDk LIBRARY located at: ${HOME}/tarfetf/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/

        2.1/ SETTING UP COMPILATION ENVIRONEMENT


        stephane@Tamara:~$ export DVSDK="/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/"
        stephane@Tamara:~$ source ${DVSDK}/linux-devkit/environment-setup


        2.2/ THE MAKEFILE

        [linux-devkit]:~/Bureau/comp> ls
        main.c  makefile
        [linux-devkit]:~/Bureau/comp> cat main.c
                     //////---------------------------------GSTREAMER_HELLO_WORLD----------------------------------///////////////
        [linux-devkit]:~/Bureau/comp> cat makefile

            include ${DVSDK}/Rules.make


        main:
            $(CSTOOL_PREFIX)gcc  `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/ main


        2.3/ ATTEMPT TO COMPILE


        [linux-devkit]:~/Bureau/comp> make main
        /home/stephane/CodeSourcery/Sourcery_G++_Lite//bin/arm-none-linux-gnueabi-gcc  `pkg-config --cflags --libs gstreamer-0.10` main.c -o -rpath-link=/home/stephane/ti-dvsdk_dm368-evm_4_02_00_06/linux-devkit/arm-none-linux-gnueabi/usr/lib/ main
        arm-none-linux-gnueabi-gcc: main: No such file or directory
        make: *** [main] Erreur 1


    3/QUESTIONS

        3.1/

         
        For the moment nobody tell me exactly how to use -rpath-rlink option.

        Please can anyone can help me to understand this option, or explain to me how to compile an application with the compiler arm-none-linux-gnueabi-gcc and library GStreamer on DM368EVM. ???

        3.2/


        Are my makefiles correct ? Did I use the correct syntax with the -rpah-rlink option?

        3.3/


        Is the cross compilation environement correct?

        3.4/

        How to COMPILE an application with GSTREAMER on DM368EVM?



    THANKS FOR YOUR HELP

                            REGARDS
       
                        Maxime Suire
           



       

     


  • add  -lz  ,everything is OK