January 12, 2011

fclopez fclopez
Lab Rat
2 posts

moc errors

 

Hi. I am trying to compile a project with the following error. I do not understand the error is coming from, starting with

qt_invoke(int, QUObject*)

onwards to the end. Since moc files are generated after calling qmake, I do not understand where moc problem is coming from. I am using Qt3.3.6 integrated with Rootv5.20 running on Linux version 2.6.18.

Looking at it if it were a subversion issue, Qt3.3.8 was also tried but with no success.

  1. g++ -Wl,-rpath,/home/mcs/qt-3.3.8a/lib -o bin/picassoGUI
  2. >> objs/AcquisitionThread.o objs/qMeasurement.o objs/qMeasurementWizard.o
  3. >> objs/qMythenCanvas.o objs/main.o objs/qMythenMain.o
  4. >> objs/qMythenMenuBar.o
  5. >> objs/qAdvanced.o objs/qPlot.o objs/qCalibrationWizard.o
  6. >> objs/qRangeWidget.o objs/qScans.o objs/qConfiguration.o
  7. >> objs/qScanWidget.o
  8. >> objs/qDataOutput.o objs/qTimeResolved.o objs/qDebugging.o
  9. >> objs/qTimeWidget.o objs/qEditableList.o objs/qTrimming.o objs/qLog.o
  10. >> objs/moc_AcquisitionThread.o objs/moc_qMeasurementWizard.o
  11. >> objs/moc_qMythenCanvas.o objs/moc_qAdvanced.o objs/moc_qMythenMain.o
  12. >> objs/moc_qCalibrationWizard.o objs/moc_qMythenMenuBar.o
  13. >> objs/moc_qConfiguration.o objs/moc_qPlot.o objs/moc_qDataOutput.o
  14. >> objs/moc_qRangeWidget.o objs/moc_qDebugging.o objs/moc_qScans.o
  15. >> objs/moc_qScanWidget.o objs/moc_qTimeResolved.o objs/moc_qEditableList.o
  16. >> objs/moc_qTimeWidget.o objs/moc_qLog.o objs/moc_qTrimming.o
  17. >> objs/moc_qMeasurement.o   -L/home/mcs/qt-3.3.8a/lib -L/usr/X11R6/lib
  18. >> -Wl,-Bstatic -L../TMythenDetector/bin -lTMythenDetector -Wl,-Bdynamic
  19. >> -Wl,-Bstatic -L../slsDetectorSoftware/bin -lSlsDetector -Wl,-Bdynamic
  20. >> -L/home/l_common/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf
  21. >> -lGraf3d
  22. >> -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread
  23. >> -pthread -lm -ldl -rdynamic -L/home/l_common/root/lib -lGui -lGQt
  24. >> -lqt-mt
  25. >> -lXext -lX11 -lm -lpthread
  26. >> objs/moc_qCalibrationWizard.o: In function
  27. >> `qCalibrationWizard::qt_invoke(int, QUObject*)':
  28. >> /home/l_common/newMythenSoftware/mythenGUI/mocs/moc_qCalibrationWizard.cpp:245:
  29. >> undefined reference to `qCalibrationWizard::checkFiles(int, float*)'
  30. >> /home/l_common/newMythenSoftware/mythenGUI/mocs/moc_qCalibrationWizard.cpp:246:
  31. >> undefined reference to `qCalibrationWizard::checkFiles(int, float*)'
  32. >> /home/l_common/newMythenSoftware/mythenGUI/mocs/moc_qCalibrationWizard.cpp:247:
  33. >> undefined reference to `qCalibrationWizard::checkFiles(int, float*)'
  34. >> collect2: ld returned 1 exit status
  35. >> make: *** [bin/picassoGUI] Error 1

[EDIT: code formatting, Volker]

1 reply

January 12, 2011

Volker Volker
Ant Farmer
5428 posts

No object code for your method qCalibrationWizard::checkFiles(int, float*) is generated in your project. Did you implement the method?

 
  ‹‹ Getting QML Designer to work in Ubuntu      QtCreator default SDK ››

You must log in to post a reply. Not a member yet? Register here!