pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x11/qt4-libs on Mac OS Mavericks



Hi,

I am trying to compile qt4 on Mac OS 10.9.2 with Xcode 5. There are a
bunch of warnings that this version of Mac OS is not supported, and
the compilation fails with:


libtool --silent --mode=link clang++ -avoid-version -rpath
/usr/pkg/qt4/plugins/bearer -module -lresolv -L/usr/pkg/lib -L/usr/lib
-L/opt/X11/lib -L/usr/pkg/qt4/lib -single_module -dynamiclib
-Xarch_x86_64 -mmacosx-version-min=10.5 -o
../../../../plugins/bearer/libqgenericbearer.la
.obj/release-shared/qgenericengine.lo
.obj/release-shared/qnetworksession_impl.lo
.obj/release-shared/main.lo .obj/release-shared/moc_qgenericengine.lo
.obj/release-shared/moc_qnetworksession_impl.lo
.obj/release-shared/moc_qbearerengine_impl.lo    -L/usr/pkg/lib
-L/usr/lib -L/opt/X11/lib
-L/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib
-lQtNetwork -L/usr/pkg/lib -L/usr/lib -L/opt/X11/lib
-L/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib
-lQtCore -lresolv

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: ../../../../plugins/codecs/.libs/libqjpcodecs.a(qfontjpcodec.o)
has no symbols

*** [buildlink3] Warning: libtool replaced -lQtNetwork with
/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib/libQtNetwork.la

qcorewlanengine.mm:104:88: error: use of undeclared identifier
'kCWPowerDidChangeNotification'; did

      you mean 'CWPowerDidChangeNotification'?

  ...addObserver:self selector:@selector(notificationHandler:)
name:kCWPowerDidChangeNotification o...


^~~~~~~~~~~~~~~~~~~~~~~~~~~~~


CWPowerDidChangeNotification

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CoreWLANConstants.h:27:36:
note:

      'CWPowerDidChangeNotification' declared here

FOUNDATION_EXTERN NSString * const CWPowerDidChangeNotification
NS_AVAILABLE_MAC(10_6);

                                   ^

qcorewlanengine.mm:115:1: warning: writable atomic property 'engine'
cannot pair a synthesized getter

      with a user defined setter [-Watomic-property-with-user-defined-accessor]

-(void)setEngine:(QCoreWlanEngine *)coreEngine

^

qcorewlanengine.mm:91:37: note: setter and getter must both be
synthesized, or both be user defined,or

      the property must be nonatomic

@property (assign) QCoreWlanEngine* engine;

~~~~~~~~~~~                         ^

@property (nonatomic,

qcorewlanengine.mm:91:37: note: property declared here

qcorewlanengine.mm:176:26: warning: instance method '-power' not found
(return type defaults to 'id')

      [-Wobjc-method-access]

    if([currentInterface power]) {

                         ^~~~~

*** [buildlink3] Warning: libtool replaced -lQtCore with
/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib/libQtCore.la

qcorewlanengine.mm:179:67: error: use of undeclared identifier 'kCWScanKeyMerge'

                                   [NSNumber numberWithBool:YES],
kCWScanKeyMerge,

                                                                  ^

qcorewlanengine.mm:183:46: warning: instance method
'-scanForNetworksWithParameters:error:' not found

      (return type defaults to 'id') [-Wobjc-method-access]

        NSArray* apArray = [currentInterface
scanForNetworksWithParameters:parametersDict error:&err];


^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

qcorewlanengine.mm:197:39: error: property 'interfaceState' not found
on object of type

      'CWInterface *'; did you mean 'interfaceName'?

                if( [currentInterface.interfaceState intValue] ==
kCWInterfaceStateRunning) {

                                      ^~~~~~~~~~~~~~

                                      interfaceName

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h:52:37:
note:

      'interfaceName' declared here

@property(readonly, copy) NSString *interfaceName NS_AVAILABLE_MAC(10_7);

                                    ^

ld: warning: directory not found for option '-L/usr/pkg/qt4/lib'

qcorewlanengine.mm:197:67: error: use of undeclared identifier
'kCWInterfaceStateRunning'

                if( [currentInterface.interfaceState intValue] ==
kCWInterfaceStateRunning) {

                                                                  ^

qcorewlanengine.mm:210:32: warning: 'CWNetwork' may not respond to
'securityMode'

                if([[apNetwork securityMode] intValue] == kCWSecurityModeOpen) {

                     ~~~~~~~~~ ^

cd tw/ && /Applications/Xcode.app/Contents/Developer/usr/bin/gnumake -f Makefile

qcorewlanengine.mm:210:59: error: use of undeclared identifier
'kCWSecurityModeOpen'; did you mean

      'kCWSecurityNone'?

                if([[apNetwork securityMode] intValue] == kCWSecurityModeOpen) {

                                                          ^~~~~~~~~~~~~~~~~~~

                                                          kCWSecurityNone

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CoreWLANTypes.h:143:2:
note:

      'kCWSecurityNone' declared here

        kCWSecurityNone                 = 0,

        ^

qcorewlanengine.mm:240:35: error: property 'interfaceState' not found
on object of type

      'CWInterface *'; did you mean 'interfaceName'?

            if( [currentInterface.interfaceState intValue] ==
kCWInterfaceStateRunning) {

                                  ^~~~~~~~~~~~~~

                                  interfaceName

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h:52:37:
note:

      'interfaceName' declared here

@property(readonly, copy) NSString *interfaceName NS_AVAILABLE_MAC(10_7);

                                    ^

libtool --silent --mode=link clang++ -avoid-version -rpath
/usr/pkg/qt4/plugins/codecs -module -lresolv -L/usr/pkg/lib -L/usr/lib
-L/opt/X11/lib -L/usr/pkg/qt4/lib -single_module -dynamiclib
-Xarch_x86_64 -mmacosx-version-min=10.5 -o
../../../../plugins/codecs/libqtwcodecs.la
.obj/release-shared/qbig5codec.lo .obj/release-shared/main.lo
-L/usr/pkg/lib -L/usr/lib -L/opt/X11/lib
-L/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib
-lQtCore -L/usr/pkg/lib -L/usr/lib -L/opt/X11/lib
-L/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib
-lresolv

ld: warning: directory not found for option '-L/usr/pkg/qt4/lib'

qcorewlanengine.mm:240:63: error: use of undeclared identifier
'kCWInterfaceStateRunning'

            if( [currentInterface.interfaceState intValue] ==
kCWInterfaceStateRunning) {

                                                              ^

qcorewlanengine.mm:303:44: warning: class method
'+supportedInterfaces' not found

      (return type defaults to 'id') [-Wobjc-method-access]

    NSArray *wifiInterfaces = [CWInterface supportedInterfaces];

                                           ^~~~~~~~~~~~~~~~~~~

qcorewlanengine.mm:307:30: warning: instance method '-power' not found
(return type defaults to 'id')

      [-Wobjc-method-access]

        if ( ![wifiInterface power] )

                             ^~~~~

qcorewlanengine.mm:310:52: warning: 'CWInterface' may not respond to 'name'

        NSString *nsInterfaceName = [wifiInterface name];

                                     ~~~~~~~~~~~~~ ^

qcorewlanengine.mm:447:22: warning: class method
'+supportedInterfaces' not found

      (return type defaults to 'id') [-Wobjc-method-access]

    if([[CWInterface supportedInterfaces] count] > 0 && !listener) {

                     ^~~~~~~~~~~~~~~~~~~

qcorewlanengine.mm:484:24: warning: instance method '-power' not found
(return type defaults to 'id')

      [-Wobjc-method-access]

    if ([wifiInterface power]) {

                       ^~~~~

*** [buildlink3] Warning: libtool replaced -lQtCore with
/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib/libQtCore.la

qcorewlanengine.mm:511:70: error: use of undeclared identifier
'kCWAssocKey8021XProfile'

                    [params setValue: [array objectAtIndex:i]
forKey:kCWAssocKey8021XProfile];

                                                                     ^

qcorewlanengine.mm:532:72: error: use of undeclared identifier 'kCWScanKeyMerge'

                                        [NSNumber numberWithBool:YES],
kCWScanKeyMerge,

                                                                       ^

qcorewlanengine.mm:538:45: warning: instance method
'-scanForNetworksWithParameters:error:' not found

      (return type defaults to 'id') [-Wobjc-method-access]

        NSArray *scanArray = [wifiInterface
scanForNetworksWithParameters:scanParameters error:&err];


^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

qcorewlanengine.mm:598:60: error: use of undeclared identifier
'kCWAssocKeyPassphrase'

                        [params setValue: password forKey:
kCWAssocKeyPassphrase];

                                                           ^

qcorewlanengine.mm:602:50: warning: instance method
'-associateToNetwork:parameters:error:' not found

      (return type defaults to 'id') [-Wobjc-method-access]

  ...associateToNetwork: apNetwork parameters:[NSDictionary
dictionaryWithDictionary:params] error:...

     
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

qcorewlanengine.mm:637:25: warning: instance method '-interfaceState' not found

      (return type defaults to 'id') [-Wobjc-method-access]

    if ([[wifiInterface interfaceState]intValue] != kCWInterfaceStateInactive) {

                        ^~~~~~~~~~~~~~

ld: warning: directory not found for option '-L/usr/pkg/qt4/lib'

cd svg/ && /Applications/Xcode.app/Contents/Developer/usr/bin/gnumake
-f Makefile

qcorewlanengine.mm:637:53: error: use of undeclared identifier
'kCWInterfaceStateInactive'

    if ([[wifiInterface interfaceState]intValue] != kCWInterfaceStateInactive) {

                                                    ^

qcorewlanengine.mm:657:44: warning: class method
'+supportedInterfaces' not found

      (return type defaults to 'id') [-Wobjc-method-access]

    NSArray *wifiInterfaces = [CWInterface supportedInterfaces];

                                           ^~~~~~~~~~~~~~~~~~~

qcorewlanengine.mm:673:30: warning: instance method '-power' not found
(return type defaults to 'id')

      [-Wobjc-method-access]

        if([defaultInterface power]) {

                             ^~~~~

libtool --silent --mode=link clang++ -avoid-version -rpath
/usr/pkg/qt4/plugins/imageformats -module -lresolv -L/usr/pkg/lib
-L/usr/lib -L/opt/X11/lib -L/usr/pkg/qt4/lib -single_module
-dynamiclib -Xarch_x86_64 -mmacosx-version-min=10.5 -o
../../../../plugins/imageformats/libqsvg.la
.obj/release-shared/main.lo .obj/release-shared/qsvgiohandler.lo
-L/usr/pkg/lib -L/usr/lib -L/opt/X11/lib
-L/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib
-lQtSvg -L/usr/pkg/lib -L/usr/lib -L/opt/X11/lib
-L/usr/pkgsrc/x11/qt4-libs/work/qt-everywhere-opensource-src-4.8.5/lib
-lQtXml -lQtGui -lQtCore -lresolv

15 warnings and 11 errors generated.

gnumake[3]: *** [.obj/release-shared/qcorewlanengine.o] Error 1

gnumake[2]: *** [sub-corewlan-make_default] Error 2


Has anyone had this problem? I don't really care about a WLAN engine,
maybe this can simply be disabled?

--Benny.


Home | Main Index | Thread Index | Old Index