Discussion:
[Qt-creator] Linking error when building 4.7.2
Davide Coppola
2018-10-25 08:33:54 UTC
Permalink
Hi,

I can't manage to build 4.7.2 (after checking out the git tag) because of
the following linking error:

lib/qtcreator/libqbsqtprofilesetup.so: undefined reference to
`QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)'

I have Qt 5.11.2 installed on my system and everything is fine when I build
master.

Any suggestions?
--
*Davide Coppola*

*website:* http://www.davidecoppola.com
*blog:* http://blog.davidecoppola.com

<http://plus.google.com/+DavideCoppola>
<http://www.linkedin.com/in/davidecoppola>
<http://www.twitter.com/vivaladav>
Eike Ziller
2018-10-25 09:01:51 UTC
Permalink
Hi,
lib/qtcreator/libqbsqtprofilesetup.so: undefined reference to `QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)’
Did you do a clean build?
Since that symbol is a private Qt symbol, it looks like you possibly changed the Qt build after your last Qt Creator build, and since libqbsqtprofilesetup did not change between 4.7.1 and 4.7.2 it was not rebuilt against the new Qt version.

Br, Eike
I have Qt 5.11.2 installed on my system and everything is fine when I build master.
Any suggestions?
--
Davide Coppola
website: http://www.davidecoppola.com
blog: http://blog.davidecoppola.com
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
Christian Kandeler
2018-10-25 09:02:40 UTC
Permalink
On Thu, 25 Oct 2018 10:33:54 +0200
Post by Davide Coppola
I can't manage to build 4.7.2 (after checking out the git tag) because of
lib/qtcreator/libqbsqtprofilesetup.so: undefined reference to
`QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)'
I have Qt 5.11.2 installed on my system and everything is fine when I build
master.
That's https://bugreports.qt.io/browse/QTCREATORBUG-21340. If you are using Qt Creator to build, you need to
uncheck "Enable Qt Quick Compiler" in the qmake build step.


Christian
Davide Coppola
2018-10-25 09:53:58 UTC
Permalink
Unchecking "Enable Qt Quick Compiler" did the trick, thanks a lot.

Just out of curiosity, is this going to skip the build of some components
of Qt Creator?

Thanks
Post by Christian Kandeler
On Thu, 25 Oct 2018 10:33:54 +0200
Post by Davide Coppola
I can't manage to build 4.7.2 (after checking out the git tag) because of
lib/qtcreator/libqbsqtprofilesetup.so: undefined reference to
`QQmlPrivate::qmlregister(QQmlPrivate::RegistrationType, void*)'
I have Qt 5.11.2 installed on my system and everything is fine when I
build
Post by Davide Coppola
master.
That's https://bugreports.qt.io/browse/QTCREATORBUG-21340. If you are
using Qt Creator to build, you need to
uncheck "Enable Qt Quick Compiler" in the qmake build step.
Christian
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
*Davide Coppola*

*website:* http://www.davidecoppola.com
*blog:* http://blog.davidecoppola.com

<http://plus.google.com/+DavideCoppola>
<http://www.linkedin.com/in/davidecoppola>
<http://www.twitter.com/vivaladav>
Christian Kandeler
2018-10-25 10:13:31 UTC
Permalink
On Thu, 25 Oct 2018 11:53:58 +0200
Post by Davide Coppola
Unchecking "Enable Qt Quick Compiler" did the trick, thanks a lot.
Just out of curiosity, is this going to skip the build of some components
of Qt Creator?
No. The Qt Quick compiler is just an optimization method for QML code that Qt Creator presumably (I have not looked at the code) switches on if any QML files are present in the project.


Christian

Loading...