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. Unable to execute the examples of Qt-5.4.0

Unable to execute the examples of Qt-5.4.0

Scheduled Pinned Locked Moved Mobile and Embedded
c++qmlqt 5.4
8 Posts 2 Posters 2.3k Views
  • 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.
  • R Offline
    R Offline
    Rohith
    wrote on last edited by
    #1

    Hi i am unable to run the examples that are present in the Qt-5.4.0 folder
    I need support to complie and execute for the examples that are present in the Positioning folder in the examples
    Please help me by suggesting the steps for compiling and executing the programs that are in combination with both C++ and qml files such as Satelliteinfo in positioning.

    Thanks in advance
    Rohith.g

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

      Hi and welcome to devnet,

      What exactly isn't working ?

      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
      • R Offline
        R Offline
        Rohith
        wrote on last edited by
        #3

        Hi SGaist,
        Thanks for replying,
        Actually i am trying to run the Qt-5.4.0 examples that were present in the
        /usr/local/Qt-5.4.0/examples/
        The example i am trying to run were that are present in the positioning folder all the examples in the positioning are using the .qml files and when i am trying to compile and run them the applications are closing as early as they open.
        I am not getting where the problem is and i am a beginner in Qt Programming.

        Rohith.G

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

          What error(s) are you getting ?

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

          R 1 Reply Last reply
          0
          • SGaistS SGaist

            What error(s) are you getting ?

            R Offline
            R Offline
            Rohith
            wrote on last edited by
            #5

            @SGaist
            The Main Error that i am facing is
            **defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
            defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
            connect : Connection refused
            QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
            Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)
            Aborted (core dumped)
            **
            this is occuring when i am running the Weather info module that was present in
            /usr/local/Qt-5.4.0/examples/positioning/weatherinfo/.
            Please help me to find the Solution.

            Thanks in advance
            Rohith.G

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

              Are you by any chance running these application directly from the console rather than from Qt Creator ?

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

              R 1 Reply Last reply
              0
              • SGaistS SGaist

                Are you by any chance running these application directly from the console rather than from Qt Creator ?

                R Offline
                R Offline
                Rohith
                wrote on last edited by
                #7

                @SGaist
                yes i am running them by the help of console instead of Qt Creator.
                Is there any problem if we run the applications in the console
                Please suggest me

                Thanks in advance
                Rohith.G

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

                  Qt Creator modifies your environment locally so that you are sure your application finds and use the correct set of Qt libraries. Calling your application directly on the command line bypasses that so your application is currently not finding the Qt libraries. Have a look at the Linux deployment guide to see how to write a shell script that will do 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

                  • Login

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