在OSX Mavericks上,Cutecom安装失败

时间:2014-10-01 19:31:50

标签: macos qt makefile osx-mavericks

我试图在OSX Mavericks上安装cutecom,但我得到了一些错误。 以下是我遵循的步骤。

  1. 通过brew安装qt

    brew install qt

  2. .bashprofile上的更新路径

    export PATH = / usr / local / Cellar / qt / 4.8.6 / bin:$ PATH

  3. 提取cutecom的文件

  4. 编译cutecom的源代码

    $ mkdir build

    $ cd build

    $ cmake ..

    $ make

  5. 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
    

    有什么建议吗?

    非常感谢你的时间。

    科斯塔斯。

1 个答案:

答案 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