Unable to execute the examples of Qt-5.4.0
-
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 -
Hi and welcome to devnet,
What exactly isn't working ?
-
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
-
What error(s) are you getting ?
-
@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 -
Are you by any chance running these application directly from the console rather than from Qt Creator ?
-
Are you by any chance running these application directly from the console rather than from Qt Creator ?
-
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