QtQuick程序在ubuntu测试机上运行提示module "QtQuick.Controls" is not installed
2014-11-04 10:04
1266 查看
我的开发机上安装的是从Qt官网(qt-project.org/downloads)下载的Qt 5.3.1 openSource x64 for linux,编译运行都很正常,但是在将release版本的程序拷贝到一台干净的测试机上运行时却提示module "QtQuick.Controls" is not installed,网上的建议是添加环境变量QML2_IMPORT_PATH(Qt官方参考网站:http://qt-project.org/doc/qt-5/qtqml-syntax-imports.html#qml-import-path),但是实际上测试机上根本就没有QML2的库,这个path怎么写肯定也不对的,而且我的开发机上也没有这个变量,说明程序不是靠这个环境变量来定位所需的库的,通过ldd命令检查该程序默认的链接库路径是/usr/lib/x86_64-linux-gnu/qt5/qml/,但是在该目录下搜索却并没有名字类似libcontrols.so的库,在其他位置搜索也没有发现类似的库,后来终于找到了解决办法,就是安装运行库(囧,仔细想想好像本来就该这么做)QtQuick.Controls运行需要安装运行库:qtdeclarative5-controls-plugin,而QtQuick.Layouts对应的库是qtdeclarative5-quicklayouts-plugin.安装完之后链接库目录下会出现/QtQuick/Controls,/QtQuick/Layouts,程序就可以正常运行了.
相关文章推荐
- 【使用Ubuntu SDK】入门篇——qtcreator 运行qmlscene时 module "Ubuntu.Components" is not installed 错误分析和解决
- 关于 QWidget+Qml程序部署到linux时,'module"QtQuick”is not installed' 的解决方法
- module "Qt.WebSockets" is not installed
- android studio 运行程序提示"adb not responding. if you'd like to.."
- Qt提示 "Could not connect to AppWrapper, Please make sure TCP port 12005 is not blocked"解决方法
- 移植Qt5.7在开发板上运行Qt程序提示This application failed to start because it could not find or load the Qt platfo
- 运行Maven程序报错-Dmaven.multiModuleProjectDirectory system propery is not set.
- Qt提示 "Could not connect to AppWrapper, Please make sure TCP port 12005 is not blocked"解决方法
- Ubuntu 16.04 安装ROS kinetic提示Depends: ros-kinetic-desktop but it is not going to be installed
- eclispe无法运行java web程序—提示:Project facet Java version 1.7 is not supported
- eclispe无法运行java web程序—提示:Project facet Java version 1.7 is not supported
- Xamarin.Android模拟器提示HAX kernel module is not Installed
- (上一篇的问题解决后又遇到的新问题)在eclipse中导入工程后运行任意文件出现"The selection is not within a valid module"
- Xamarin.Android模拟器提示HAX kernel module is not Installed
- 解决pyinstaller 打包后运行exe程序出现的"ModuleNotFindError"
- Qt程序在其他电脑上运行时提示:couldnot find or add the Qt platform plugin:windows
- 解决"libc.so.6: version `GLIBC_2.14' not found"问题 试图运行程序,提示"libc.so.6: version `GLIBC_2.14' not found
- Android Studio运行报错信息:CPU acceleration status:HAX kernel module is not installed!
- Qt提示 "Could not connect to AppWrapper, Please make sure TCP port 12005 is not blocked"解决方法
- Qt提示 "Could not connect to AppWrapper, Please make sure TCP port 12005 is not blocked"解决方法