Erro when running OpenGL projet under Ubuntu 10.04 - qt

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

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.

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.

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

How to configure compiler in debian os QT kit

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. :)

error installing qt-sdk on linux

i have ubuntu-10.10 desktop version i installed following packages using apt-get install
libglib2.0-dev
libSM-dev
libxrender-dev
libfontconfig1-dev
libxext-dev
libgl1-mesa-dev
libglu-meas-dev
i downloaded qt-sdk-linux-x86-opensource-2010.05.1.bin
changed permission of bin file
chmod u+x qt-sdk-linux-x86-opensource-2010.05.1.bin
./qt-sdk-linux-x86-opensource-2010.05.1.bin
it gives me an error like not able to create symbolic link to libQtCore-4.7.0 and installation aborts.
can any one suggest me what is going wrong and how can i over come this issue
You can just install qt-sdk package from Ubuntu repositories, if you must install by hand, try running it with sudo;
sudo ./qt-sdk-linux-x86-opensource-2010.05.1.bin

Resources