码迷,mamicode.com
首页 > 其他好文 > 详细

qmlscene: could not find a Qt installation of ''

时间:2017-09-13 23:15:50      阅读:485      评论:0      收藏:0      [点我收藏+]

标签:find   not   pre   方法   home   strong   nbsp   conf   ack   

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 ''

标签:find   not   pre   方法   home   strong   nbsp   conf   ack   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!