This is a common problem with building Qt applications, when the makefile is not aware of running moc for a file.
Uwe
This is a common problem with building Qt applications, when the makefile is not aware of running moc for a file.
Uwe
Thank you for answering, but this idea had most of my colleagues already. As I tried to explain: moc compiler ran, the moc-object was created, the library was created without any error and (for the DLL with depends.exe, for the libs with an editor) I can see, that quite that export is contained, that the linker is missing (please see my first post).
A colleague of mine also tried the same with Qt 4.7.3, Qwt6 and the QwtPolar trunk and stuck at the same problem. Can there be anything wrong with the configuration files? The only thing I changed was introducing the path to my installation directory. And I copied the feature files to the Qt mkspec/features directory.
Did you set QWT_POLAR_DLL, when compiling your code ?
Uwe
BestBeforeNow (22nd July 2011), Temo (15th May 2013)
Hi,
I'm a absolute beginner.
As per instruction, I have installed Qt 4.7.1, Qwt 6.0.1 and QwtPolar 1.0.0
I got the same error as mentioned in the first thread while building the Qwt Polar examples.
I'm using QT-creator. I copied all header and source files of qwtpolar-1.0.0\examples\polardemo to a new project. I have following contents in project file:
I was not able to correctly figure out the solution for error by going through the discussion. I understand that setting QWT_POLAR_DLL while compiling the code should solve the probblem.QT += core
QT += gui
TARGET = PolarExample
CONFIG += console
CONFIG -= app_bundle
CONFIG += release
CONFIG += qwt
CONFIG += qwtpolar
TEMPLATE = app
INCLUDEPATH += C:\QwtPolar-1.0.0\include \
C:\Qwt-6.0.1\include
LIBS += C:\QwtPolar-1.0.0\lib\qwtpolar.lib \
C:\Qwt-6.0.1\lib\qwt.lib
SOURCES += main.cpp \
mainwindow.cpp \
plot.cpp \
settingseditor.cpp
HEADERS += mainwindow.h \
pixmaps.h \
plot.h \
settingseditor.h
As I'm a complete beginner, please guide how or where to set QWT_POLAR_DLL ??
Thank you.
Add
to your .pro file.Qt Code:
win32: DEFINES += QWT_POLAR_DLLTo copy to clipboard, switch view to plain text mode
Better do a clean installation of Qwt and QwtPolar using "make install". Then configure your qmake environment like documented in the INSTALL files and add
to your pro file.Qt Code:
CONFIG += qwt CONFIG += qwtpolarTo copy to clipboard, switch view to plain text mode
Uwe
Bookmarks