Solved Porting an application on Ubuntu
-
I created a widget application on Debian machine and it runs good. Now I copied the application on Ubuntu machine and opened it. While compile I get an error
cannot find -lGLESv2.
I guess some library is missing. What should I install?Another information. When I open Qt Creator I get
The following plugins have errors and cannot be loaded
QmlDesigner
QmlProfiler
Plugin initialization failed Cannot create OpenGL context.
I suppose it's related. -
@jenya7 said in Porting an application on Ubuntu:
cannot find -lGLESv2.
I know nothing about this, but are you compiling fro RPi? Googling for
qt cannot find lGLEsv2
(Note for Google search, you must omit the leading hyphen, do not put-lGLEv2
in your search string, else it will avoidlGLEv2
!) reveals RPI hits, do you want to read those? -
@JonB said in Porting an application on Ubuntu:
@jenya7 said in Porting an application on Ubuntu:
cannot find -lGLESv2.
I know nothing about this, but are you compiling fro RPi? Googling for
qt cannot find lGLEsv2
(Note for Google search, you must omit the leading hyphen, do not put-lGLEv2
in your search string, else it will avoidlGLEv2
!) reveals RPI hits, do you want to read those?It's other board - ODROID, but actually it doesn't matter - I think it's a Qt library, isn't it?
-
@jenya7 Install libgles2-mesa-dev package
-
@jsulm said in Porting an application on Ubuntu:
@jenya7 Install libgles2-mesa-dev package
It says - libgles2-mesa-dev is already the newest version (19.2.8-0ubuntu0-18.04.3)
-
@jenya7 Usually one has to install libgl1-mesa-dev on Linux like described here: https://doc.qt.io/qt-5/linux.html
-
@jsulm said in Porting an application on Ubuntu:
@jenya7 Usually one has to install libgl1-mesa-dev on Linux like described here: https://doc.qt.io/qt-5/linux.html
It says the same - libgl1-mesa-dev is already the newest version (19.2.8-0ubuntu0-18.04.3)
-
@jenya7 install libgles2-mesa and libgles2-mesa-dev;
apt-get install libgles2-mesa-dev libgles2-mesa libgles2
can you show your exact compile error messages?
-
@anil_arise said in Porting an application on Ubuntu:
@jenya7 install libgles2-mesa and libgles2-mesa-dev;
apt-get install libgles2-mesa-dev libgles2-mesa libgles2
can you show your exact compile error messages?
cannot find -lGLESv2.
but before, when I open Qt Creator
The following plugins have errors and cannot be loaded
QmlDesigner
QmlProfiler
Plugin initialization failed Cannot create OpenGL context.May be I can modify QT_OPENGL. Where can I find it?
-
Hi,
How did you install Qt on both these machines ?
-
@SGaist said in Porting an application on Ubuntu:
Hi,
How did you install Qt on both these machines ?
I installed it on Ubuntu. The problem is on Ubuntu.
I have Qt installed on another machine on Debian (for RPi) and on this installation the widget application runs without problems.I found the solution. During the installation I broke the GPU driver libraries, so this helped
sudo apt install --reinstall mali-x11