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.

Error in making GStreamer application

Other Parts Discussed in Thread: DM3730

I am working on DM3730 + Linux.

 

I installed code sourcery tool and DVSDK V4.02 and went through the steps in software developers guide to setup DVSDK.

Also followed step to export cross compilation environment.

Trying to attempt to build a test application, I got errors. The snapshot is as following:

[linux-devkit]:~/Desktop/Code-Sourcery/Applications> gcc Helloworld.c -o Helloword  -Wall `pkg-config --cflags --libs gstreamer-0.10`

/usr/bin/ld: skipping incompatible /usr/local/dvsdk/linux-devkit//arm-none-linux-gnueabi/usr/lib/libgstreamer-0.10.so when searching for -lgstreamer-0.10
/usr/bin/ld: cannot find -lgstreamer-0.10
collect2: ld returned 1 exit status

Any help would be appreciated.

Regards,

Salim

  • Hi Salim,

    I suspect a bug in the DVSDK Software Developer's Guide. Instead of 'gcc Helloworld.c -o Helloword  -Wall `pkg-config --cflags --libs gstreamer-0.10`' could you please try 'arm-none-linux-gnueabi-gcc Helloworld.c -o Helloword  -Wall `pkg-config --cflags --libs gstreamer-0.10`'

    Salim Mohamed said:
    /usr/bin/ld: skipping incompatible /usr/local/dvsdk/linux-devkit//arm-none-linux-gnueabi/usr/lib/libgstreamer-0.10.so when searching for -lgstreamer-0.10
    /usr/bin/ld: cannot find -lgstreamer-0.10
    collect2: ld returned 1 exit status

    This seems to indicate that its using the host compiler instead of codesourcery's cross compiler.