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

[package] qt/5.15.11: missing plugin #20816

Closed
fnadeau opened this issue Oct 29, 2023 · 0 comments · Fixed by #20817
Closed

[package] qt/5.15.11: missing plugin #20816

fnadeau opened this issue Oct 29, 2023 · 0 comments · Fixed by #20817
Labels
bug Something isn't working

Comments

@fnadeau
Copy link
Contributor

fnadeau commented Oct 29, 2023

Description

QSvgPlugin and QSvgIconPlugin are not exposed.

Package and Environment Details

  • Package Name/Version: qt/5.15.11
  • Operating System+version: Windows 10
  • Compiler+version: MSVC 193
  • Conan version: conan 2.0.13
  • Python version: Python 3.11.4

Conan profile

Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Steps to reproduce

Add this to CMakeLists.txt, configure will fail

target_link_libraries(${PROJECT_NAME} Qt5::QSvgIconPlugin Qt5::QSvgPlugin)

Add this to code, build will fail (given that above line is not in CMakeLists.txt)

Q_IMPORT_PLUGIN (QSvgPlugin);
Q_IMPORT_PLUGIN (QSvgIconPlugin);

Logs

If import plugin is used

[build] main.obj : error LNK2019: symbole externe non résolu "struct QStaticPlugin const __cdecl qt_static_plugin_QSvgPlugin(void)" (?qt_static_plugin_QSvgPlugin@@YA?BUQStaticPlugin@@XZ) référencé dans la fonction "void __cdecl `dynamic initializer for 'staticQSvgPluginInstance''(void)" (??__EstaticQSvgPluginInstance@@YAXXZ) [C:\Users\fnadeau\git-github\qt-demo\build\main.vcxproj]
[build] main.obj : error LNK2019: symbole externe non résolu "struct QStaticPlugin const __cdecl qt_static_plugin_QSvgIconPlugin(void)" (?qt_static_plugin_QSvgIconPlugin@@YA?BUQStaticPlugin@@XZ) référencé dans la fonction "void __cdecl `dynamic initializer for 'staticQSvgIconPluginInstance''(void)" (??__EstaticQSvgIconPluginInstance@@YAXXZ) [C:\Users\fnadeau\git-github\qt-demo\build\main.vcxproj]
[build] C:\Users\fnadeau\git-github\qt-demo\build\Release\main.exe : fatal error LNK1120: 2 externes non résolus [C:\Users\fnadeau\git-github\qt-demo\build\main.vcxproj]

if target link is used

[cmake] CMake Error at CMakeLists.txt:24 (target_link_libraries):
[cmake]   Target "main" links to:
[cmake] 
[cmake]     Qt5::QSvgIconPlugin
[cmake] 
[cmake]   but the target was not found.  Possible reasons include:
[cmake] 
[cmake]     * There is a typo in the target name.
[cmake]     * A find_package call is missing for an IMPORTED target.
[cmake]     * An ALIAS target is missing.
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