Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Moc errors
Forum Updated to NodeBB v4.3 + New Features

Moc errors

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fclopez
    wrote on last edited by
    #1

    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.

    @
    g++ -Wl,-rpath,/home/mcs/qt-3.3.8a/lib -o bin/picassoGUI

    objs/AcquisitionThread.o objs/qMeasurement.o objs/qMeasurementWizard.o
    objs/qMythenCanvas.o objs/main.o objs/qMythenMain.o
    objs/qMythenMenuBar.o
    objs/qAdvanced.o objs/qPlot.o objs/qCalibrationWizard.o
    objs/qRangeWidget.o objs/qScans.o objs/qConfiguration.o
    objs/qScanWidget.o
    objs/qDataOutput.o objs/qTimeResolved.o objs/qDebugging.o
    objs/qTimeWidget.o objs/qEditableList.o objs/qTrimming.o objs/qLog.o
    objs/moc_AcquisitionThread.o objs/moc_qMeasurementWizard.o
    objs/moc_qMythenCanvas.o objs/moc_qAdvanced.o objs/moc_qMythenMain.o
    objs/moc_qCalibrationWizard.o objs/moc_qMythenMenuBar.o
    objs/moc_qConfiguration.o objs/moc_qPlot.o objs/moc_qDataOutput.o
    objs/moc_qRangeWidget.o objs/moc_qDebugging.o objs/moc_qScans.o
    objs/moc_qScanWidget.o objs/moc_qTimeResolved.o objs/moc_qEditableList.o
    objs/moc_qTimeWidget.o objs/moc_qLog.o objs/moc_qTrimming.o
    objs/moc_qMeasurement.o -L/home/mcs/qt-3.3.8a/lib -L/usr/X11R6/lib
    -Wl,-Bstatic -L../TMythenDetector/bin -lTMythenDetector -Wl,-Bdynamic
    -Wl,-Bstatic -L../slsDetectorSoftware/bin -lSlsDetector -Wl,-Bdynamic
    -L/home/l_common/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf
    -lGraf3d
    -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread
    -pthread -lm -ldl -rdynamic -L/home/l_common/root/lib -lGui -lGQt
    -lqt-mt
    -lXext -lX11 -lm -lpthread
    objs/moc_qCalibrationWizard.o: In function
    qCalibrationWizard::qt_invoke(int, QUObject*)': /home/l_common/newMythenSoftware/mythenGUI/mocs/moc_qCalibrationWizard.cpp:245: undefined reference to qCalibrationWizard::checkFiles(int, float*)'
    /home/l_common/newMythenSoftware/mythenGUI/mocs/moc_qCalibrationWizard.cpp:246:
    undefined reference to qCalibrationWizard::checkFiles(int, float*)' /home/l_common/newMythenSoftware/mythenGUI/mocs/moc_qCalibrationWizard.cpp:247: undefined reference to qCalibrationWizard::checkFiles(int, float*)'
    collect2: ld returned 1 exit status
    make: *** [bin/picassoGUI] Error 1
    @

    [EDIT: code formatting, Volker]

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

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

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved