Qt QML不支持SVG文件的图像格式

Qt QML不支持SVG文件的图像格式,qt,qt-creator,qml,embedded-linux,qtembedded,Qt,Qt Creator,Qml,Embedded Linux,Qtembedded,在启动使用QML的Qt嵌入式应用程序时,我不断遇到以下错误。通过谷歌搜索,我似乎需要将图像加载插件添加到我的嵌入式系统的导出nfs中。因此,我尝试将它们添加到多个位置,但不断出现错误。我将嵌入式ARM版本的libqsvg.so添加到以下位置,但仍然得到错误 /home/user/exported-nfs/lib/plugins/imageformats/libqsvg.so /home/user/exported-nfs/plugins/imageformats/libqsvg.so /home

在启动使用QML的Qt嵌入式应用程序时,我不断遇到以下错误。通过谷歌搜索,我似乎需要将图像加载插件添加到我的嵌入式系统的导出nfs中。因此,我尝试将它们添加到多个位置,但不断出现错误。我将嵌入式ARM版本的libqsvg.so添加到以下位置,但仍然得到错误

/home/user/exported-nfs/lib/plugins/imageformats/libqsvg.so
/home/user/exported-nfs/plugins/imageformats/libqsvg.so
/home/user/exported-nfs/usr/bin/plugins/imageformats/libqsvg.so
/home/user/exported-nfs/usr/lib/plugins/imageformats/libqsvg.so
/home/user/exported-nfs/usr/plugins/imageformats/libqsvg.so
这也不起作用:

export QT_PLUGIN_PATH=/usr/plugins:/usr/plugins/imageformats
echo $QT_PLUGIN_PATH
我怎样才能解决这个问题??我需要把插件放在哪里才能找到它们

错误:

警告: file:///usr/share/maliit/plugins/org/nemomobile/FunctionKey.qml:98:5: QML映像:解码错误: file:///usr/share/maliit/plugins/org/nemomobile/icon-m-input-methods-backspace.svg: 不支持的图像格式
警告: file:///usr/share/maliit/plugins/org/nemomobile/FunctionKey.qml:98:5: QML映像:解码错误: file:///usr/share/maliit/plugins/org/nemomobile/icon-m-input-methods-shift-lowercase.svg: 不支持的图像格式
警告: file:///usr/share/maliit/plugins/org/nemomobile/FunctionKey.qml:98:5: QML映像:解码错误: file:///usr/share/maliit/plugins/org/nemomobile/icon-m-input-methods-backspace.svg: 不支持的图像格式


答案是将插件目录复制到我的嵌入式主板上,位置由配置步骤中的-plugins标志指定。。在我的例子中是/usr/lib/qt/plugins。您还可以将环境变量QT_DEBUG_PLUGINS设置为1,以从任何未能加载的插件中获取一些调试输出