Mmm Donuts
Mmm Donuts

Reputation: 10285

GStreamer Tutorials - Unknown type name 'time_t'

I installed GStreamer from https://gstreamer.freedesktop.org/documentation/installing/on-mac-osx.html?gi-language=c and then downloaded the tutorials from https://gitlab.freedesktop.org/gstreamer/gst-docs/

Opening up the tutorials in XCode and running them yields:

Unknown type name 'time_t'; did you mean 'size_t'?

I think I might be missing a small step here like the wrong libraries are linked or something. Any advice would be great.

Upvotes: 2

Views: 589

Answers (1)

Alexander Pavlov
Alexander Pavlov

Reputation: 699

This is an issue of another header file with the same name (from libavutil in GStreamer) being imported before the system time.h. Setting "Always Search User Paths" to "No" in the project's Build Settings did not help, I had to manually insert system path, in my case /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys, before the GStreamer paths into "Header Search Paths" box. There's probably a better way

Upvotes: 2

Related Questions