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

unknown type name 'QSslConfiguration' (iphoneos-clang Qt 5.3.0 for iOS)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.3.0 Beta1
    • Build System
    • None
    • Mac OSX 10.8.5 64 bits
      xcode 5.1
      QT creator 3.0.82 based on Qt 5.3.0 (Clang 5.0 (Apple), 64 bit)
    • iOS/tvOS/watchOS

    Description

      I tried with the Qt 5.3 beta 1 because I had the same issue with Qt 5.2 on Mac OSX 10.8.5 and xcode 5.1

      May be it's a simple error from me and I'd be very sorry for this bug report if it is a simple error. I spent several days to investigate the root cause, so I've hoped I could find help on the bug tracker. I'm afraid I'd not be able to create Qt iOS applications for my company, if I can't solve the issue.

      I've attached the whole QT creator compilation output (started from empty compilation output dir). xCode reports the same error.

      I installed the qt-opensource-mac-x64-android-ios-5.3.0-beta.dmg. I created a QML application from the project creation assistant in QT creator. Added 'network' at the following line of the .pro file:

      QT += qml quick network
      

      And have this main.cpp:

      #include <QGuiApplication>
      #include <QQmlApplicationEngine>
      #include <QSslConfiguration>
      
      int main(int argc, char *argv[])
      {
          QSslConfiguration sslconf;
      
          QGuiApplication app(argc, argv);
      
          QQmlApplicationEngine engine;
          engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
      
      
      
          return app.exec();
      }
      

      I can deploy the samples like declarative-camera or Marron on the iOS devices (including simulators). But I can't compile with QSslConfiguration because clang report the following error while it tries to compile main.o:

      /Users/david/dev/ECSCapture-Qt/main.cpp:9:5: error: unknown type name 'QSslConfiguration'
          QSslConfiguration sslconf;
      

      But it does not complain about: #include <QSslConfiguration>
      So I suppose the issue must be about the clang options or something wrong in the xCode project configuration.

      Except the previous one. The others errors in the compilation output are:

      The following build commands failed:
      	CompileC ECSCapture-Qt.build/Release-iphoneos/ECSCapture-Qt.build/Objects-normal/armv7/main.o /Users/davidfortier/dev/ECSCapture-Qt/main.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
      (1 failure)
      

      And:

      make[1]: *** [iphoneos-release] Error 65
      make: *** [release-iphoneos] Error 2
      20:39:46: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project ECSCapture-Qt (kit: iphoneos-clang Qt 5.3.0 for iOS)
      When executing step 'Make'
      

      N.B: I didn't know what to choose for the issue component so I'm sorry if it's not relevant.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            khelkun Sébastien Perin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes