After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747247 - Fix QtGStreamer lookup on Qt5
Fix QtGStreamer lookup on Qt5
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: qt-gstreamer
unspecified
Other Linux
: Normal normal
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-02 14:39 UTC by Aleix Pol
Modified: 2018-01-23 20:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aleix Pol 2015-04-02 14:39:58 UTC
No need to look-up the file, it will be in the current directory. If there's a different version it will have the same set of files.
Also it includes the targets file, so that we can link against the exported targets as "Qt5GStreamer".


diff --git a/cmake/modules/QtGStreamerConfig.cmake.in b/cmake/modules/QtGStreamerConfig.cmake.in
index 4b1f609..123ec01 100644
--- a/cmake/modules/QtGStreamerConfig.cmake.in
+++ b/cmake/modules/QtGStreamerConfig.cmake.in
@@ -68,10 +68,9 @@ endif()
 unset(_QTGSTREAMER_FIND_DEPS_ARGS)
 
 # include QtGStreamerConfigCommon.cmake from the same directory
-find_file(_QTGSTREAMER_CONFIG_COMMON_FILE QtGStreamerConfigCommon.cmake
-          PATHS ${_QTGSTREAMER_CONFIG_DIR} NO_DEFAULT_PATH)
-include(${_QTGSTREAMER_CONFIG_COMMON_FILE})
-unset(_QTGSTREAMER_CONFIG_COMMON_FILE)
+include("${CMAKE_CURRENT_LIST_DIR}/QtGStreamerConfigCommon.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/@QTGSTREAMER_PACKAGE_NAME@Targets.cmake")
 
 # compatibility variable
 set(QTGSTREAMER_FOUND ${@QTGSTREAMER_PACKAGE_NAME@_FOUND})
Comment 1 Tim-Philipp Müller 2018-01-23 20:37:25 UTC
qt-gstreamer is unmaintained unfortunately, but I've pushed this to git master.

commit 9740ed6ca478fcac8884f974dba7bc0f4e1d1898 (HEAD -> master)
Author: Aleix Pol <aleixpol@kde.org>
Date:   Tue Jan 23 20:35:44 2018 +0000

    Fix QtGStreamer lookup on Qt5
    
    No need to look-up the file, it will be in the current
    directory. If there's a different version it will have
    the same set of files. Also it includes the targets file,
    so that we can link against the exported targets as "Qt5GStreamer".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747247