| Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hi, I started developing my application on qtopia using qt designer. I have little problem while compiling my application.I used signals and slots from qtdesigner and it is giving some problem. I created implementation file and inherited the class creted by QT designer. i created the same slot which is there in the base class as virtual function. Every thing i did fine. but it is not compiling. I am using suse 10.0. as my os. If i won't create implementation file and if compile it is compiling fine. I am attaching my application also for ur refernce. When i did make it is giving following message. ................................................................ -L/home/harsha/qt-2.3.10/lib -lqte .obj/release-shared/ANSiscope.o: In function `PatientInfoFormImpl::PatientInfoFormImpl(QWidget*, char const*, unsigned int)': ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplC1EP7QWidgetPKcj[PatientInfoFormImpl::PatientInfoFormImpl(QWidget*, char const*, unsigned int)]+0x18): undefined reference to `vtable for PatientInfoFormImpl' ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplC1EP7QWidgetPKcj[PatientInfoFormImpl::PatientInfoFormImpl(QWidget*, char const*, unsigned int)]+0x1f): undefined reference to `vtable for PatientInfoFormImpl' .obj/release-shared/ANSiscope.o: In function `PatientInfoFormImpl::~PatientInfoFormImpl()': ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplD1Ev[PatientInfoFormImpl::~PatientInfoFormImpl()]+0x10): undefined reference to `vtable for PatientInfoFormImpl' ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplD1Ev[PatientInfoFormImpl::~PatientInfoFormImpl()]+0x17): undefined reference to `vtable for PatientInfoFormImpl' collect2: ld returned 1 exit status make: *** [CANSiscope] Error 1 In the README file of the attachment i added the steps which i fallowed. I looked in to my code but i couldn't find any problem. Thanks in Advance. Regards, Harsha
Attachment:
Attachment:
CANSiscope.tar.gz
Description: GNU Zip compressed data
Message 2 in thread
Am 16.11.2006 um 10:36 schrieb harshavardhanreddy mandeepala:
> Hi,
> I started developing my application on qtopia using qt designer.
> I have little problem while compiling my application.I used signals
> and slots from qtdesigner and it is giving some problem.
> I created implementation file and inherited the class creted by QT
> designer. i created the same slot which is there in the base class
> as virtual function. Every thing i did fine. but it is not
> compiling. I am using suse 10.0. as my os. If i won't create
> implementation file and if compile it is compiling fine.
> I am attaching my application also for ur refernce.
>
You need to fix your .pro file. Every header file that contains a
Q_OBJECT macros should be listed in HEADERS, generally you should
list all HEADERS to enable dependency tracking.
z.
--
[ signature omitted ]
Message 3 in thread
Hi Holger
Thanks for Ur reply.
I modified my *.pro file as fallows.
/******** pro file **********/
TEMPLATE = app
INCLUDEPATH += .
# Input
INTERFACES += ANSiscope_PatientInfo.ui Main_Processing.ui
SOURCES += ANSiscope.cpp ANSiscope_PatientInfoImpl.cpp
ANSiscope_PatientInfo.cpp Main_Processing.cpp
HEADERS = ANSiscope_PatientInfoImpl.h ANSiscope_PatientInfo.h \
Main_Processing.h
TARGET = CANSiscope
/******************* **************/
Then I run qmake to create make file
It has given following warnings.
WARNING: Found potential symbol conflict of ANSiscope_PatientInfo.cpp
(ANSiscope_PatientInfo.cpp) in SOURCES
WARNING: Found potential symbol conflict of ANSiscope_PatientInfo.h
(ANSiscope_PatientInfo.h) in HEADERS
WARNING: Found potential symbol conflict of Main_Processing.cpp
(Main_Processing.cpp) in SOURCES
WARNING: Found potential symbol conflict of Main_Processing.h
(Main_Processing.h) in HEADERS
Then If i run make
it has given following message.
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::PatientInfoForm(QWidget*, char const*, unsigned int)':
ANSiscope_PatientInfo.cpp:(.text+0x0): multiple definition of
`PatientInfoForm::PatientInfoForm(QWidget*, char const*, unsigned int)'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x0):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::PatientInfoForm(QWidget*, char const*, unsigned int)':
ANSiscope_PatientInfo.cpp:(.text+0x1054): multiple definition of
`PatientInfoForm::PatientInfoForm(QWidget*, char const*, unsigned int)'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x1054):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::~PatientInfoForm()':
ANSiscope_PatientInfo.cpp:(.text+0x20a8): multiple definition of
`PatientInfoForm::~PatientInfoForm()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x20a8):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::~PatientInfoForm()':
ANSiscope_PatientInfo.cpp:(.text+0x20c2): multiple definition of
`PatientInfoForm::~PatientInfoForm()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x20c2):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::~PatientInfoForm()':
ANSiscope_PatientInfo.cpp:(.text+0x20dc): multiple definition of
`PatientInfoForm::~PatientInfoForm()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x20dc):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::NP_PATIENT_ECGOFFLINE_BUTTON_Clicked()':
ANSiscope_PatientInfo.cpp:(.text+0x2104): multiple definition of
`PatientInfoForm::NP_PATIENT_ECGOFFLINE_BUTTON_Clicked()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x2104):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::NP_PATIENT_OK_BUTTON_Clicked()':
ANSiscope_PatientInfo.cpp:(.text+0x2114): multiple definition of
`PatientInfoForm::NP_PATIENT_OK_BUTTON_Clicked()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x2114):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::NP_PATIENT_ONLINE_BUTTON_Clicked()':
ANSiscope_PatientInfo.cpp:(.text+0x2124): multiple definition of
`PatientInfoForm::NP_PATIENT_ONLINE_BUTTON_Clicked()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x2124):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::NP_PATIENT_OUTPUTOFFLINE_BUTTON_Clicked()':
ANSiscope_PatientInfo.cpp:(.text+0x2134): multiple definition of
`PatientInfoForm::NP_PATIENT_OUTPUTOFFLINE_BUTTON_Clicked()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x2134):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::NP_PATIENT_RROFFLINE_BUTTON_Clicked()':
ANSiscope_PatientInfo.cpp:(.text+0x2144): multiple definition of
`PatientInfoForm::NP_PATIENT_RROFFLINE_BUTTON_Clicked()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x2144):
first defined here
.obj/release-shared/ANSiscope_PatientInfo.o: In function
`PatientInfoForm::NP_PATIENT_BACK_BUTTON_Clicked()':
ANSiscope_PatientInfo.cpp:(.text+0x2154): multiple definition of
`PatientInfoForm::NP_PATIENT_BACK_BUTTON_Clicked()'
.obj/release-shared/ANSiscope_PatientInfo.o:ANSiscope_PatientInfo.cpp:(.text+0x2154):
first defined here
.obj/release-shared/Main_Processing.o: In function
`MainProcessingForm::MainProcessingForm(QWidget*, char const*, unsigned
int)':
Main_Processing.cpp:(.text+0x0): multiple definition of
`MainProcessingForm::MainProcessingForm(QWidget*, char const*, unsigned
int)'
.obj/release-shared/Main_Processing.o:Main_Processing.cpp:(.text+0x0): first
defined here
.obj/release-shared/Main_Processing.o: In function
`MainProcessingForm::MainProcessingForm(QWidget*, char const*, unsigned
int)':
Main_Processing.cpp:(.text+0x234): multiple definition of
`MainProcessingForm::MainProcessingForm(QWidget*, char const*, unsigned
int)'
.obj/release-shared/Main_Processing.o:Main_Processing.cpp:(.text+0x234):
first defined here
.obj/release-shared/Main_Processing.o: In function
`MainProcessingForm::~MainProcessingForm()':
Main_Processing.cpp:(.text+0x468): multiple definition of
`MainProcessingForm::~MainProcessingForm()'
.obj/release-shared/Main_Processing.o:Main_Processing.cpp:(.text+0x468):
first defined here
.obj/release-shared/Main_Processing.o: In function
`MainProcessingForm::~MainProcessingForm()':
Main_Processing.cpp:(.text+0x482): multiple definition of
`MainProcessingForm::~MainProcessingForm()'
.obj/release-shared/Main_Processing.o:Main_Processing.cpp:(.text+0x482):
first defined here
.obj/release-shared/Main_Processing.o: In function
`MainProcessingForm::~MainProcessingForm()':
Main_Processing.cpp:(.text+0x49c): multiple definition of
`MainProcessingForm::~MainProcessingForm()'
.obj/release-shared/Main_Processing.o:Main_Processing.cpp:(.text+0x49c):
first defined here
.obj/release-shared/Main_Processing.o: In function
`MainProcessingForm::event(QEvent*)':
Main_Processing.cpp:(.text+0x4c4): multiple definition of
`MainProcessingForm::event(QEvent*)'
.obj/release-shared/Main_Processing.o:Main_Processing.cpp:(.text+0x4c4):
first defined here
.obj/release-shared/moc_ANSiscope_PatientInfo.o: In function
`PatientInfoForm::className() const':
moc_ANSiscope_PatientInfo.cpp:(.text+0x0): multiple definition of
`PatientInfoForm::className() const'
.obj/release-shared/moc_ANSiscope_PatientInfo.o:moc_ANSiscope_PatientInfo.cpp:(.text+0x0):
first defined here
.obj/release-shared/moc_ANSiscope_PatientInfo.o: In function
`PatientInfoForm::initMetaObject()':
moc_ANSiscope_PatientInfo.cpp:(.text+0x212): multiple definition of
`PatientInfoForm::initMetaObject()'
.obj/release-shared/moc_ANSiscope_PatientInfo.o:moc_ANSiscope_PatientInfo.cpp:(.text+0x212):
first defined here
.obj/release-shared/moc_ANSiscope_PatientInfo.o:(.bss+0x0): multiple
definition of `PatientInfoForm::metaObj'
.obj/release-shared/moc_ANSiscope_PatientInfo.o:(.bss+0x0): first defined
here
.obj/release-shared/moc_ANSiscope_PatientInfo.o: In function
`PatientInfoForm::tr(char const*)':
moc_ANSiscope_PatientInfo.cpp:(.text+0xa): multiple definition of
`PatientInfoForm::tr(char const*)'
.obj/release-shared/moc_ANSiscope_PatientInfo.o:moc_ANSiscope_PatientInfo.cpp:(.text+0xa):
first defined here
.obj/release-shared/moc_ANSiscope_PatientInfo.o: In function
`PatientInfoForm::tr(char const*, char const*)':
moc_ANSiscope_PatientInfo.cpp:(.text+0x30): multiple definition of
`PatientInfoForm::tr(char const*, char const*)'
.obj/release-shared/moc_ANSiscope_PatientInfo.o:moc_ANSiscope_PatientInfo.cpp:(.text+0x30):
first defined here
.obj/release-shared/moc_ANSiscope_PatientInfo.o: In function
`PatientInfoForm::staticMetaObject()':
moc_ANSiscope_PatientInfo.cpp:(.text+0x58): multiple definition of
`PatientInfoForm::staticMetaObject()'
.obj/release-shared/moc_ANSiscope_PatientInfo.o:moc_ANSiscope_PatientInfo.cpp:(.text+0x58):
first defined here
.obj/release-shared/moc_Main_Processing.o: In function
`MainProcessingForm::className() const':
moc_Main_Processing.cpp:(.text+0x0): multiple definition of
`MainProcessingForm::className() const'
.obj/release-shared/moc_Main_Processing.o:moc_Main_Processing.cpp:(.text+0x0):
first defined here
.obj/release-shared/moc_Main_Processing.o: In function
`MainProcessingForm::initMetaObject()':
moc_Main_Processing.cpp:(.text+0x9e): multiple definition of
`MainProcessingForm::initMetaObject()'
.obj/release-shared/moc_Main_Processing.o:moc_Main_Processing.cpp:(.text+0x9e):
first defined here
.obj/release-shared/moc_Main_Processing.o:(.bss+0x0): multiple definition of
`MainProcessingForm::metaObj'
.obj/release-shared/moc_Main_Processing.o:(.bss+0x0): first defined here
.obj/release-shared/moc_Main_Processing.o: In function
`MainProcessingForm::tr(char const*)':
moc_Main_Processing.cpp:(.text+0xa): multiple definition of
`MainProcessingForm::tr(char const*)'
.obj/release-shared/moc_Main_Processing.o:moc_Main_Processing.cpp:(.text+0xa):
first defined here
.obj/release-shared/moc_Main_Processing.o: In function
`MainProcessingForm::tr(char const*, char const*)':
moc_Main_Processing.cpp:(.text+0x30): multiple definition of
`MainProcessingForm::tr(char const*, char const*)'
.obj/release-shared/moc_Main_Processing.o:moc_Main_Processing.cpp:(.text+0x30):
first defined here
.obj/release-shared/moc_Main_Processing.o: In function
`MainProcessingForm::staticMetaObject()':
moc_Main_Processing.cpp:(.text+0x58): multiple definition of
`MainProcessingForm::staticMetaObject()'
.obj/release-shared/moc_Main_Processing.o:moc_Main_Processing.cpp:(.text+0x58):
first defined here
collect2: ld returned 1 exit status
make: *** [CANSiscope] Error 1
Thanks once again for ur reply.
Regards,
Harsha
Message 4 in thread
Am 16.11.2006 um 11:58 schrieb harshavardhanreddy mandeepala:
>
> INTERFACES += ANSiscope_PatientInfo.ui Main_Processing.ui
> SOURCES += ANSiscope.cpp ANSiscope_PatientInfoImpl.cpp
> ANSiscope_PatientInfo.cpp Main_Processing.cpp
> HEADERS = ANSiscope_PatientInfoImpl.h ANSiscope_PatientInfo.h \
> Main_Processing.h
> TARGET = CANSiscope
>
Do not add autogenerated files to HEADERS/SOURCES.
z.
--
[ signature omitted ]