Unable to setup amazon-kinesis-video-streams-producer-sdk-cpp in Windows - amazon-web-services

I am a newcomer and I am struggling to setup amazon-kinesis-video-streams-producer-sdk-cpp in my Windows laptop. I am running this command:
cmake .. -G "Visual Studio 17 2022" -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_JNI=TRUE
but getting an error:
-- Checking for module 'gstreamer-app-1.0'
--
CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPkgConfig.cmake:603 (message):
A required package was not found
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.23/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
CMakeLists.txt:199 (pkg_check_modules)
Though, I have installed both the gstreamer-1.0-msvc-x86_64-1.20.2 and gstreamer-1.0-devel-msvc-x86_64-1.20.2 and added the env variable GSTREAMER_1_0_ROOT_MSVC_X86_64.

https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/715#issuecomment-924426526
This one worked for me.
If you use the recent gstreamer for mvsc, edit your CMakefile.txt and change "C:\gstreamer\1.0\x86_64" to "C:\gstreamer\1.0\msvc_x86_64" .

Related

vcpkg using local install of boost instead of vcpkg install

I am trying to build with cmake and vcpkg. I installed some packages including boost (iostreams, serialization and system) with vcpkg. Additionally, I have a local install of boost without these components. When i try to build, I get the following error:
C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.20/Modules/FindBoost.cmake:2344 (find_package_handle_standard_args)
C:/dev/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:770 (include)
CMakeLists.txt:168 (FIND_PACKAGE)
The CMakeCache.txt has the following line:
//Path to a file.
Boost_INCLUDE_DIR:PATH=C:/boost/boost_1_66_0
which is the path to my local install. How can I get cmake to use the boost install from vcpkg?
EDIT:
To anoyone coming to this question in the future, I came across this PR where they apparently fixed the problem. However, I still get the same error when installing OpenMVS.

How to build flann in windows 10 from source?

I was trying to build flann from source in Windows-10 using cmake. During the installation process it says it cannot find liblz4.
I tried two method :
1) So I downloaded the prebuild lz4 from here (https://github.com/lz4/lz4/releases) and placed the C:\XXXX\Downloads\lz4_v1_9_1_win64\dll to my env path.
2) I used vcpkg to install lz4 first. Then did
C:\source\flann\build> cmake .. -DCMAKE_TOOLCHAIN_FILE=C:\XXXXXX\source\vcpkg\scripts\buildsystems\vcpkg.cmake -G "Visual Studio 15 2017 Win64".
None of the above two method worked. I still get cannot find liblz4 error.
-- Found PkgConfig: C:/XXXXXX/Downloads/cmake-3.13.3-win64-x64/bin/pkg-config.exe (found version "0.26") -- Checking for module 'liblz4' -- No package 'liblz4' found CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message): A required package was not found Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal) CMakeLists.txt:150 (pkg_check_modules) -- Configuring incomplete, errors occurred! See also "C:/XXXXXXX/source/flann/build/CMakeFiles/CMakeOutput.log".
Did you try to do as follows?(https://github.com/lz4/lz4)
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install lz4

Cmake error: unsuitable Qt version

I'm trying to run cmake via cmd (Windows) on a project I downloaded from GitHub, using cmake.
However, I'm getting the following error:
-- Found unsuitable Qt version "5.6.2" from C:/Anaconda2/Library/bin/qmake.exe
CMake Error at 3rdParty/FindMatlab-rwp.cmake:50 (MESSAGE):
Generator not compatible: MinGW Makefiles
Call Stack (most recent call first):
CMakeLists.txt:427 (find_package)
Any ideas what might be wrong? I tried to find info about the Qt mentioned, but I came up with nothing.

VTK/ITK project Requested modules not available on ubuntu

I would like to configure with cmake-gui a VTK/ITK project on ubuntu with QT and I have this error message.
I don't understand. How I can pass this error ?
CMake Error at /usr/local/VTK/VTK-7.1.0/CMake/vtkModuleAPI.cmake:120 (message):
Requested modules not available:
vtkGUISupportQtOpenGL
Call Stack (most recent call first):
/usr/local/VTK/VTK-7.1.0-build/VTKConfig.cmake:76 (vtk_module_config)
CMakeLists.txt:24 (FIND_PACKAGE)
When configuring VTK with CMake, you need to enable either vtkGUISupportQtOpenGL or VTK_Group_Qt.
You can also change that setting now, then rebuild and sudo make install.

qttorch Build Error Ubuntu 14.04

I'm trying to install qttorch package on Ubuntu 14.04,
but I get this error during installation:
CMake Warning at /usr/share/cmake-3.2/Modules/FindQt4.cmake:626 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
CMakeLists.txt:38 (FIND_PACKAGE)
CMake Error at /usr/share/cmake-3.2/Modules/FindQt4.cmake:634 (message):
Could NOT find QtCore. Check
/tmp/luarocks_qtlua-scm-1-2765/qtlua/build/CMakeFiles/CMakeError.log for
more details.
Call Stack (most recent call first):
CMakeLists.txt:38 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_qtlua-scm-1-2765/qtlua/build/CMakeFiles/CMakeOutput.log".
Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/qtlua-scm-1.rockspec - Build error: Failed building.
Is libqtcore4 the right package for QTCore? or is there another package that should be installed?
because it's already installed in "/usr/lib/x86_64-linux-gnu" as qmake reported!
I also tried reinstalling it, but still the same error!!
In most Linux distributions the packages are split between development and none-development parts. Usually the normal package only includes the shared library, data and executables while the dev package adds headers, static libraries and build tools like qmake. I assume this split is done to save space.
For ubuntu the dev packages usually has the -dev suffix. So try if a libqtcore4-dev package exists. Otherwise, libqt4-dev should include it.