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

New example grpc/vehicle not compiling on iOS

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 0e0e5ac0c (dev), d3991e27c (6.8), fd05c096a (6.7)

    Description

      Install Qt 6.8.0 beta3 snapshot iOS binaries, and try to configure example grpc/vehicle:

      /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/bin/qt-cmake -S /Users/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/grpc/vehicle -B /Users/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/grpc/vehicle/bld_ios -DCMAKE_OSX_SYSROOT=iphonesimulator 

      -> fails:

      CMake Error in CMakeLists.txt:
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Found ZLIB: /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk/usr/lib/libz.tbd (found version "1.2.12")
      -- Found WrapSystemZLIB: TRUE (found version "1.2.12")
      -- Using system ZLIB.
      -- Found WrapZLIB: TRUE (found version "1.2.12")
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE
      -- Looking for backtrace
      -- Looking for backtrace - found
      -- backtrace facility detected in default set of libraries
      -- Found Backtrace: /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk/usr/include
      -- Using Qt bundled PCRE2.
      -- Found WrapPCRE2: TRUE (found version "6.8.0")
      -- Performing Test HAVE_GETTIME
      -- Performing Test HAVE_GETTIME - Success
      -- Performing Test HAVE_SHM_OPEN_SHM_UNLINK
      -- Performing Test HAVE_SHM_OPEN_SHM_UNLINK - Success
      -- Found WrapRt: TRUE
      -- Performing Test HAVE_EGL
      -- Performing Test HAVE_EGL - Failed
      -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) 
      -- Performing Test HAVE_GLESv2
      -- Performing Test HAVE_GLESv2 - Success
      -- Found GLESv2: /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk/System/Library/Frameworks/OpenGLES.framework
      -- Using Qt bundled PNG.
      -- Found WrapPNG: TRUE (found version "6.8.0")
      -- Using Qt bundled Harfbuzz.
      -- Found WrapHarfbuzz: TRUE (found version "6.8.0")
      -- Using Qt bundled Freetype.
      -- Found WrapFreetype: TRUE (found version "6.8.0")
      -- Using Qt bundled Jpeg.
      -- Found WrapJpeg: TRUE (found version "6.8.0")
      -- Found AVFoundation: /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk/System/Library/Frameworks/AVFoundation.framework
      CMake Warning at grpc_vehicle_server/CMakeLists.txt:15 (message):
        Dependencies of SimpleVehicleServer not found.  Skipping.
      CMake Warning at /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6/QtPublicAppleHelpers.cmake:281 (message):
        No organization bundle identifier prefix could be retrieved from Xcode
        preferences.  This can lead to code signing issues due to a non-unique
        bundle identifier.  Please set up an organization prefix by creating a new
        project within Xcode, or consider providing a custom bundle identifier by
        specifying the MACOSX_BUNDLE_GUI_IDENTIFIER or
        XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER property.
      Call Stack (most recent call first):
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6/QtPublicAppleHelpers.cmake:438 (_qt_internal_get_default_apple_bundle_identifier)
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6/QtPublicAppleHelpers.cmake:980 (_qt_internal_set_apple_bundle_identifier)
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6/QtPublicAppleHelpers.cmake:996 (_qt_internal_finalize_apple_app)
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6/QtPublicAppleHelpers.cmake:986 (_qt_internal_finalize_ios_app)
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:774 (_qt_internal_finalize_uikit_app)
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:858 (_qt_internal_finalize_executable)
        /Users/qt/RTA/Qt_6.8.0/6.8.0/ios/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:827:EVAL:1 (qt6_finalize_target)
        CMakeLists.txt:DEFERRED
      -- Configuring done (23.2s)
      -- Generating done (0.1s)
      CMake Error in CMakeLists.txt:
        The custom command generating
          /Users/qt/RTA/Qt_6.8.0/Examples/Qt-6.8.0/grpc/vehicle/bld_ios/vehicleservice.qpb.h
        is attached to multiple targets:
          vehiclelib_qtprotobufgen_deps_0
          vehiclelib_protobuf_registration_autogen
        but none of these is a common dependency of the other(s).  This is not
        allowed by the Xcode "new build system".
      CMake Generate step failed.  Build files cannot be regenerated correctly. 

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            joaijala Johanna Äijälä
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews