Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.12.0
-
-
c5578b16d6454e708c8ce12661a85d41eeaaa758 (qt/qtdeclarative/5.12) 227be82e4cf4b0fc58d4d50154cee7c45eb03777 (qt/qtdeclarative/wip/cmake)
Description
MSVC 2017
qmlcache_loader.obj:-1: error: LNK2019: unresolved external symbol "_declspec(dllimport) int __cdecl QQmlPrivate::qmlregister(enum QQmlPrivate::RegistrationType,void *)" (imp?qmlregister@QQmlPrivate@@YAHW4RegistrationType@1@PAX@Z) in a function "public: __thiscall `anonymous namespace'::Registry::Registry(void)" (??0Registry@?A0x7ba8ed9e@@QAE@XZ)
MinGW
qmlcache_loader.cpp:-1: error: undefined reference to `_imp_ZN11QQmlPrivate11qmlregisterENS_16RegistrationTypeEPv'
The problem can be bypassed by changing resolution of original file type (".js" -> ".jss") and adding alias name to it. Yet this is lame.
ALSO: QTBUG-73670
Attachments
Issue Links
- is duplicated by
-
QTBUG-80145 QmlCache generated although project doesn't use Qml (but has .js files in resources)
- Closed
- resulted in
-
QTBUG-77277 Cannot enable qtquickcompiler to Qt module
- Closed
-
QTBUG-103481 qmlcachegen does not remove .qml and .js from resources
- Closed