How to configure compiler in debian os QT kit - qt

I installed QT creator in debian linux. If I try to create a new project, in Kit option I got the error like "No valid Kit found". If I go to Tools ->Options -> Build&Run -> kit, there is no options to select. But I installed same in ubuntu, it is working fine without same problem. What im missing?
Also suggest me if I need to reinstall the QT creator or something else...

Its time to explain the tricks to install QT creator in debian linux operating system.
STEP 1: dont install just QT creator in your PC.
Install whole package of QT [link to download QT SDK below][1]
[1]: http://www.qt.io/download-open-source/#section-2 , so that you will get all the libraries and dependencies.
After downloading the file is in the ".run" format . Install the downloaded file in your terminal (by giving commands).
STEP 2: install
sudo apt-get install g++
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
in your terminal.
STEP 3: install
sudo apt-get install libcanberra-gtk-module
sudo apt-get install libcanberra-gtk-module:i386
now restart your system once and create new project.It should work
I like to thank agold for his guidance , Actually he spent more than 3 hours to resolve this issue. :)

Related

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.

How to update Qt from 5.5.1 to 5.7 on Ubuntu 16.04?

I am trying to update Qt from 5.5.1 to 5.7 or higher.
I tried sudo apt-get install qt-default qtdeclarative5-dev
gives me following output on console:
qtdeclarative5-dev is already the newest version (5.5.1-2ubuntu6).
qt5-default is already the newest version (5.5.1+dfsg-16ubuntu7.6).
How can I update Qt to 5.7 or higher version?
Ubuntu packages in standard repository are always outdated. I suggest you install Qt from .run file they provide .
But you can possibly run into problems, as i did, using Qt + CMake without Qt Creator
I followed this post and was able to update Qt to 5.11 using PPA following commands:
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial
sudo apt update
sudo apt install qt511-meta-full
For system wide usage, create default.conf file at /etc/xdg/qtchooser with following content:
/opt/qt511/bin
/opt/qt511/lib
That's it, it should be updated by now. qmake -v outputs the current Qt and qmake version

Self-compile Qt Webkit

I have self-compiled Qt 5.4.1 and installed in /opt/qt-5.4.1.
However, I encountered an error while trying to 'qmake' my project file:
Project ERROR: Unknown module(s) in QT: webkitwidgets
I did sudo apt-get install libqt5webkit5-dev but the error persists.
I suspect then that apt-get install does not work when Qt-Core was self-compiled. The Qt Webkit source is available on https://qt.gitorious.org/qt
The question is, how and where should I install Webkit from source so that it can be detected while running qmake?
Probably you missed compilation of webkit while compilation of Qt. Read here how to resolve this issue:
https://forum.qt.io/topic/40378/solved-linux-unknown-module-s-in-qt-webkitwidgets
QtWebKit is not built anymore by default. You can build it after you have a proper build of Qt. Once you have your build of Qt clone the QtWebKit repo:
git clone https://github.com/qt/qtwebkit.git
then, make a new dir for the build files and from that directory enter the command:
/opt/qt-5.4.1/bin/qmake <path/to/qtwebkit>
make -j<n>
make install
Now you should be able to use QtWebKit with your build.
might want to try:
sudo apt-get install libqt5webkit5
and
sudo apt-get install libqt5webkit5-dev

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

QT installation on ubuntu

I am trying to install QT on ubuntu.I need to install Active perl by using this URL:
http://www.activestate.com/activeperl/downloads
I have downloaded all files but not getting way to install this on ubuntu.Please guide me.
Regards
why dont you just
apt-get install qt

Resources