Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Static building for mac OS

Static building for mac OS

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.3k Views
  • 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.
  • S Offline
    S Offline
    sashapont
    wrote on last edited by
    #1

    I read this article
    http://doc.qt.io/qt-5/osx-deployment.html

    And found this solution for task

    cd /path/to/Qt
    ./configure -static <other parameters>
    make sub-src

    **What other parameters, are for macOS? **

    PS For windows I use
    configure -release -static -opensource -confirm-license -platform win32-g++ -nomake examples -no-ltcg -no-accessibility -no-sql-mysql -no-sql-psql -no-sql-oci -no-sql-odbc -no-sql-tds -no-sql-db2 -no-sql-ibase -no-opengl -no-openvg -no-incredibuild-xge -no-plugin-manifests -no-plugin-manifests -no-rtti -no-sse2 -no-openssl -no-dbus -no-audio-backend -no-style-windowsce -no-style-windowsmobile -no-mp -no-crt -no-cetest -no-freetype

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

      Hi,

      Remove the platform option. However note that on OS X you would usually use macdeployqt and have the frameworks deployed within your application bundle, especially true if you want to use the App Store.

      Also, don't forget the licensing requirements if you use a static Qt build.

      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
        sashapont
        wrote on last edited by
        #3

        If I try compile without platform version i see

        Undefined symbols for architecture x86_64:
        "std::ios_base::Init::Init()", referenced from:
        __GLOBAL__sub_I_compress.cpp in compress.o
        "std::ios_base::Init::~Init()", referenced from:
        __GLOBAL__sub_I_compress.cpp in compress.o
        ld: symbol(s) not found for architecture x86_64
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        make[3]: *** [../../../bin/qlalr] Error 1
        make[2]: *** [sub-qlalr-make_first] Error 2
        make[1]: *** [sub-src-make_first] Error 2
        make: *** [module-qtbase-make_first] Error 2

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

          Which version of OS X and Xcode are you using ?

          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
            sashapont
            wrote on last edited by
            #5

            OSX 10.10.4 Xcode 7.0

            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