Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. qt4.8.6 with os x10.10 compiled error
Forum Updated to NodeBB v4.3 + New Features

qt4.8.6 with os x10.10 compiled error

Scheduled Pinned Locked Moved Qt WebKit
6 Posts 3 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • vilasV Offline
    vilasV Offline
    vilas
    wrote on last edited by
    #1

    Hi all !
    I had tried to compile qt4.8.6 on mac os x10.10 several days , and tried lots of methods, but can't solve the problem. The err message as below:
    Undefined symbols for architecture i386:
    ".objc_class_name_CWInterface", referenced from:
    pointer-to-literal-objc-class-name in qcorewlanengine.o
    "_CWKeychainCopyEAPIdentity", referenced from:
    QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
    "_CWKeychainCopyEAPUsernameAndPassword", referenced from:
    QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
    "_CWKeychainCopyPassword", referenced from:
    QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
    "_CWPowerDidChangeNotification", referenced from:
    -[QNSListener init] in qcorewlanengine.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[4]: *** [../../../../plugins/bearer/libqcorewlanbearer_debug.dylib] Error 1
    make[3]: *** [debug-all] Error 2
    make[2]: *** [sub-corewlan-make_default] Error 2
    make[1]: *** [sub-bearer-make_default] Error 2
    make: *** [sub-plugins-make_default-ordered] Error 2

    mac os x10.10 have remove many functions , but qt4.8.6 also use them .
    How can I deal with this problem?
    remarks: my custom will I compile qt4.8.6 on os x10.10.

    vilasV 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Am I see correctly that you are trying to build a 32bit version of Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sandy.martel23
        wrote on last edited by
        #3

        You need a patch for the CoreWLan (all those _CWSomething) framework to link.

        Either try the latest git for Qt 4.8.7, dig the specific patch from git or check my own instructions for it:

        https://dootaini.wordpress.com/2014/12/11/building-qt-4-8-6-x64-on-os-x-10-10-with-xcode-6-x-so-that-it-works-on-os-x-10-6/

        Note that I wrote that for my own benefit mostly, it's the step-by-step that I know works. It should work the same for a 32 bits build.

        1 Reply Last reply
        0
        • vilasV vilas

          Hi all !
          I had tried to compile qt4.8.6 on mac os x10.10 several days , and tried lots of methods, but can't solve the problem. The err message as below:
          Undefined symbols for architecture i386:
          ".objc_class_name_CWInterface", referenced from:
          pointer-to-literal-objc-class-name in qcorewlanengine.o
          "_CWKeychainCopyEAPIdentity", referenced from:
          QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
          "_CWKeychainCopyEAPUsernameAndPassword", referenced from:
          QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
          "_CWKeychainCopyPassword", referenced from:
          QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
          "_CWPowerDidChangeNotification", referenced from:
          -[QNSListener init] in qcorewlanengine.o
          ld: symbol(s) not found for architecture i386
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          make[4]: *** [../../../../plugins/bearer/libqcorewlanbearer_debug.dylib] Error 1
          make[3]: *** [debug-all] Error 2
          make[2]: *** [sub-corewlan-make_default] Error 2
          make[1]: *** [sub-bearer-make_default] Error 2
          make: *** [sub-plugins-make_default-ordered] Error 2

          mac os x10.10 have remove many functions , but qt4.8.6 also use them .
          How can I deal with this problem?
          remarks: my custom will I compile qt4.8.6 on os x10.10.

          vilasV Offline
          vilasV Offline
          vilas
          wrote on last edited by
          #4

          @SGaist
          when I build a 64bit version of Qt , the same error appears.
          .objc_class_name_CWInterface", referenced from:
          pointer-to-literal-objc-class-name in qcorewlanengine.o
          "_CWKeychainCopyEAPIdentity", referenced from:
          QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
          "_CWKeychainCopyEAPUsernameAndPassword", referenced from:
          QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
          "_CWKeychainCopyPassword", referenced from:
          QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o

          My configuration:
          ./configure -webkit -phonon -arch "x86" -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ -nomake examples -nomake demos

          I think CoreWlan framework has deprecated some functions such as :CWKeychainCopyEAPIdentity. But Qt4.8.6 still use them in qcorewlanengine .

          S 1 Reply Last reply
          0
          • vilasV vilas

            @SGaist
            when I build a 64bit version of Qt , the same error appears.
            .objc_class_name_CWInterface", referenced from:
            pointer-to-literal-objc-class-name in qcorewlanengine.o
            "_CWKeychainCopyEAPIdentity", referenced from:
            QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
            "_CWKeychainCopyEAPUsernameAndPassword", referenced from:
            QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o
            "_CWKeychainCopyPassword", referenced from:
            QCoreWlanEngine::connectToId(QString const&) in qcorewlanengine.o

            My configuration:
            ./configure -webkit -phonon -arch "x86" -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ -nomake examples -nomake demos

            I think CoreWlan framework has deprecated some functions such as :CWKeychainCopyEAPIdentity. But Qt4.8.6 still use them in qcorewlanengine .

            S Offline
            S Offline
            sandy.martel23
            wrote on last edited by sandy.martel23
            #5

            @vilas said:

            I think CoreWlan framework has deprecated some functions such as :CWKeychainCopyEAPIdentity. But Qt4.8.6 still use them in qcorewlanengine .

            Maybe they are deprecated but that's not your problem here, deprecated != removed. The problem is that CoreWLan has moved, it use to be under another framework and you were linking with it implicitly. Linking against CoreWLan needs to be explicit now.

            32 bits or 64 bits, you will not succeed until you patch your Qt 4.8.6 source.

            1 Reply Last reply
            0
            • vilasV Offline
              vilasV Offline
              vilas
              wrote on last edited by
              #6

              Thanks,I have patched and compiling now. Wish it will be successful.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved