VTK/ITK project Requested modules not available on ubuntu - c++

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.

Related

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

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" .

Yotta build results in CMake Deprecation Warning, cmake-policies OLD behaviours

I am trying to build the code that is already made as examples for the Micro:bit using the recommended yotta build but after following every step I am getting this error:
yotta build
info: generate for target: bbc-microbit-classic-gcc 0.2.3 at /home/dragos/microbit-samples/yotta_targets/bbc-microbit-classic-gcc
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
The OLD behavior for policy CMP0017 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at /usr/share/cmake-3.16/Modules/CMakeForceCompiler.cmake:75 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
/home/dragos/microbit-samples/yotta_targets/mbed-gcc/CMake/toolchain.cmake:78 (cmake_force_c_compiler)
toolchain.cmake:8 (include)
CMakeFiles/3.16.3/CMakeSystem.cmake:6 (include)
CMakeLists.txt:76 (project)
CMake Deprecation Warning at /usr/share/cmake-3.16/Modules/CMakeForceCompiler.cmake:89 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
/home/dragos/microbit-samples/yotta_targets/mbed-gcc/CMake/toolchain.cmake:79 (cmake_force_cxx_compiler)
toolchain.cmake:8 (include)
CMakeFiles/3.16.3/CMakeSystem.cmake:6 (include)
CMakeLists.txt:76 (project)
I have to specify that I did not change any code from the initial git: lancaster-university /
microbit-samples and I have done the update on my system several times. Also, I am running it on Ubuntu 20.04.1 LTS

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.

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.

Make Qt5 default for Cmake

I am trying to build amarok in my ubuntu 12. I have installed Qt5 and Qt4.8.1 both in my PC. When I am trying to build and I am getting the following error in Cmake.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find Qt4: Found unsuitable version "4.8.2", but required is at least "4.8.3" (found /usr/bin/qmake) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:313 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindQt4.cmake:1393 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:83 (find_package)
You need to use the Qt5 specific CMake functions, as documented on the Qt5 CMake documentation page:
cmake_minimum_required(VERSION 2.8.11)
find_package(Qt5Core)
Then there isn't any Qt 4 involved. Anywhere.