Closed atomic closed 10 years ago
Ok, you did the right thing getting Qt directly from Digia. The problem here is that you are not using them, "qmake -v" should return something like "Using Qt version 5.3.1 in /opt/Qt5.3.1/5.3/gcc_64/".
I think the issue here is that you are running everything with sudo, which if I recall correctly restores some environmental variables to prevent security attacks. To be clear you don't need to use sudo to use the version of Qt in /opt/. sudo is not giving you the right to use them is giving you the right to modify them (which you don't need).
Oh my, i didn't know root has different access to different qmake. Yeah, i compile it somewhere else with no sudo, and it worked. I wonder why my root has very old version of qt which i never installed. Thanks, it worked really well.
My elementaryOS(based on Ubuntu 12.04 Precise) does not have the access to Trusty, so i have to install Qt 5.3.1 from http://qt-project.org/downloads and added the correct path to the qt bin folder. "sudo qmake -v" gives me (i install it on /opt/ so i use sudo):
Here's the error i get when run "sudo make":
But Qt 5.3.1 has QtQml, which is at
/opt/Qt5.3.1/5.3/gcc_64/qml
So, how to resolve this?