我试图在OSX Mavericks上安装cutecom,但我得到了一些错误。 以下是我遵循的步骤。
通过brew安装qt
brew install qt
.bashprofile上的更新路径
export PATH = / usr / local / Cellar / qt / 4.8.6 / bin:$ PATH
提取cutecom的文件
编译cutecom的源代码
$ mkdir build
$ cd build
$ cmake ..
$ make
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
有什么建议吗?
非常感谢你的时间。
科斯塔斯。
答案 0 :(得分:4)
你所拥有的Qt包缺少Qt3Support(on purpose)。这个组件必然适用于某些仍然使用可追溯到Qt3的弃用功能的Qt4软件。
Based on the documentation I've been able to find online,您应该可以使用以下命令重新安装Qt4以及所需的附加内容:
brew install --with-qt3support qt