Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109939

httpserver examples not compiling on iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.5.0 Beta1, 6.5.1, 6.6.0 FF
    • Qt Http Server
    • iOS/tvOS/watchOS

    Description

      Install 6.5.0 beta1 or 6.6.0 iOS binaries and configure example httpserver/addressbookserver:

      /6.6.0/ios/bin/qt-cmake -S /Users/qt/RTA/Qt_6.6.0/Examples/Qt-6.6.0/httpserver/addressbookserver -B /Users/qt/RTA/Qt_6.6.0/Examples/Qt-6.6.0/httpserver/addressbookserver/bld_ios -GNinja 

      Finishes succesfully, but compile fails:

      [1/3] Copying OS X Content addressbookserver.app/LaunchScreen.storyboard
      [2/3] Building CXX object CMakeFiles/addressbookserver.dir/main.cpp.o
      [3/3] Linking CXX executable addressbookserver.app/addressbookserver
      FAILED: addressbookserver.app/addressbookserver 
      : && /Applications/Xcode14.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -arch arm64 -isysroot /Applications/Xcode14.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk -miphoneos-version-min=14.0 -Wl,-headerpad_max_install_names -Wl,-e,_qt_main_wrapper /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/plugins/networkinformation/objects-Debug/QSCNetworkReachabilityNetworkInformationPlugin_init/QSCNetworkReachabilityNetworkInformationPlugin_init.cpp.o /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/plugins/tls/objects-Debug/QSecureTransportBackendPlugin_init/QSecureTransportBackendPlugin_init.cpp.o CMakeFiles/addressbookserver.dir/main.cpp.o -o addressbookserver.app/addressbookserver  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/lib/libQt6Core.a  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/./plugins/networkinformation/libqscnetworkreachability.a  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/./plugins/tls/libqsecuretransportbackend.a  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/lib/libQt6HttpServer.a  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/lib/libQt6WebSockets.a  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/lib/libQt6Network.a  -framework SystemConfiguration  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/lib/libQt6Core.a  -lz  -framework IOKit  -framework CoreFoundation  -framework Foundation  -lm  /Users/qt/RTA/Qt_6.6.0/6.6.0/ios/lib/libQt6BundledPcre2.a  -framework MobileCoreServices  -framework UIKit  -framework Security && :
      Undefined symbols for architecture arm64:
        "_qt_main_wrapper", referenced from:
           implicit entry/start for main executable
      ld: symbol(s) not found for architecture arm64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed. 

      AFAIK httpserver should be supported by iOS.
      Same with afterrequest  and simple examples.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ievgenii.meshcheriakov Ievgenii Meshcheriakov
              joaijala Johanna Äijälä
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes