mac 上如何静态编译qt5.6.3



  • 下载了qt5.6.3的源码

    编译出错,命令如下

    ./configure -static -debug-and-release -nomake examples -nomake tests -prefix ~/Qt/5.6.3_static_osx -qt-sql-sqlite -plugin-sql-sqlite -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -opensource -confirm-license -opengl -qt-freetype
    

    报错解决修改了源码下的qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm

    0_1550046242698_a9aabb1c-dad5-4372-8310-7de51364c0e0-image.png

    执行make不报错,但是make install报错

    0_1550046354848_d27c2c62-0320-49ca-81a8-9c4ebad41489-image.png


Log in to reply