I receive below error when I add:
Q_INIT_RESOURCE(pbuffers);
Q_INIT_RESOURCE(pbuffers);
To copy to clipboard, switch view to plain text mode
error: undefined reference to qInitResources_pbuffers()
Image is added to resource.qrc, I read a pre-posted thread about this, but it did not help. here's .pro file:
QT += core gui opengl
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = PixelBuffersExample
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
cube.cpp \
glwidget.cpp
HEADERS += mainwindow.h \
cube.h \
glwidget.h
FORMS += mainwindow.ui
RESOURCES += \
resource.qrc
QT += core gui opengl
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = PixelBuffersExample
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
cube.cpp \
glwidget.cpp
HEADERS += mainwindow.h \
cube.h \
glwidget.h
FORMS += mainwindow.ui
RESOURCES += \
resource.qrc
To copy to clipboard, switch view to plain text mode
anyone faced this before, plz mention how they solved it.
Bookmarks