Skip to content

QT5.14.1 Windows Compile Error #6

@duerrpADA

Description

@duerrpADA

Tried to compile with Visual Studio 2017 and QT 5.14.1 but got the following Errors:

Error	C2248	'QObjectUserData::QObjectUserData': cannot access private member declared in class 'QObjectUserData'	qtcore	c:\devtools\lqtqt5.14.1\build\qtcore_src\qtcore_meta_qobjectuserdata.cpp	7	
Error	C3861	'qmlRegisterBaseTypes': identifier not found	qtqml	c:\devtools\lqtqt5.14.1\build\qtqml_src\qtqml_globals.cpp	3333	
Error	C3861	'qmlRegisterBaseTypes': identifier not found	qtwebchannel	c:\devtools\lqtqt5.14.1\build\qtwebchannel_src\qtwebchannel_globals.cpp	3435	
Error	C3861	'qmlRegisterBaseTypes': identifier not found	qtquick	c:\devtools\lqtqt5.14.1\build\qtquick_src\qtquick_globals.cpp	5052	
Error	C3861	'qmlRegisterBaseTypes': identifier not found	qtquickwidgets	c:\devtools\lqtqt5.14.1\build\qtquickwidgets_src\qtquickwidgets_globals.cpp	5769	
Error	C3861	'qmlRegisterBaseTypes': identifier not found	qtwebenginecore	c:\devtools\lqtqt5.14.1\build\qtwebenginecore_src\qtwebenginecore_globals.cpp	500	
Error	C3861	'qmlRegisterBaseTypes': identifier not found	qtwebenginewidgets	c:\devtools\lqtqt5.14.1\build\qtwebenginewidgets_src\qtwebenginewidgets_globals.cpp	4468	

With Visual Studio 2017 and QT 5.13.2 everything compiles successfully.

I found a link which states that 'qmlRegisterBaseTypes' was exported only accidentally and is now removed:
https://code.qt.io/cgit/qt/qtdeclarative.git/tree/dist/changes-5.14.0/?h=v5.14.0

in line 220:

The accidentally exported function qmlRegisterBaseTypes() was removed.

If needed i can supply a complete build-log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions