Code Monkey home page Code Monkey logo

Comments (3)

GengGode avatar GengGode commented on June 10, 2024 1

As long as the BUILD_opencv_world is not checked, it can be successfully built. I don't know if this is intentional or not

from opencv_contrib.

GengGode avatar GengGode commented on June 10, 2024

After manually executing moc on xxx.hpp.

image

Add moc_ xxx.cpp to the project.

image

Can solve the problem of symbol not being found in xxx.obj

image

You can see that the error message from main_call_window.obj has disappeared

输出-生成.txt

But I couldn't find a solution to fix it by setting up relevant code in CMake

from opencv_contrib.

GengGode avatar GengGode commented on June 10, 2024

I found that the reason is that qt needs to be AUTOMOC before target creation, but qt in cvv is only found in cvv's cmakelist. When compiling the opencv_world, the cmakelist in cvv was not run, so there are no qt and moc for the opencv_world.

As a result, I made some modifications in cmakelist in opencv_world, moc the source and header files of cvv in opencv_world(but I don't know why I can't set only the moc part of the file, so it now moc all the source and header files), and after the modifications, I compiled a opencv_world.dll file linked to qt.

After testing, it works very well

fix pr:opencv/opencv#24921

image

from opencv_contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.