首页 > 其他 > 详细

qmlscene: could not find a Qt installation of ''

时间:2017-09-13 22:47:12      阅读:980      评论:0      收藏:0      [点我收藏+]
qt
└── helloqt.qml

在qt目录下运行helloqt.qml文件时出现这个提示:

$ qmlscene helloqt.qml 
qmlscene: could not find a Qt installation of ‘‘

解决方法:

在home里的.config下建个目录qtchooser:

cd ~/.config
mkdir qtchooser

然后添加default.conf文件,添加qt的bin和lib。即在 ~/.config/qtchooser/default.conf 文件中添加如下内容(注意不要用$HOME这种写法):

/home/jack/Qt5.9.1/5.9.1/gcc_64/bin
/home/jack/Qt5.9.1/5.9.1/gcc_64/lib

 

--END--

 

qmlscene: could not find a Qt installation of ''

原文:http://www.cnblogs.com/ibgo/p/7518021.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!