Image 01
profile-image

imato

p zhang
AnalogWidgets

Qt Widgets 29 comments

Score 73.1%
Feb 07 2014
Hi 3E,

I try to use your manometer on my Qt4.7.1 (ubuntu 10.4). I downloaded your AnalogWidgets_234.zip. then did:

$ cd /home/czhang/Downloads/AnalogWidgets
$ qmake AnalogWidgets.pro
$ make
$ sudo make install
$ cp /home/czhang/Downloads/AnalogWidgets/analogwidgets/libanalogwidgets_plugin.so /home/czhang/QtSDK/QtCreator/lib/qtcreator/plugins/designer/libanalogwidgets_plugin.so

I got error message when i compile my program:

Running build steps for project m4...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/czhang/m4works'
/home/czhang/QtSDK/Desktop/Qt/473/gcc/bin/qmake -spec ../QtSDK/Desktop/Qt/473/gcc/mkspecs/linux-g++-64 CONFIG+=debug QMLJSDEBUGGER_PATH=/home/czhang/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger -o Makefile m4.pro
make: Leaving directory `/home/czhang/m4works'
make: Entering directory `/home/czhang/m4works'
g++ -m64 -Wl,-rpath,/home/czhang/QtSDK/Desktop/Qt/473/gcc/lib -o m4 mainscr.o main.o cyclescrdialog.o engscrdialog.o manopdialog.o globleVar.o pwdialog.o stages.o historicdialog.o cycleparmsdialog.o maintendialog.o errorcodedialog.o consetupdialog.o filemanagedialog.o moc_mainscr.o moc_cyclescrdialog.o moc_engscrdialog.o moc_manopdialog.o moc_pwdialog.o moc_historicdialog.o moc_cycleparmsdialog.o moc_maintendialog.o moc_errorcodedialog.o moc_consetupdialog.o moc_filemanagedialog.o -L/home/czhang/QtSDK/Desktop/Qt/473/gcc/lib -lqextserialport -L/usr/local/qwt-5.2.1/lib -lqwt -L/usr/local/lib -lQtSvg -lquazip -lQtSql -lQtGui -lQtCore -lpthread
mainscr.o: In function `MainScr::timer1000Event()':
/home/czhang/m4works/mainscr.cpp:140: undefined reference to `AbstractMeter::setValue(double)'
mainscr.o: In function `AbstractMeter::setNominal(double)':
make: Leaving directory `/home/czhang/m4works'
/usr/include/analogwidgets/abstractmeter.h:60: undefined reference to `WidgetWithBackground::updateWithBackground()'
mainscr.o: In function `AbstractMeter::setCritical(double)':
/usr/include/analogwidgets/abstractmeter.h:62: undefined reference to `WidgetWithBackground::updateWithBackground()'
mainscr.o: In function `AbstractMeter::setValueFont(QFont)':
/usr/include/analogwidgets/abstractmeter.h:65: undefined reference to `WidgetWithBackground::updateWithBackground()'
mainscr.o: In function `AbstractMeter::setValueOffset(double)':
/usr/include/analogwidgets/abstractmeter.h:68: undefined reference to `WidgetWithBackground::updateWithBackground()'
mainscr.o: In function `AbstractMeter::setDigitOffset(double)':
/usr/include/analogwidgets/abstractmeter.h:71: undefined reference to `WidgetWithBackground::updateWithBackground()'
mainscr.o:/usr/include/analogwidgets/abstractmeter.h:74: more undefined references to `WidgetWithBackground::updateWithBackground()' follow
mainscr.o: In function `Ui_MainScr::setupUi(QMainWindow*)':
/home/czhang/m4works/ui_mainscr.h:324: undefined reference to `ManoMeter::ManoMeter(QWidget*)'
/home/czhang/m4works/ui_mainscr.h:328: undefined reference to `AbstractMeter::setMaximum(double)'
/home/czhang/m4works/ui_mainscr.h:329: undefined reference to `AbstractMeter::setValue(int)'
collect2: ld returned 1 exit status
make: *** [m4] Error 1
The process "/usr/bin/make" exited with code 2.
Error while building project m4 (target: Desktop)
When executing build step 'Make'

can you tell me where i did wrong please?
Thanks - Aug 08 2011