Re: Meta Object Complier error while porting

2015-01-30 Thread anu mittal
Can anybody help me how to proceed in this case, is #include "kalziumglwidget.moc" required in the .cpp file? Although on including .moc and building gives error- Automoc for target compoundviewer Generating kalziumglwidget.moc /home/anu/kalzium/compoundviewer/kalziumglwidget.cpp:0: Note: No relev

Re: Meta Object Complier error while porting

2015-01-29 Thread anu mittal
I am so sorry- Q_OBJECT macro, typo :/ On Thu, Jan 29, 2015 at 11:51 PM, Thomas Lübking wrote: > the O[sic!]_OBJECT macro? > > Am Donnerstag, 29. Januar 2015 schrieb anu mittal : > > O_OBJECT macro is there in the header file kalziumglwidget.h and before >> removing the #include "kalziumglwidget

Re: Meta Object Complier error while porting

2015-01-29 Thread Thomas Lübking
the O[sic!]_OBJECT macro? Am Donnerstag, 29. Januar 2015 schrieb anu mittal : > O_OBJECT macro is there in the header file kalziumglwidget.h and before > removing the #include "kalziumglwidget.moc" [1] was the exact error > > [1]Automoc for target compoundviewer > Generating kalziumglwidget.moc

Re: Meta Object Complier error while porting

2015-01-29 Thread anu mittal
O_OBJECT macro is there in the header file kalziumglwidget.h and before removing the #include "kalziumglwidget.moc" [1] was the exact error [1]Automoc for target compoundviewer Generating kalziumglwidget.moc /home/anu/kalzium/compoundviewer/kalziumglwidget.cpp:0: Note: No relevant classes found.

Re: Meta Object Complier error while porting

2015-01-29 Thread Sebastian Kügler
On Thursday, January 29, 2015 15:07:42 anu mittal wrote: > I am working on the application Kalzium,the file kalziumglwidget.cpp under > it includes the #include "kalziumglwidget.moc" at the end of the code and > cmakefile has set(CMAKE_AUTOMOC TRUE) even after that on building it shows- > > fata

Re: Meta Object Complier error while porting

2015-01-29 Thread anu mittal
On future removing set(CMAKE_AUTOMOC TRUE) error shown was[1] [1]http://pastebin.com/5FbgUBwA On Thu, Jan 29, 2015 at 4:19 PM, anu mittal wrote: > Hi, > on removing the .moc include i got errors > shown - http://pastebin.com/GLka3Jrc > CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o: In fun

Re: Meta Object Complier error while porting

2015-01-29 Thread anu mittal
On future removing set(CMAKE_AUTOMOC TRUE) error shown was[1] Is it not required for sure? [1]http://pastebin.com/5FbgUBwA On Thu, Jan 29, 2015 at 4:19 PM, anu mittal wrote: > Hi, > on removing the .moc include i got errors > shown - http://pastebin.com/GLka3Jrc > CMakeFiles/compoundviewer.dir/

Re: Meta Object Complier error while porting

2015-01-29 Thread anu mittal
Hi, on removing the .moc include i got errors shown - http://pastebin.com/GLka3Jrc CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o: In function `KalziumGLWidget::KalziumGLWidget(QWidget*)': kalziumglwidget.cpp:(.text+0x35): undefined reference to ` Avogadro::GLWidget::GLWidget(QWidget*)' mostl

Re: Meta Object Complier error while porting

2015-01-29 Thread Thomas Baumgart
Hi, On Thursday 29 January 2015 15:07:42 anu mittal wrote: > I am working on the application Kalzium,the file kalziumglwidget.cpp under > it includes the #include "kalziumglwidget.moc" at the end of the code and > cmakefile has set(CMAKE_AUTOMOC TRUE) even after that on building it shows- > >

Meta Object Complier error while porting

2015-01-29 Thread anu mittal
I am working on the application Kalzium,the file kalziumglwidget.cpp under it includes the #include "kalziumglwidget.moc" at the end of the code and cmakefile has set(CMAKE_AUTOMOC TRUE) even after that on building it shows- fatal error: kalziumglwidget.moc: No such file or directory #include "