Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. only one QPushButton with QWidget works
Forum Updated to NodeBB v4.3 + New Features

only one QPushButton with QWidget works

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
39 Posts 5 Posters 4.6k Views 3 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.
  • K-StrK Offline
    K-StrK Offline
    K-Str
    wrote on last edited by
    #9

    @SGaist
    I added the Kit for Desktop Qt 5.12.3 GCC 64 Bit-
    It doesn't work. This is the error:

    17:06:03: Running steps for project Teleskop...
    17:06:03: Configuration unchanged, skipping qmake step.
    17:06:03: Starting: "/usr/bin/make" -j4
    g++ -Wl,-rpath,/home/kurt/Qt/5.12.3/gcc_64/lib -o Teleskop main.o mainwindow.o moc_mainwindow.o   -L/home/kurt/Qt/5.12.3/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread   
    /usr/bin/ld: cannot find -lGL
    Makefile:263: recipe for target 'Teleskop' failed
    collect2: error: ld returned 1 exit status
    make: *** [Teleskop] Error 1
    17:06:03: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Teleskop (kit: Desktop Qt 5.12.3 GCC 64bit)
    When executing step "Make"
    17:06:03: Elapsed time: 00:00.
    

    I think I have to add the module GL. Is this correct? But where can I find this?

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

      The missing GL error has been asked about many times already, you have to install the OpenGL development package from your distribution.

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

      1 Reply Last reply
      1
      • K-StrK Offline
        K-StrK Offline
        K-Str
        wrote on last edited by
        #11

        @SGaist ,
        thanks for this hint I will add the kit for Ubuntu again tomorrow.

        1 Reply Last reply
        0
        • K-StrK Offline
          K-StrK Offline
          K-Str
          wrote on last edited by K-Str
          #12

          @SGaist
          Yes I try to run it remotely on a raspberry.
          Now I have installed the kit for the host PC. Yes it works perfect on the host.
          What can I do to make it working on a remote raspberry? I use /usr/bin/gdb-multiarch for debugging remotely on the raspberry. Is this ok

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

            Do you mean that your application is working fine on your desktop and still not on your target ?

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

            1 Reply Last reply
            0
            • K-StrK Offline
              K-StrK Offline
              K-Str
              wrote on last edited by K-Str
              #14

              @SGaist yes
              if the target is the linux host (ubuntu desktop) the application works fine.
              If the target is the raspberry it does not work.
              What about this info:

              Could not load shared library symbols for 3 libraries, e.g. /usr/local/qt5pi/lib/libQt5Widgets.so.5.
              

              Is there something missing?
              Maybe somebody knows more about this problem.

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

                What do you get if you call ldd on that file ?

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

                1 Reply Last reply
                0
                • K-StrK Offline
                  K-StrK Offline
                  K-Str
                  wrote on last edited by
                  #16

                  @SGaist , where must I run ldd?
                  On the linux host PC or on the raspberry?

                  1 Reply Last reply
                  0
                  • K-StrK Offline
                    K-StrK Offline
                    K-Str
                    wrote on last edited by K-Str
                    #17

                    @SGaist ;
                    I will check it tomorrow

                    SGaistS 1 Reply Last reply
                    0
                    • K-StrK K-Str

                      @SGaist ;
                      I will check it tomorrow

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #18

                      @k-str said in only one QPushButton with QWidget works:

                      Sorry, I made a mistake

                      What do you mean with that ?

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

                      1 Reply Last reply
                      0
                      • K-StrK Offline
                        K-StrK Offline
                        K-Str
                        wrote on last edited by
                        #19

                        @SGaist ,
                        yesterday I had some trouble with my computer network and I couldn't write a post correcttly.
                        Here the output of lcc:
                        0_1567681332209_LCC_Teleskop.JPG
                        Do yoe need the output also when I run lcc on the on the Linux host?

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

                          Looks good. What is the exact error message you're getting when starting your application ?

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

                          1 Reply Last reply
                          0
                          • K-StrK Offline
                            K-StrK Offline
                            K-Str
                            wrote on last edited by K-Str
                            #21

                            @SGaist ,
                            there are no errors when I run the application. Only warnings during startup as I wrote eight days ago.
                            Now I install everything new because I have some big troubles with the network running a virtual machine (=Hyper-V). I install it now on oracles virtual box.
                            I will see what happens after this.
                            It's crazy!!
                            Now I have an other problem after a new installation:
                            It seems to be a configuration failure:
                            When I start the application I get a problem.
                            What means this? does it miss an egl module?

                            Process /opt/TestWidget/bin/TestWidget created; pid = 2877
                            qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_brcm"
                            EGL library doesn't support Emulator extensions
                            

                            and a window appears
                            0_1567779970953_Bildschirmfoto vom 2019-09-06 16-23-51.png

                            I find no real help in the internet.
                            I use a MPI3508 LCD HDMI display on my raspberry3.
                            Maybe my current configuration cannot handle it.
                            Please has somebody an answer?

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

                              Do you mean that you have that error in a virtual machine ?

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

                              1 Reply Last reply
                              0
                              • K-StrK Offline
                                K-StrK Offline
                                K-Str
                                wrote on last edited by K-Str
                                #23

                                @SGaist ,
                                no I think something went wrong during the installation.
                                What mmeans this:
                                Failed to load EGL device integration "eglfs_brcm"

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

                                  It's getting a bit fuzzy here. You seem to have issues both with your desktop machine and RaspberryPi.

                                  Can you do a small summary of what is going on and where exactly ?

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

                                  1 Reply Last reply
                                  0
                                  • K-StrK Offline
                                    K-StrK Offline
                                    K-Str
                                    wrote on last edited by K-Str
                                    #25

                                    @SGaist , hello to all;
                                    I'm sorry for the delay, but I made some investigation.
                                    It seems to have just a little problem:
                                    When I start the application local on the terminal then I first have to write

                                    export  DISPLAY:=0
                                    

                                    Then it works with a warning

                                    libEGL warning: DRI2: failed to authenticate
                                    

                                    Is there a way to add this command

                                    export DISPLAY=:0
                                    

                                    automaticially before I run the application?

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • K-StrK K-Str

                                      @SGaist , hello to all;
                                      I'm sorry for the delay, but I made some investigation.
                                      It seems to have just a little problem:
                                      When I start the application local on the terminal then I first have to write

                                      export  DISPLAY:=0
                                      

                                      Then it works with a warning

                                      libEGL warning: DRI2: failed to authenticate
                                      

                                      Is there a way to add this command

                                      export DISPLAY=:0
                                      

                                      automaticially before I run the application?

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

                                      @k-str You can write a simple shell script which first sets the env variable and then calls your app and then use this script to start the app.

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

                                      1 Reply Last reply
                                      1
                                      • K-StrK Offline
                                        K-StrK Offline
                                        K-Str
                                        wrote on last edited by
                                        #27

                                        @jsulm ,
                                        thanks for your answer!
                                        Yes I know there was somthing like this but I have no Idea how such a script looks.
                                        Where can I find an example? It should wor also for debugging

                                        JonBJ 1 Reply Last reply
                                        0
                                        • K-StrK K-Str

                                          @jsulm ,
                                          thanks for your answer!
                                          Yes I know there was somthing like this but I have no Idea how such a script looks.
                                          Where can I find an example? It should wor also for debugging

                                          JonBJ Offline
                                          JonBJ Offline
                                          JonB
                                          wrote on last edited by JonB
                                          #28

                                          @k-str
                                          Two lines in the script:

                                          export DISPLAY=:0
                                          full-path-or-plain-name-of-your-executable
                                          

                                          If you need it for debugging too, change second line to:

                                          full-path-or-plain-name-of-your-debugger   full-path-or-plain-name-of-your-executable
                                          

                                          Assuming your mobile is like Linux (I know nothing about mobiles), if you go

                                          chmod +x the-script
                                          

                                          then the-script is ready to execute.

                                          Alternatively, and better if it works:

                                          I do not know when your program needs that DISPLAY environment variable set, how early on after start up. If it is literally as soon as as it loads then you will have to set the environment variable before invocation. But if it's not, say, until you first try to create the UI, before that (before creating the QApplication) you could use Qt's qputenv() to set that environment variable, e.g. perhaps if it is not already set to something so user can set DISPLAY if needed but your code defaults it to :0 it it is not defined. Doing it this way, if possible, would get rid of the need to have a script wrapper.

                                          1 Reply Last reply
                                          1

                                          • Login

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