Creating a qt GUI in Noetic and issues with catkin_create_qt_pkg - qt

I would like to create a QT GUI package in Noetic. Previously in kinetic/melodic, this could be done using the command 'catkin_create_qt_pkg ' but it's not working in Ubuntu 20.04 as I get
catkin_create_qt_pkg: command not found
Unfortunately, noetic appears to have removed the support for the qt-create and qt-build. Thus, I get 'Unable to locate package' when I try to install them using
sudo apt-get install ros-noetic-qt-build
sudo apt-get install ros-noetic-qt-create
how to create a qt-gui in ubuntu-20.04 with noetic?
System info
Ubuntu 20.04.2 LTS Kernel
5.10.0-1050-oem

Related

RStudio Server (community) can't find libR.so even though it is in path

Note: I have filed this as an issue, but I'm not sure if it is really a bug or just something I need to resolve about my system configuration.
This seems to be a library that causes many people trouble with RStudio and RStudio Server. Often people can fix the problem by reinstalling the core R libraries with apt or manually copying or linking the libR.so file to a place where RStudio finds it.
In my case, I'm using a Conda instance for my R executable.
My instance was working and stopped after upgrading my ubuntu 22.04 VM. I tried some things to fix the problem but have not succeeded.
System details
RStudio Edition : Server
RStudio Version : 2022.07.2+576 (Spotted Wakerobin) for Ubuntu Bionic
OS Version : Ubuntu 22.04.1 LTS
R Version : 4.1.3 (2022-03-10) -- "One Push-Up"
Describe the problem in detail
I have a GCP VM running ubuntu 22.04 which I use for RSS.
I did a sudo apt update && sudo apt dist-upgrade and a restart. RSS stopped working. I ran sudo rstudio-server verify-installation and received
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory
I decided to reinstall RSS using:
wget https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2022.07.2-576-amd64.deb
sudo gdebi rstudio-server-2022.07.2-576-amd64.deb
and did not receive any errors during installation. However I received the same error as above with verify-installation. I then tried doing conda update --all -y. This also did not fix the problem.
Here is some useful information:
(base) balter#rstudio:~$ which R
/home/balter/conda/bin/R
(base) balter#rstudio:~$ head -n3 /etc/rstudio/rserver.conf
# Server Configuration File
rsession-which-r=/home/balter/conda/bin/R
(base) balter#rstudio:~$ find . -name "libR.so"
./conda/lib/R/lib/libR.so
./conda/pkgs/r-base-4.1.3-h7880091_3/lib/R/lib/libR.so
(base) balter#rstudio:~$ sudo rstudio-server verify-installation
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory

Cant run qgis version Qt_5_PRIVATE_API not defined

I am running Ubuntu 18.04 and I cant seem to get qgis to run anymore. The error I get is:
/usr/bin/qgis.bin: relocation error: /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5: symbol _ZN15QQmlMemoryScope5stateE version Qt_5_PRIVATE_API not defined in file libQt5Qml.so.5 with link time reference
my qmake version is:
QMake version 3.1
Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu
I have tried to link to qt5 but that did not change anything.
sudo ln -snf ../../../../share/qtchooser/qt5-x86_64-linux-gnu.conf default.conf
You need to uninstall QGIS and reinstall with the latest stable release. Using sudo apt-get install qgis* python3-qgis* to install is not precisely the best method because of the wildcard. The official instructions suggest using: sudo apt install qgis qgis-plugin-grass.
The instructions for best installation procedure on Ubuntu for LTS releases is posted here.

Ubuntu 16.04 Python3.6 installation

I started using a computer at work that has Ubuntu 16.04 installed. Initially, Python3.6.8 was set as the version that was used if I entered the command 'python3' at the terminal. I updated Ubuntu using 'sudo apt-get update', installed miniconda and used the 'sudo apt-get autoremove' command. I followed the mini-tutorial on the anaconda website and one of the commands resulted in a warning about the pip version being old so I upgraded it inside a conda environment.
I noticed at some point that this error was occurring whenever I entered 'python3' at the commandline:
But as you can see, the default 3.5.2 version is there, but for some reason the 3.6.8 version doesn't seem to be there. These are the symlinks in /usr/bin and /etc/alternatives:
Is it safe for me to simply install Python3.6 using 'sudo apt-get install python3.6' and then the symlink will work correctly?
Thanks, any help appreciated.

CMake cannot find Qt5LinguistTools in Docker / Ubuntu 18.04

My simple Dockerfile:
FROM ubuntu:18.04
RUN apt update && apt upgrade -y
RUN apt install build-essential cmake qt5-default -y
RUN apt install qttools5-dev-tools -y
When I check linguist inside the container it's there:
root#9087245330a7:/# which linguist
/usr/bin/linguist
...but when I configure my app inside the container:
CMake Error at CMakeLists.txt:72 (find_package):
By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5LinguistTools", but CMake did not find one.
Could not find a package configuration file provided by "Qt5LinguistTools"
(requested version 5.5.1) with any of the following names:
Qt5LinguistToolsConfig.cmake
qt5linguisttools-config.cmake
Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
set "Qt5LinguistTools_DIR" to a directory containing one of the above
files. If "Qt5LinguistTools" provides a separate development package or
SDK, be sure it has been installed.
What is going on? This works on Ubuntu 16.04 just fine.
The problem was that in Ubuntu 18.04+ you need to install also qttools5-dev in order to get /usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake.

Erro when running OpenGL projet under Ubuntu 10.04

I downloaded QtSDK from website and installed on my computer, my OS is Ubuntu 10.04.
When I compile a project of OpenGL, there is an error "GL/gl.h no such file or directory".
but when I compile the projet under windows, it works. Why?
Who can resolve this problem for me?
You need to install the OpenGL development files. In Ubuntu they're in the package libgl1-mesa-dev. You'll also want to install libglu1-mesa-dev.
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
I recommend installing GLEW alongside, since you'll jump the extension hoops to get OpenGL-3 functionality.
Edit
Here's how to get GLEW in Ubuntu (from the comments):
sudo apt-get install libglew-dev

Resources