<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I have a Cmake that looks like this now.<br>
<font size="-1"> cmake_minimum_required(VERSION 2.8)<br>
project(InitGStreamer)<br>
add_executable(${PROJECT_NAME} main.cpp )</font></p>
<p><font size="-1"> find_package(PkgConfig)<br>
pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4 )</font><br>
</p>
<p><br>
</p>
<p>This is giving me the following error</p>
<p><style type="text/css"></style><font size="-1"> Running "/usr/bin/cmake /home/rick/dev/qt_workspace/InitGStreamer '-GCodeBlocks - Unix Makefiles'" in /tmp/qtc-cmake-yMRXIp.<br>
-- Checking for module 'gstreamer-1.0>=1.4'<br>
-- <br>
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):<br>
A required package was not found<br>
Call Stack (most recent call first):<br>
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)<br>
CMakeLists.txt:8 (pkg_check_modules)<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
See also "/tmp/qtc-cmake-yMRXIp/CMakeFiles/CMakeOutput.log".<br>
*** cmake process exited with exit code 1.</font><br>
</p>
<p>Even when I remove the >=1.4 part of pkg_check.. I'm still getting the same error.</p>
<p><br>
</p>
<p>I am lost, I really have no clue here. I've tried reading the information that's out there, but it does not make sense to me. I don't know if PkgConfig is just a place holder for an actual name of some package, if that is the actual value that needs to be
passed in. I thought I had gstreamer-1.0 installed on my machine. Maybe I don't.</p>
<p>Here is what I get when I search for gstreamer in Synaptic Package Manager and filter on things that are installed.
<br>
</p>
<p><img alt="what is installed" src="cid:part1.70B05F00.1DFEFB0B@hotmail.com" height="750" width="888"><br>
</p>
<p>All I'm trying to do here is follow along with the gstreamer documentation so that I can ramp up on gstreamer and use it. Are there examples out there that are very explicit in how to:<br>
1) figure out what version of gstreamer you have installed<br>
2) shows you how to use CMake to compile against an app that is using gstreamer? Rather that is manually creating a cmake file or using the pkg-config options.
<br>
3) Lists out exactly what values you need in your cmake file? <br>
<br>
</p>
<p>Thanks for additional assistance.<br>
Rick<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 10/27/2016 06:31 AM, Nicolas Dufresne wrote:<br>
</div>
<blockquote cite="mid:1477575100.22468.22.camel@gmail.com" type="cite">
<pre wrap="">Le jeudi 27 octobre 2016 à 06:29 +0000, Rick Blacker a écrit :
</pre>
<blockquote type="cite">
<pre wrap=""> find_package(PkgConfig)
#aux_source_directory(. SRC_LIST)
#add_executable(${PROJECT_NAME} ${SRC_LIST})
include_directories( ${GSTREAMER_INCLUDE_DIR})
add_definitions(${GSTREAMER_DEFINITIONS})
#target_link_libraries(MPEG4GStreamer ${GSTREAMER_LIBRARIES})
</pre>
</blockquote>
<pre wrap="">
After loading the extension, you need to call function to check package
presence. The library check is done by this line:
pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
gstreamer-sdp-1.0>=1.4
gstreamer-video-1.0>=1.4
gstreamer-app-1.0>=1.4)
The list can be adjusted, the required version too.
Nicolas
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>