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

[REG 6.8.2->6.9.0RC] QtGRPC examples not compiling on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9.0
    • GRPC
    • macOS13 x64, branch 6.9
    • macOS

    Description

      Install Qt 6.9.0 macOS desktop binaries including all additional libraries from Qt online installer.

      Configure example grpc/clientguide

      /Users/qt/RTA/Qt_6.8.3/6.8.3/macos/bin/qt-cmake -S /Users/qt/RTA/Qt_6.8.3/Examples/Qt-6.8.3/grpc/chat -B /Users/qt/RTA/Qt_6.8.3/Examples/Qt-6.8.3/grpc/chat/bld_macos -GNinja 

      -> fails:

      Configure output:
      -- The CXX compiler identification is AppleClang 14.0.0.14000029
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode14.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found ZLIB: /Applications/Xcode14.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
      -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE
      -- Configuring done (7.7s)
      CMake Error at /Users/qt/install-grpc-1.50.1/lib/cmake/grpc/gRPCTargets.cmake:93 (set_target_properties):
        The link interface of target "gRPC::grpc" contains:    OpenSSL::SSL  but the target was not found.  Possible reasons include:
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.Call Stack (most recent call first):
        /Users/qt/install-grpc-1.50.1/lib/cmake/grpc/gRPCConfig.cmake:21 (include)
        server/CMakeLists.txt:10 (find_package)
      -- Generating done (0.3s)
      CMake Generate step failed.  Build files cannot be regenerated correctly. 

      Same with grpc/vehicle and grpc/chat. Works on linux and Windows.

      All examples were working with 6.8.2 and 6.8.3 snapshot.

      Attachments

        Issue Links

          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:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes