0
votes
MMMMMM@unbuntu:~/QT/test4Qml$ qmlscene main.qml

qmlscene: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmlscene': No such file or directory

My Qt Development Environment does not have qmlscene. I googled it, and I only found *.deb. How should I do it?

1
Make sure your version of Qt is 4.7 or above, QML is a part of QtQuick which was only introduced in 4.7. - Tim Smit
The helpers can easily be built yourself after installing the qt-binaries. Just also install the sources and run an install of the desired package by qmake && make && make install - Sebastian Lange
aha.I had solved it ! - No.6

1 Answers

2
votes

As far as I know, Qt is not installed by default in /usr/lib/x86_64-linux-gnu/qt4. That directory is the default path when linux detects a dependency which requires Qt.

Where did you installed Qt? How did you installed it? Did you set the PATH environment variable to where Qt binaries are installed?

Usually, you have to follow the next steps:

  • 1.- Install the the basic requirements for building Qt applications.
  • 2.- Download Qt. I recommend Qt 5 using an offline installer. Otherwise, you'd need to compile from the source. Here you have a list of older versions of Qt.
  • 3.- Set the environment variable PATH to the directory where you Qt bin directory is installed.