Build QT 5 project on Linux
-
Hello everyone,
I have created a Qt project using QT creator on Windows. I want to build this project on LInux. What all steps i need to follow?
Steps i did:- cmake
- make
But getting some code related error messages.
Do i need to make any changes in the code or it should build fine directly with make?
-
Show us those errors, please.
Usually there is no need to change anything in code if your are using solely Qt APIs.
-
Please check this snapshot for
reference.
!https://plus.google.com/photos/106302858773546600656/albums/5898225545723964369/5898225585996320594?banner=pwa&pid=5898225585996320594&oid=106302858773546600656()! -
Please check this spanshot for
reference.
!https://plus.google.com/photos/106302858773546600656/albums/5898225545723964369/5898225585996320594?banner=pwa&pid=5898225585996320594&oid=106302858773546600656()! -
I suspect you are missing some Qt dependencies, but am not sure.
-
Well, yes. Obviously, dependencies differ depending on the platform. You seem to be missing accessible stuff.
Have you compiled Qt yourself, or run the prepackaged installer?
Quoting from "build guide":http://qt-project.org/wiki/Building_Qt_5_from_Git:
[quote]Accessibility
It is recommended to build with accessibility enabled, install libatspi 2 and libdbus-1 development packages.[/quote] -
I'm not asking about your project - it's obvious you did compile that yourself. I am asking about Qt5 lobraries themselves: have you downloaded Qt5 source code and compiled it successfully, or are you using precompiled package? What is your OS?
Still, please try installing libs I talked about in my previous post, those might help.