cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
778 Views
Registered: ‎07-06-2016

Using Gstreamer in SDK

Jump to solution

Hello,

I'm trying to develop an application which uses gstreamer library in SDK, but I don't find the way to add properly the paths.

What I've done so far:

- Build petalinux with the gstreamer library and populate sdk sysroot folder.

- Add sysroot folder path to project settings-> miscellaneous:

--sysroot="/home/user/hdl/dev/Petalinux/uz7ev_evcc_sd_oob_2018_2/images/linux/sdk/sysroots/aarch64-xilinx-linux"

- Add paths to "Directories" and "Libraries" in project settings:

Untitled.jpg

Everything builds fine till I added the next function:

gst_app_src_set_caps(GST_APP_SRC(appsrc), caps);

I've got the next error:

/home/user/hdl/dev/src/sdk/vlu2_ximea_gstreamer_test/Debug/../src/CameraTest.c:90: undefined reference to `GST_APP_SRC'
makefile:36: recipe for target 'vlu2_ximea_gstreamer_test.elf' failed
/home/user/hdl/dev/src/sdk/vlu2_ximea_gstreamer_test/Debug/../src/CameraTest.c:90: undefined reference to `gst_app_src_set_caps'

The weird thing is that if I click on  "GST_APP_SRC" or "gst_app_src_set_caps" goes to the file and I can see they are defined. So I think I've got something wrong in the setup or lib paths ....

Does anyone know how to setup properly gstreamer lib to work in SDK?

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Voyager
Voyager
686 Views
Registered: ‎07-06-2016

I've finally got it working,  it looks like there's not much information about gstreamer in sdk so I hope this solution helps to someone else in the future.

To fully use gstreamer lib components/plugins in SDK it will be necesary to add the next libraries:

Untitled.jpg

View solution in original post

4 Replies
Highlighted
Moderator
Moderator
753 Views
Registered: ‎09-12-2007

Try adding the library too. 

 

Right click on the app, and C/C++ Build Settings:

libs.PNG

0 Kudos
Highlighted
Voyager
Voyager
744 Views
Registered: ‎07-06-2016

Hi @stephenm , thanks for your reply and suggestion but I forgot to mention that I had already added the libraries:

Gstreamer-1.0

Glib-2.0

and unfortunately it doesn't help...

Any more ideas?

0 Kudos
Highlighted
Voyager
Voyager
687 Views
Registered: ‎07-06-2016

I've finally got it working,  it looks like there's not much information about gstreamer in sdk so I hope this solution helps to someone else in the future.

To fully use gstreamer lib components/plugins in SDK it will be necesary to add the next libraries:

Untitled.jpg

View solution in original post

Highlighted
Moderator
Moderator
675 Views
Registered: ‎09-12-2007

Great, Thanks for getting back here.

0 Kudos