Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt/6.5.2: Cannot Build Qt with QtMultimedia Plugin on macOS #19146

Closed
tornupnegatives opened this issue Aug 11, 2023 · 0 comments · Fixed by #19365
Closed

qt/6.5.2: Cannot Build Qt with QtMultimedia Plugin on macOS #19146

tornupnegatives opened this issue Aug 11, 2023 · 0 comments · Fixed by #19365
Labels
bug Something isn't working

Comments

@tornupnegatives
Copy link

Description

I am attempting to build a Qt application which takes advantage of QtMultimedia, on macOS. I have the following conanfile.txt:

[requires]
libsndfile/1.2.0
libsamplerate/0.2.2
qt/6.5.0

[generators]
CMakeDeps
CMakeToolchain

[options]
qt/*:qtshadertools=True
qt/*:qtmultimedia=True

Conan installs everything just fine, and generates some build artifacts for me, but when I try to create a CMake project, it complains:

$ cmake -B build -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release

CMake Error at build/cmakedeps_macros.cmake:67 (message):
  Library 'qtaudio_coreaudio' not found in package.  If 'qtaudio_coreaudio'
  is a system library, declare it with 'cpp_info.system_libs' property
Call Stack (most recent call first):
  build/Qt6-Target-release.cmake:24 (conan_package_library_targets)
  build/Qt6Targets.cmake:26 (include)
  build/Qt6Config.cmake:16 (include)
  CMakeLists.txt:95 (find_package)

I am not entirely sure how to configure Conan to find the "qtaudio_coreaudio" plugin...

Package and Environment Details

  • Package Name/Version: qt/6.5.2
  • Operating System+version: macOS 13.4.1
  • Compiler+version: Apple clang version 14.0.3
  • Conan version: conan 2.0.90
  • Python version: Python 3.9.6

Conan profile

Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=14
os=Macos

Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=14
os=Macos

Steps to reproduce

$ conan install . --output-folder=build --build=missing

$ cmake -B build -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release

Logs

Click to expand log
-- Using Conan toolchain: /Users/joe/Documents/Code/TMS-Express/build/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions ON
-- Conan: Component target declared 'Qt6::Core'
-- Conan: Component target declared 'Qt6::Platform'
-- Conan: Component target declared 'Qt6::Gui'
-- Conan: Component target declared 'Qt6::QCocoaIntegrationPlugin'
-- Conan: Component target declared 'qt::QCocoaIntegrationPlugin'
-- Conan: Component target declared 'Qt6::QGifPlugin'
-- Conan: Component target declared 'Qt6::QIcoPlugin'
-- Conan: Component target declared 'Qt6::QSQLiteDriverPlugin'
-- Conan: Component target declared 'Qt6::QPSQLDriverPlugin'
-- Conan: Component target declared 'Qt6::QODBCDriverPlugin'
-- Conan: Component target declared 'Qt6::Network'
-- Conan: Component target declared 'Qt6::Sql'
-- Conan: Component target declared 'Qt6::Test'
-- Conan: Component target declared 'Qt6::Widgets'
-- Conan: Component target declared 'Qt6::PrintSupport'
-- Conan: Component target declared 'Qt6::OpenGL'
-- Conan: Component target declared 'Qt6::OpenGLWidgets'
-- Conan: Component target declared 'Qt6::Concurrent'
-- Conan: Component target declared 'Qt6::Xml'
-- Conan: Component target declared 'Qt6::ShaderTools'
-- Conan: Component target declared 'Qt6::Multimedia'
-- Conan: Component target declared 'Qt6::MultimediaWidgets'
-- Conan: Component target declared 'Qt6::QM3uPlaylistPlugin'
-- Conan: Component target declared 'Qt6::AudioCaptureServicePlugin'
-- Conan: Component target declared 'Qt6::AVFMediaPlayerServicePlugin'
-- Conan: Component target declared 'Qt6::AVFServicePlugin'
-- Conan: Component target declared 'Qt6::CoreAudioPlugin'
-- Conan: Target declared 'qt::qt'
CMake Error at build/cmakedeps_macros.cmake:67 (message):
  Library 'qtaudio_coreaudio' not found in package.  If 'qtaudio_coreaudio'
  is a system library, declare it with 'cpp_info.system_libs' property
Call Stack (most recent call first):
  build/Qt6-Target-release.cmake:24 (conan_package_library_targets)
  build/Qt6Targets.cmake:26 (include)
  build/Qt6Config.cmake:16 (include)
  CMakeLists.txt:95 (find_package)
@tornupnegatives tornupnegatives added the bug Something isn't working label Aug 11, 2023
ericLemanissier added a commit to ericLemanissier/conan-center-index that referenced this issue Aug 23, 2023
ericLemanissier added a commit to ericLemanissier/conan-center-index that referenced this issue Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant