Unable to Load QT Environment - qt

I'm at a complete loss and hoping someone can help. I'm used to the Visual Studio environment and setup, and QT is new to me. I'm running Linux Mint (debian 20.04) and installed qt5-default, and qtcreator. QT creator loaded fine the first time with no issues, however, after closing the application and a system reboot, it refuses to load. I've been scowering google and stack, I've found some similar issues but none of the solutions I've found so far have worked for me. Trying to run qtcreator from the terminal renders the following output:
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: no version information available (required by qtcreator)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: no version information available (required by qtcreator)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: no version information available (required by qtcreator)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by qtcreator)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by qtcreator)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5)
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5)
qtcreator: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5: undefined symbol: _ZTI26QAbstractDynamicMetaObject, version Qt_5_PRIVATE_API`
qtchooser/default.conf contained
/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnu/qtcreator
From the output, it would appear that there are two conflicting versions, however, being new to QT, I'm not exactly sure how or were I point it to the correct version. I appreciate any help!

Should we have a number of lines like:
qtcreator: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: no version information available (required by qtcreator)
Pointing to the root of Linux file system user and not to /home/user indicates we have installed Qt Creator (not really the latest Qt framework and not even Creator) with sudo apt install qtcreator which may come handy as an older IDE but not much else and prone to system errors due to many library soft link redirections etc.
First purge it out of the system:
sudo apt purge qtcreator
As original poster asked the problem is solved by completely removing package-installed Qt Creator and installing newer Qt complete framework with options with new Qt Creator by using Qt Maintenance Tool. For which you may want to enable the execution file attribute after it was downloaded:
chmod +x ~/Downloads/qt-unified-linux-x64-3.2.3-online.run
~/Downloads/qt-unified-linux-x64-3.2.3-online.run
P.S. Mind the above installs Qt Creator and the framework for the user but of course with sudo and pointing to the right location we could install Qt for the entire system as root somehow yet it is discouraged: https://forum.qt.io/topic/31366/install-qt-qt-creator-as-root Then why would sudo apt install qtcreator still be widely spread option? If so allowing the other user to access your files with some soft-link exercise will do.

Related

Installation of r packages failed with the same error "GLIBCXX_3.4.29' not found"

When I tried to install r package "osmdata" (or any other package) with command
install.packages("osmdata")
it failed with error
"GLIBCXX_3.4.29' not found (required by /home...R/x86_64-unknown-linux-gnu-library/4.2/00LOCK-osmdata/00new/osmdata/libs/osmdata.so)
host system is debian, r is installed using package manager Guix.
The error means: osmdata.so was compiled with g++ version 11.1.0 (ABI mapping of GLIBCXX to g++ version is documented here), but the version of libstdc++.so.6 installed on the system is older, and doesn't provide GLIBCXX_3.4.29.
You need to get a version of osmdata.so appropriate for your system, or you need to build it from source, or you need to update your libstdc++.so.6.
P.S. Your question has nothing to do with glibc.
I solved it by installing package r-guix-install from Guix package manager and using this command
guix.install::guix.install("osmdata")

Error installing XML packege in R (libxml2)

I am trying to install the mlr3 library in R. THe XML library (one of the dependencies) gives me problems since it returns the following error:
You are trying to use a version 2.* edition of libxml
but an incompatible library. The header files and library seem to be
mismatched. If you have specified LIBXML_INCDIR, make certain to also
specify an appropriate LIBXML_LIBDIR if the libxml2 library is not in the default
directories.
I already tried to uninstall and re-install (via brew) libxml2 but nothing changes.
What should I try?
I am working in RStudio on a MacBook with Catalina installed.

Making RStudio find Qt5

When I run rstudio on the command line (Linux Mint) it returns
rstudio: /usr/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5: version `Qt_5' not found (required by rstudio)
In looking up this problem I see the suggestion to set LD_LIBRARY_PATH=... where the ... is filled in with the path to the Qt5 libs. In trying to figure out where that is, my best guess has been /usr/lib/x86_64-linux-gnu which I guessed from looking at
$ dpkg -L qt5-default
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/qt5-default
/usr/share/doc/qt5-default/copyright
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/qtchooser
/usr/share/doc/qt5-default/changelog.Debian.gz
/usr/share/doc/qt5-default/LGPL_EXCEPTION.txt
Looking at How to fix: [program name] /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version CXXABI_1.3.8' not found (required by [program name]) and /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7' not found (required by emulator64-x86) made me suspect this choice but adding LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu to /.bashrc didn't fix the problem.
Interestingly, running as root makes RStudio launch.

How do I run my Qt application on another linux machine?

I compiled a Qt application on a linux machine using Qt 5.6.2. It runs perfectly on that machine.
I copied the binaries on another 64bit machine. I used aptitude search libqt5 to find what Qt libraries should I install. I installed libqt5core5a and libqt5network5 packages. But when I run my program, I get this error:
darker2:~/workspace (master) $ ./server
./server: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: no version information available (required by ./server)
./server: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by ./server)
./server: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by ./server)
./server: relocation error: ./server: symbol qt_version_tag, version Qt_5.6 not defined in file libQt5Core.so.5 with link time reference
I suppose the problem here really is that the version does not match exactly. So, how do I install the very exact version that I used to compile my program? Note that I am very limited with disk space on the target virtual machine. I need to only install whatever is necessary.
The more universal solution, the better, for the sake of future readers.
You need to deploy the application, for this purpose I use the utility
cqtdeployer
You can install from github releases
or
from snapstore
sudo snap install cqtdeployer
You can use as follows:
cqtdeployer -bin myApp -qmake path/to/my/qmake -qmlDir path/to/my/qml/files/dir
And Run application with sh script
If you'll use the version from snap then make sure that you have all the permissions.

ubuntu 16 cannot install robomongo

I am getting error when installing robomongo,I am new to ubuntu and i have checked and all qt files are present there.Still i am getting the error
/robomongo
./robomongo: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7' not found (required by ./robomongo)
./robomongo: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by ./robomongo)
./robomongo: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by ./robomongo)
./robomongo: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by ./robomongo)
Can you please clarify your question are you trying to install Robomongo from installer file or are you trying to build Robomongo from source code?
If you try to build, please follow steps in Robomongo github wiki how to build for MAC/Linux document. (I am one of the developers of Robomongo)

Resources