Sunday, July 6th 2008, 6:56pm UTC+1

You are not logged in.

  • Login
  • Register

1

Friday, March 7th 2008, 12:36am

Compile error - Qwt and Qt Designer

I have a problem building a program that uses Qwt and Qt designer.
I've posted a stripped-down version here.
http://www.qtcentre.org/forum/f-qt-desig…gner-12284.html

Your help is greatly appreciated!
  • Go to the top of the page

2

Friday, March 7th 2008, 4:01am

RE: Compile error - Qwt and Qt Designer

I think your .pro file lacks informations about linking with qwt library, try add:
LIBS+=-lqwt5
  • Go to the top of the page

3

Friday, March 7th 2008, 4:12pm

RE: Compile error - Qwt and Qt Designer

Thank you for the reply.
I still get the same error message...
  • Go to the top of the page

4

Sunday, March 23rd 2008, 5:27pm

RE: Compile error - Qwt and Qt Designer

Please provide some more informations about that errors. Maybe there are some warnings before? It's better to paste the whole make output.
  • Go to the top of the page

5

Wednesday, April 2nd 2008, 1:58am

Thank you for the suggestion.
qmake & make from the Qt 4.3.3 Command prompt showed the following:

Source code

1
2
3
obj/moc_qwt_designer.o(.text+0xb5):moc_qwt_designer.cpp: undefined reference to`qwt_designer::on_myButton_pressed()'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [releaseqwt_designer.exe] Error 1


Adding the following to qwt_desginer.cpp has fixed the problem.

Source code

1
2
3
void qwt_designer::on_myButton_pressed(){
;
}

It's interesting that the combination of "slots in the header file" and "the Qwt plot object in the .ui file" forced the implementation of the function on_myButton_pressed().
  • Go to the top of the page

Rate this thread