Qmetatype::registertype:binary compatibility break-size mismatch for type ' qpaintbuffercacheentry ' [1024]. Previously registered size 0, now Regist
It is found that this problem is related to the dependency of OpenCV, and the problem mainly arises in the version of the relationship between the installed OpenCV and Qt4, Qt5. It should be OpenCV Lib compile-time dependent on QT4. And my project needs to rely on QT5.
such as: my problem is solved. This is happened because I used OpenCV libs in my project and compiled it with QT4. I rebuild OpenCV with QT5 and now everything are OK.
Solve:
1. Set QT5 as the default library: reference: http://blog.csdn.net/zyh821351004/article/details/43273763
sudo apt-get install qt5-default
2. Recompile OpenCV: (Want to quickly, remember to turn example off)
Reference sh file: http://blog.csdn.net/zyh821351004/article/details/43488945
CD opencv-2.4.9 mkdir build CD build #注: CMake compiled on and off. The first one is used in Pcduino. The second one can be installed on the PC. There is a problem with compiling the Python section on Pcduino. cmake-d cmake_build_type=release-d cmake_install_prefix=/usr/local-d with_tbb=on-d BUILD_NEW_PYTHON_SUPPORT= off-d with_v4l=on-d install_c_examples=on-d install_python_examples=off-d build_examples=off-d with_qt=off-d WITH_OP Engl=off. #cmake-D cmake_build_type=release-d cmake_install_prefix=/usr/local-d with_tbb=on-d build_new_python_support=on-d with_v4l=on-d install_c_examples=on-d install_python_examples=on-d build_examples=on-d with_qt=on-d WITH_OPENGL=ON. . Make-j4 sudo make install sudo sh-c ' echo '/usr/local/lib ' >/etc/ld.so.conf.d/opencv.conf ' sudo Ldconfig echo "OpenCV 2.4.9 ready to be used"
3. Recompile the original project. Ok.
Qterro:size mismatch for type ' qpaintbuffercacheentry ' [1024]. Previously registered size 0