Qt 5.6 install issue - c++

I am really new to programming and Linux and I want to install PCL.
Now I want to install VTK and Qt 5.6. So I followed the steps on this site:
http://www.vtk.org/Wiki/VTK/Building/Linux
When I want to configure VTK I get this error:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by "Qt5UiPlugin" with
any of the following names:
Qt5UiPluginConfig.cmake
qt5uiplugin-config.cmake
Add the installation prefix of "Qt5UiPlugin" to CMAKE_PREFIX_PATH or set
"Qt5UiPlugin_DIR" to a directory containing one of the above files. If
"Qt5UiPlugin" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
GUISupport/Qt/CMakeLists.txt:142 (find_package)
I searched the internet and got this:
http://www.qtcentre.org/threads/65284-vtk-integration-with-Qt-5-5
How can I recompile a programm? Can somebody help? I am really frustrated...
Thanks!!

What distro are you using? If you're on ubuntu you should try this:
sudo apt-get install qttools5-dev
sudo apt-get update
Hope that helps.

Related

DicomToMesh OSX Building Issue

I want to compile DicomToMesh according to the instructions in this link.
> git clone https://github.com/AOT-AG/DicomToMesh.git
> cd DicomToMesh
> mkdir build
> cd build
> ccmake .. #opens ccmake window
By executing above instruction I supposed to get something similar to the following within the ccmake window,
BUILD_GUI OFF
CMAKE_BUILD_TYPE DEBUG
CMAKE_INSTALL_PREFIX /usr/local
USE_VTK_DICOM OFF
VTK_DIR /home/eidelen/Development/libs/vtk/build
But in my case I'm getting this result:
After pressing c, it generates following error:
CMake Error at /usr/local/lib/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:115
(find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" (requested
version 5.15) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:5 (find_package)
Configuring incomplete, errors occurred!
See also "/Users/mrhs/DicomToMesh/build/CMakeFiles/CMakeOutput.log".
See also "/Users/mrhs/DicomToMesh/build/CMakeFiles/CMakeError.log".
I have installed QT5 5.15.2 using
brew install qt5
I tried to follow this solution using command
brew install qtbase5-dev
brew install qtdeclarative5-dev
But getting Warning: No available formula or cask with the name "qtbase5-dev". and Error: No similarly named formulae found'
I have tried this solution by using the command
export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt#5/
cd build
but it is showing No such file or directory
I'm using this for the first time and my be i'm missing something which I could not figure out yet. I will be really very thankful and will appreciate it if anyone can help me. I badly need to solve this issue and has spend a lot of time but in vain.
N.B. This is my CMakeError.log and CMakeOutput.log
Installing brew install qt5, at the end the process is going to display something like :
echo 'export PATH="/usr/local/opt/qt#5/bin:$PATH"' >> ~/.zshrc
export LDFLAGS="-L/usr/local/opt/qt#5/lib"
export CPPFLAGS="-I/usr/local/opt/qt#5/include"
Just type them in your terminal

A question about vcpkg and pcl/visualization

first, I used :
./vcpkg install pcl
to install pcl. However, I don't notice that this command could not install vtk and use pcl/visualization. I succeed in installing and using pcl(except visualiztion).
So, I try follow :
./vcpkg install pcl[vtk,qt] --rescure
Actually, when I wanted to use I could still not #include<pcl/visualiztion/..>
I had to run it the following way to fix this issue:
vcpkg install pcl[vtk]:x64-windows --featurepackages --recurse
Not sure whether x64-windows specifier is important, but keep in mind that VCPKG installs x86 libraries by default. Also please not that the option you have used is misspelled: it is --recurse, not --rescure.
If you are using CMake, remember to use the toolchain file:
cmake -B [build directory] -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake

Issues installing/building the CGAL Library with vcpkg manager

To start, I am new to C++ and its package managers so there is a good chance that I just did something dumb.
Note: I am on a 64bit Windows 10 system, I have Clion and visual studio 2019 installed and want to start using CGAL's library. To do so, I simply followed the steps on their website to install the things that I need:
mkdir vcpkgclone
cd vcpkgclone
git clone https://github.com/microsoft/vcpkg
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install yasm-tool:x86-windows
vcpkg install cgal:x64-windows
However, I get the following error:
CMake Error at scripts/cmake/vcpkg_fail_port_install.cmake:97 (message):
The yasm-tool port is only intended to be built for x86 Windows
Architecture 'x64' not supported by yasm-tool!
Call Stack (most recent call first):
ports/yasm-tool/portfile.cmake:1 (vcpkg_fail_port_install)
scripts/ports.cmake:142 (include)
Error: Building package yasm-tool:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: yasm-tool:x64-windows
Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e
Additionally, attach any relevant sections from the log files above.
Your assistance in solving this problem would be greatly appreciated

Qt 5.9.5 on Ubuntu can't find "GL/gl.h" in "/usr/include/libdrm" despite drivers being installed

When trying to build a piece Qt software, I get an error:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:184 (include)
build/FindQt5.cmake:32 (find_package)
CMakeLists.txt:87 (include)
All the solutions to this error that I've found are to run sudo apt install mesa-common-dev, but this is something I've already done with no positive effect:
mesa-common-dev is already the newest version (20.0~git1912130730.828f8f~oibaf~b).
Could the fact that I'm using a third-party graphics driver library (oibaf) be the cause for this?
Other things I've tried include symlinking the only other gl.h file that occurs (/usr/include/hwlock/gl.h) to the location Qt is searching at, but that only creates more errors.
I'm on Ubuntu 18.04.3 LTS, using Qt installed from the Ubuntu apt repos. Any help is very much appreciated; this is driving me round the bend.
sudo apt-get install libgl1-mesa-dev
Oibaf seemed to be the problem. After running sudo ppa-purge ppa:oibaf/graphics-drivers, everything is back in the right place and I can build.

Installing PySide - OSX

Anyone had success installing and using PySide on OSX? I am following the install instructions on the PySide site, though I'm running into issues building the API Extractor. I run cmake on the CMakeLists.txt file inside the api extractor dir and:
This error is thrown-
CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:894 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)
I am new to building source w/ cmake and I'm not event really sure what Boost is. Any light you might shed on the set up process would be great.
Thanks
You may want to check the newest release of PySide, out very recently, I believe the dependency on the Boost libraries has been removed.
It's a set of quite widespread C++ libraries, they're probably needed by PySide, even though I've never tried it.
Download them from there:
http://sourceforge.net/projects/boost/files/boost/1.42.0/
Otherwise, you can install them from macports: http://www.macports.org once you've installed macports, just run "sudo port install boost". Unluckily, pyside itself doesn't seem to be in macports yet.