jiapei100
21st February 2013, 13:48
Hi, all:
I'm testing Qt5 . I have Qt5 installed at /opt/Qt5.0.1 (still with some Qt4 libraries installed at /usr/lib/i386-linux-gnu/ ) .
However, whenever I tried to run my program, I got the following error message:
QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now registering size 12.
Aborted (core dumped)
People gave out several solutions, including:
1) make distclean ( refer to https://groups.google.com/forum/?fromgroups=#!topic/sdr-widget/HTVYpo05-vw )
2) I can't see a solution but the topic has already been closed here
( https://bugreports.qt-project.org/browse/QTBUG-27104?page=com.atlassian.jira.plugin.system.issuet abpanels:all-tabpanel )
In addition,
$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/Qt5.0.1/5.0.1/gcc/bin
In my project .pro,
LIBS += -L/usr/lib \
# -L/usr/lib/i386-linux-gnu \
-L/opt/Qt5.0.1/5.0.1/gcc/lib \
clearly, I don't have Qt4 libraries linked, but only Qt5 library path included.
So, how to solve this problem? Thanks.
Pei
Added after 25 minutes:
It seems my problem comes from the newly installed Qt, due to the reason that I have Qt5 installed under /opt/Qt5 .
However, in my .pro file,
CONFIG += qt warn_on debug staticlib
How can I make sure this project is able to find my manually installed Qt5 ?
For now, the error
fatal error: QGraphicsView: No such file or directory
is telling I'm not able to find Qt5 ...
cheers
Pei
I'm testing Qt5 . I have Qt5 installed at /opt/Qt5.0.1 (still with some Qt4 libraries installed at /usr/lib/i386-linux-gnu/ ) .
However, whenever I tried to run my program, I got the following error message:
QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now registering size 12.
Aborted (core dumped)
People gave out several solutions, including:
1) make distclean ( refer to https://groups.google.com/forum/?fromgroups=#!topic/sdr-widget/HTVYpo05-vw )
2) I can't see a solution but the topic has already been closed here
( https://bugreports.qt-project.org/browse/QTBUG-27104?page=com.atlassian.jira.plugin.system.issuet abpanels:all-tabpanel )
In addition,
$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/Qt5.0.1/5.0.1/gcc/bin
In my project .pro,
LIBS += -L/usr/lib \
# -L/usr/lib/i386-linux-gnu \
-L/opt/Qt5.0.1/5.0.1/gcc/lib \
clearly, I don't have Qt4 libraries linked, but only Qt5 library path included.
So, how to solve this problem? Thanks.
Pei
Added after 25 minutes:
It seems my problem comes from the newly installed Qt, due to the reason that I have Qt5 installed under /opt/Qt5 .
However, in my .pro file,
CONFIG += qt warn_on debug staticlib
How can I make sure this project is able to find my manually installed Qt5 ?
For now, the error
fatal error: QGraphicsView: No such file or directory
is telling I'm not able to find Qt5 ...
cheers
Pei