Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Porting an application on Ubuntu
Forum Updated to NodeBB v4.3 + New Features

Porting an application on Ubuntu

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 5 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jenya7
    wrote on last edited by jenya7
    #1

    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.

    JonBJ A 2 Replies Last reply
    0
    • J jenya7

      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.

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @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 avoid lGLEv2!) reveals RPI hits, do you want to read those?

      J 1 Reply Last reply
      0
      • JonBJ JonB

        @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 avoid lGLEv2!) reveals RPI hits, do you want to read those?

        J Offline
        J Offline
        jenya7
        wrote on last edited by jenya7
        #3

        @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 avoid lGLEv2!) 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?

        jsulmJ 1 Reply Last reply
        0
        • J jenya7

          @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 avoid lGLEv2!) 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?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jenya7 Install libgles2-mesa-dev package

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          0
          • jsulmJ jsulm

            @jenya7 Install libgles2-mesa-dev package

            J Offline
            J Offline
            jenya7
            wrote on last edited by
            #5

            @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)

            jsulmJ 1 Reply Last reply
            0
            • J jenya7

              @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)

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jenya7 Usually one has to install libgl1-mesa-dev on Linux like described here: https://doc.qt.io/qt-5/linux.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply
              0
              • jsulmJ jsulm

                @jenya7 Usually one has to install libgl1-mesa-dev on Linux like described here: https://doc.qt.io/qt-5/linux.html

                J Offline
                J Offline
                jenya7
                wrote on last edited by
                #7

                @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)

                1 Reply Last reply
                0
                • J jenya7

                  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.

                  A Offline
                  A Offline
                  anil_arise
                  wrote on last edited by anil_arise
                  #8

                  @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?

                  J 1 Reply Last reply
                  0
                  • A anil_arise

                    @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?

                    J Offline
                    J Offline
                    jenya7
                    wrote on last edited by jenya7
                    #9

                    @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?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Hi,

                      How did you install Qt on both these machines ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      J 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Hi,

                        How did you install Qt on both these machines ?

                        J Offline
                        J Offline
                        jenya7
                        wrote on last edited by jenya7
                        #11

                        @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

                        1 Reply Last reply
                        3

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved