Build Qt from source with mac os x statically failed.



  • I tried to build Qt from source, the configure is:
    ./configure
    -prefix /Users/jiangcaiyang/Develop/Qt5.3Static
    -confirm-license -opensource
    -static -release
    -qt-libpng -qt-libjpeg
    -opengl desktop
    -fontconfig -qt-freetype
    -qt-sql-sqlite
    -no-qml-debug
    -nomake examples -nomake tests
    -skip qtwebkit
    -no-xcb
    However, when I run make, error occurs:

    qcocoaapplicationdelegate.mm:127:28: error: cannot initialize a parameter of
    type 'id<NSFileManagerDelegate>' with an lvalue of type
    'NSObject<NSApplicationDelegate> *'
    [NSApp setDelegate:reflectionDelegate];
    ^~~~~~~~~~~~~~~~~~
    /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:95:47: note:
    passing argument to parameter 'delegate' here
    @property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
    ^
    1 error generated.

    I don't know how to do because I don't know Objective C. Please help me thanks.


  • Lifetime Qt Champion

    Hi,

    What version of OS X and Xcode are you using ?



  • OS X 10.10 & Xcode 6.0.0 Beta 1 by the looks of that readout.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.