我正在尝试在OSX Mavericks上安装cutecom,但出现了一些错误。
这是我遵循的步骤。
通过brew安装qt
brew install qt
.bashprofile上的更新路径
导出PATH = / usr / local / Cellar / qt / 4.8.6 / bin:$ PATH
提取cutecom的文件
编译cutecom的源代码
$ mkdir构建
$ cd构建
$ cmake ..
$使
make的输出为:
[ 20%] Generating ui_cutecommdlg.h
/Users/kc/Downloads/cutecom-0.22.0/cutecommdlg.ui: Warning: The form file has external pixmaps or qPixmapFromMimeSource() set as a pixmap function. This requires Qt 3 support, which is disabled. The resulting code will not compile.
[ 40%] Generating moc_qcppdialogimpl.cxx Scanning dependencies of target cutecom
[ 60%] Building CXX object CMakeFiles/cutecom.dir/main.cpp.o
In file included from /Users/kc/Downloads/cutecom-0.22.0/main.cpp:21:
In file included from /Users/kc/Downloads/cutecom-0.22.0/qcppdialogimpl.h:22:
/Users/kc/Downloads/cutecom-0.22.0/build/ui_cutecommdlg.h:12:10: fatal error:
'Qt3Support/Q3MimeSourceFactory' file not found
#include <Qt3Support/Q3MimeSourceFactory>
^
1 error generated.
make[2]: *** [CMakeFiles/cutecom.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/cutecom.dir/all] Error 2
make: *** [all] Error 2
有什么建议 ?
非常感谢您的宝贵时间。
科斯塔斯。
最佳答案
您拥有的Qt软件包缺少Qt3Support(on purpose)。对于某些仍使用可追溯到Qt3的已弃用功能的Qt4软件,此组件必不可少。
Based on the documentation I've been able to find online,您应该可以使用以下命令重新安装Qt4及其所需的其他功能:
brew install --with-qt3support qt
关于macos - 在OSX Mavericks上Cutecom安装失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26149108/