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
-
For Gerrit Dashboard: QTBUG-73669 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
266805,4 | Yield error if qtquickcompiler is used in non-QML projects | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
271898,3 | Fix *.js files disappearing from RESOURCES when not using QtQml | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
271899,2 | Update the Qt Quick Compiler docs with regards to resource handling | 5.15 | qt/qtdoc | Status: MERGED | +2 | 0 |
274319,4 | Fix link errors when enabling CONFIG+=qtquickcompiler on non-QML projects | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |