Qterro:size mismatch for type ' qpaintbuffercacheentry ' [1024]. Previously registered size 0

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.