Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt from source : Mac OS can't find vulkan
Forum Updated to NodeBB v4.3 + New Features

Building Qt from source : Mac OS can't find vulkan

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
12 Posts 3 Posters 1.1k Views 1 Watching
  • 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
    scott_craig
    wrote on 1 May 2020, 17:01 last edited by
    #1

    I'm building Qt from source for a CI pipeline

    Package Name/Version: qt/5.14.2
    Operating System+version: OSX 10.15
    Compiler+version: Clang 11.0
    Conan version: conan 1.22.2
    Python version: Python 3.7.4
    IDE : CLion 2019.3

    /Users/craigscott/.conan/data/qt/5.14.2/bincrafters/stable/source/qt5/qtbase/configure -top-level -shared -confirm-license -silent -nomake examples -nomake tests -prefix /Users/craigscott/.conan/data/qt/5.14.2/bincrafters/stable/package/5a073314ab6ebc03228759256ae1f2e8e3b64772 -opensource -debug -skip qtsvg -skip qtdeclarative -skip qtactiveqt -skip qtscript -skip qtmultimedia -skip qtxmlpatterns -skip qttranslations -skip qtdoc -skip qtlocation -skip qtsensors -skip qtconnectivity -skip qtwayland -skip qt3d -skip qtimageformats -skip qtgraphicaleffects -skip qtquickcontrols -skip qtserialbus -skip qtserialport -skip qtx11extras -skip qtmacextras -skip qtwinextras -skip qtandroidextras -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquickcontrols2 -skip qtpurchasing -skip qtcharts -skip qtdatavis3d -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtspeech -skip qtnetworkauth -skip qtremoteobjects -skip qtwebglplugin -skip qtlottie -skip qtquicktimeline -skip qtquick3d --zlib=system -no-opengl -no-openssl --glib=no --pcre=qt --fontconfig=no --icu=no --sql-mysql=no --sql-psql=no --sql-odbc=no --zstd=yes -system-doubleconversion -system-freetype -no-harfbuzz -no-libjpeg -no-libpng -no-sqlite ZLIB_LIBS=-lz DOUBLECONVERSION_LIBS=-ldouble-conversion FREETYPE_INCDIR=/Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/include/freetype2 FREETYPE_LIBS=-lfreetyped -lpng16d -lz -lbz2 LIBPNG_LIBS=-lpng16d -lz ZSTD_LIBS=-lzstd -I /Users/craigscott/.conan/data/double-conversion/3.1.5/_/_/package/5fed66895e5b85fca4af6ac05bb157e1ffecb806/include -L /Users/craigscott/.conan/data/double-conversion/3.1.5/_/_/package/5fed66895e5b85fca4af6ac05bb157e1ffecb806/lib -I /Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/include -I /Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/include/freetype2 -L /Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/lib -I /Users/craigscott/.conan/data/zstd/1.4.4/_/_/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/include -L /Users/craigscott/.conan/data/zstd/1.4.4/_/_/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/lib -I /Users/craigscott/.conan/data/libpng/1.6.37/_/_/package/a468ffad8adea3fcab8dd371aecce5321635f9fc/include -L /Users/craigscott/.conan/data/libpng/1.6.37/_/_/package/a468ffad8adea3fcab8dd371aecce5321635f9fc/lib -I /Users/craigscott/.conan/data/bzip2/1.0.8/_/_/package/e26f883c3e136952d830bcdc838898582f2a8d80/include -L /Users/craigscott/.conan/data/bzip2/1.0.8/_/_/package/e26f883c3e136952d830bcdc838898582f2a8d80/lib -I /Users/craigscott/.conan/data/zlib/1.2.11/conan/stable/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/include -L /Users/craigscott/.conan/data/zlib/1.2.11/conan/stable/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/lib -no-framework -platform macx-clang
    
    looking for library vulkan
    Trying source 0 (type pkgConfig) of library vulkan ...
    pkg-config use disabled globally.
      => source produced no result.
    Trying source 1 (type makeSpec) of library vulkan ...
    vulkan/vulkan.h not found in [] and global paths.
      => source produced no result.
    test config.qtbase_gui.libraries.vulkan FAILED
    
    VK_ICD_FILENAMES=/Users/craigscott/Downloads/vulkansdk-macos-1.2.135.0/macOS/etc/vulkan/icd.d/MoltenVK_icd.json
    VULKAN_SDK=/Users/craigscott/Downloads/vulkansdk-macos-1.2.135.0/macOS
    VK_LAYER_PATH=/Users/craigscott/Downloads/vulkansdk-macos-1.2.135.0/macOS/etc/vulkan/explicit_layer.d
    PATH=/Users/craigscott/Downloads/vulkansdk-macos-1.2.135.0/macOS/bin
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 May 2020, 19:33 last edited by
      #2

      Hi,

      Did you try adding a -I and -L pointing to your vulkan dependencies ?

      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
        scott_craig
        wrote on 1 May 2020, 20:45 last edited by
        #3
        + /Users/craigscott/.conan/data/qt/5.14.2/bincrafters/stable/source/qt5/qtbase/configure -top-level -shared -confirm-license -silent -nomake examples -nomake tests -prefix /Users/craigscott/.conan/data/qt/5.14.2/bincrafters/stable/package/70208ca969fe2074e043d206ec9a93fe3bbb254d -opensource -debug -skip qtsvg -skip qtdeclarative -skip qtactiveqt -skip qtscript -skip qtmultimedia -skip qtxmlpatterns -skip qttranslations -skip qtdoc -skip qtlocation -skip qtsensors -skip qtconnectivity -skip qtwayland -skip qt3d -skip qtimageformats -skip qtgraphicaleffects -skip qtquickcontrols -skip qtserialbus -skip qtserialport -skip qtx11extras -skip qtmacextras -skip qtwinextras -skip qtandroidextras -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquickcontrols2 -skip qtpurchasing -skip qtcharts -skip qtdatavis3d -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtspeech -skip qtnetworkauth -skip qtremoteobjects -skip qtwebglplugin -skip qtlottie -skip qtquicktimeline -skip qtquick3d --zlib=system -no-opengl -no-openssl --glib=no --pcre=qt --fontconfig=no --icu=no --sql-mysql=no --sql-psql=no --sql-odbc=no --zstd=yes -system-doubleconversion -system-freetype -no-harfbuzz -no-libjpeg -no-libpng -no-sqlite ZLIB_LIBS=-lz DOUBLECONVERSION_LIBS=-ldouble-conversion FREETYPE_INCDIR=/Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/include/freetype2 FREETYPE_LIBS=-lfreetyped -lpng16d -lz -lbz2 LIBPNG_LIBS=-lpng16d -lz ZSTD_LIBS=-lzstd -I /Users/craigscott/.conan/data/double-conversion/3.1.5/_/_/package/5fed66895e5b85fca4af6ac05bb157e1ffecb806/include -L /Users/craigscott/.conan/data/double-conversion/3.1.5/_/_/package/5fed66895e5b85fca4af6ac05bb157e1ffecb806/lib -I /Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/include -I /Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/include/freetype2 -L /Users/craigscott/.conan/data/freetype/2.10.1/_/_/package/ea086d65ab89aa1cac270b520ea07c3277cad44b/lib -I /Users/craigscott/.conan/data/zstd/1.4.4/_/_/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/include -L /Users/craigscott/.conan/data/zstd/1.4.4/_/_/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/lib -I /Users/craigscott/.conan/data/libpng/1.6.37/_/_/package/a468ffad8adea3fcab8dd371aecce5321635f9fc/include -L /Users/craigscott/.conan/data/libpng/1.6.37/_/_/package/a468ffad8adea3fcab8dd371aecce5321635f9fc/lib -I /Users/craigscott/.conan/data/bzip2/1.0.8/_/_/package/e26f883c3e136952d830bcdc838898582f2a8d80/include -L /Users/craigscott/.conan/data/bzip2/1.0.8/_/_/package/e26f883c3e136952d830bcdc838898582f2a8d80/lib -I /Users/craigscott/.conan/data/zlib/1.2.11/conan/stable/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/include -L /Users/craigscott/.conan/data/zlib/1.2.11/conan/stable/package/0aa7be2d0914b6f3128105e305c90b9cb0cae86d/lib -no-framework -platform macx-clang -L /Users/craigscott/Downloads/vulkansdk-macos-1.2.135.0/macOS/lib -I /Users/craigscott/Downloads/vulkansdk-macos-1.2.135.0/macOS/include
        

        I added last two args, but still was not able to find vulkan

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 1 May 2020, 21:04 last edited by
          #4

          Did you do that from a clean state ?

          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
            scott_craig
            wrote on 1 May 2020, 21:43 last edited by
            #5

            I removed qt source folders and retried

            1 Reply Last reply
            0
            • S Offline
              S Offline
              scott_craig
              wrote on 1 May 2020, 22:02 last edited by
              #6

              @scott_craig said in Building Qt from source : Mac OS can't find vulkan:

              Trying source 1 (type makeSpec) of library vulkan ...
              vulkan/vulkan.h not found in [] and global paths.

              Trying source 1 (type makeSpec) of library vulkan ...
              vulkan/vulkan.h not found in [] and global paths.

              If i can figure out where this is looking, that will help, I'm not sure where it originates from

              1 Reply Last reply
              0
              • S Offline
                S Offline
                scott_craig
                wrote on 2 May 2020, 16:43 last edited by
                #7

                What is the file that calls

                vulkan/vulkan.h not found in [] and global paths

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 3 May 2020, 19:58 last edited by
                  #8

                  The test definitions can be found here.

                  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
                    scott_craig
                    wrote on 4 May 2020, 13:35 last edited by
                    #9

                    Thanks. I'm guessing by global paths it means $PATH? So it's search $PATH for vulkan/vulkan.h?

                    J 1 Reply Last reply 4 May 2020, 13:38
                    0
                    • S scott_craig
                      4 May 2020, 13:35

                      Thanks. I'm guessing by global paths it means $PATH? So it's search $PATH for vulkan/vulkan.h?

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 4 May 2020, 13:38 last edited by
                      #10

                      @scott_craig said in Building Qt from source : Mac OS can't find vulkan:

                      $PATH

                      This is not used for header files. "global paths" probably means default directories to search for include files (like /usr/include).

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      S 1 Reply Last reply 4 May 2020, 15:27
                      0
                      • J jsulm
                        4 May 2020, 13:38

                        @scott_craig said in Building Qt from source : Mac OS can't find vulkan:

                        $PATH

                        This is not used for header files. "global paths" probably means default directories to search for include files (like /usr/include).

                        S Offline
                        S Offline
                        scott_craig
                        wrote on 4 May 2020, 15:27 last edited by
                        #11

                        @jsulm Is there certainty on this? So where does Qt expect vulkan files to be on MacOS? On linux and windows it seems to search the environment variables just fine.

                        J 1 Reply Last reply 5 May 2020, 05:39
                        0
                        • S scott_craig
                          4 May 2020, 15:27

                          @jsulm Is there certainty on this? So where does Qt expect vulkan files to be on MacOS? On linux and windows it seems to search the environment variables just fine.

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 5 May 2020, 05:39 last edited by
                          #12

                          @scott_craig said in Building Qt from source : Mac OS can't find vulkan:

                          where does Qt expect vulkan files to be on MacOS

                          either in system wide include directories (like /usr/include) or in directories you specify using "-I PATH_TO_HEADER_FILES"

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0

                          1/12

                          1 May 2020, 17:01

                          • Login

                          • Login or register to search.
                          1 out of 12
                          • First post
                            1/12
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved