Build QT 5 project on Linux
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:
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
Please check this spanshot for
I suspect you are missing some Qt dependencies, but am not sure.
Same is running on Windows with QT creator.. :(
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:
It is recommended to build with accessibility enabled, install libatspi 2 and libdbus-1 development packages.[/quote]
Yes, I am running it by myself using cmake and make under qt5 - 5.0.2
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.
I tried against qt 5.0.2 compiled from src for our target board.
OS is linux