GeezerVison is showing github.com — How do I build gstreamer in visual studio · Issue #26417 · microsoft/vcpkg
How do I build gstreamer in visual studio #26417Labels category:port-bugThe issue is with a library, which is something the port should already support ActivityFrankXie05 commented on Aug 19, 2022
-
Make sure the port you download is consistent with the system architecture of your vs (x64/x86).
-
If you are using MSBuild project, please run the command ./vcpkg integrate install then restart VS and try again.
-
If you are using VS's cmake project, make sure you add CMAKE_TOOLCHAIN_FILE to CMakeSettings.json , and add gstreamer useage to the top-level CMakeLists.txt.
Please see the documentation for details: https://github.com/microsoft/vcpkg/blob/master/docs/examples/installing-and-using-packages.md rinechran commented on Aug 19, 2022 ContributorAuthor More actions i already did. but it not working
maybe it seems that the include path needs additional work FrankXie05 commented on Aug 19, 2022 rinechran commented on Aug 19, 2022 ContributorAuthor More actions i don't know about other vcpkg projects , but i checked is only gstream. FrankXie05 commented on Aug 19, 2022 rinechran commented on Aug 19, 2022 ContributorAuthor More actions i did't miss task
After installing x64/x86 version i did ./vcpkg integrate install
but the build doesn't work
 FrankXie05 commented on Aug 19, 2022 For port gstreamer, please use #include <gstreamer-1.0/gst/gst.h>

rinechran commented on Aug 19, 2022 ContributorAuthor More actions 
The build doesn't work.
If you look at the gstreamer-1.0/gst/gst.h header file, it seems that the path of include is wrong. FrankXie05 commented on Aug 19, 2022 For the integration of vcpkg projects, the default path is {VCPKG_INCLUDE_DIR}/${TRIPLET}/include. For my project, this value is E:\port-update\vcpkg\installed\x64-windows\include, so if you want to use gstreamer header files, each include must contain gstreamer-1.0.
Like : #include <gstreamer-1.0/gst/gstversion.h>
 rinechran commented on Aug 19, 2022 ContributorAuthor More actions
:\port-update\vcpkg\installed\x64-windows\include, so if you want to use gstreamer header files, each include must contain gstreamer-1.0.
Have you tried compiling the header file?
If you look at the code gstreamer-1.0/gst/gstversion.h, there is no gstreamer-1.0 prefix at all. FrankXie05 commented on Aug 22, 2022 rinechran (@rinechran) Yes, this is indeed a bug. For upstream behavior, the gstreamer headers should be installed under the outer folder named gst. I will fix it. :) Reacted by eunsikNota, rinechran and weba52284 Reacted by Cedric GNIEWEK, vamman, Kai Pastor and Wooseok Choi Sharpe49 commented on Nov 13, 2022 For me, it's not a bug.
Official builds from upstream are using the include/gstreamer-1.0/gst folder to store the include files.
And the pkgconfig files do point to the right folder:
Cflags: -I"${includedir}/gstreamer-1.0" Reacted by Kai Pastor and Riley Meyerkorth Reacted by rinechran and Riley Meyerkorth rinechran commented on Nov 15, 2022 ContributorAuthor More actions Cedric GNIEWEK (@Sharpe49)
I respect your opinion. In pkgconfig, the corresponding value is considered normal. However, I think it should work on Windows without a separate setting. Sharpe49 commented on Nov 15, 2022 Are you using CMake or MSBuild in your project? rinechran commented on Nov 15, 2022 ContributorAuthor More actions i use MSBuild
Are you using CMake or MSBuild in your project?
github-actions commented on Dec 2, 2023 This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. kvrban commented on Apr 13, 2025 m-riley04 commented on Oct 17, 2025 Still no fix for this :( I'll look into a workaround for the time being
MetadataMetadatacategory:port-bugThe issue is with a library, which is something the port should already support DevelopmentNo branches or pull requestsIssue actions
|