【发布时间】:2012-03-25 10:02:29
【问题描述】:
我在使用 createOpenGLCallback 时遇到了编译问题。我收到以下错误消息:
undefined reference to `cv::createOpenGLCallback(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void (*)(void*), void*)'
我不知道为什么其他 opecv 函数可以正常工作。我正在使用 qmake 编译程序。下面是我的配置文件:
QT += core gui \
opengl
TARGET = surf
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
FrameBuffer.cpp \
robustmatcher.cpp
HEADERS += mainwindow.h \
FrameBuffer.h \
imginfo.h \
robustmatcher.h
FORMS += mainwindow.ui
CONFIG += link_pkgconfig
PKGCONFIG += opencv
我可以补充一下,我使用的是 ubuntu 11.10 32 位
有什么想法吗?
【问题讨论】:
标签: c++ qt opengl opencv qmake