在拷贝了qt库文件并设置了环境变量的情况下,在没有qt的电脑上运行时出现下面错误./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Core.so.5: version Qt_5.9' not found (required by ./ImageTool) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Core.so.5: version Qt_5' not found (required by ./ImageTool) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Gui.so.5: version Qt_5' not found (required by ./ImageTool) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Gui.so.5: version Qt_5_PRIVATE_API' not found (required by /home/zhanghb/Desktop/62/lib/libQt5Widgets.so.5) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Gui.so.5: version Qt_5' not found (required by /home/zhanghb/Desktop/62/lib/libQt5Widgets.so.5) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Core.so.5: version Qt_5.9' not found (required by /home/zhanghb/Desktop/62/lib/libQt5Widgets.so.5) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Core.so.5: version Qt_5_PRIVATE_API' not found (required by /home/zhanghb/Desktop/62/lib/libQt5Widgets.so.5) ./ImageTool: /home/zhanghb/Desktop/62/lib/libQt5Core.so.5: version Qt_5' not found (required by /home/zhanghb/Desktop/62/lib/libQt5Widgets.so.5)
时间: 2023-07-05 19:30:45 浏览: 125
这个错误提示与你拷贝的 Qt 库文件版本不匹配有关。请检查你拷贝的 Qt 库文件版本是否与程序所需的版本相匹配。如果你使用的是 Qt 5.9 版本,那么需要拷贝 Qt 5.9 的库文件;如果你使用的是其他版本,那么需要拷贝相应版本的库文件。另外,确保你拷贝的 Qt 库文件包含了程序所需的所有库文件,以免出现其他依赖项错误。
阅读全文