I was getting same error in a Qt build.
I was adding a slot for the signal finished from Qprocess - the doco on which says:
void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus)
My code:
freesound.h
void slotPreviewFinished(int exitCode, QProcess::ExitStatus exitStatus);
freensound.cpp
m_previewProcess = new(Qprocess);
connect (m_previewProcess ,SIGNAL (finished(int , QProcess::ExitStatus )),this,SLOT(slotPreviewFinished(int , QProcess::ExitStatus)));
void slotPreviewFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
qDebug()<<"// slotPreviewFinished: "<<exitCode;
}
compiling the above generated:
/home/ttguy/kdenlive/kdenlive_git/build-kdenlive-Desktop-Default/src/moc_freesound.cpp:121: error: undefined reference to `FreeSound::slotPreviewFinished(int, QProcess::ExitStatus)'
And the fix was to prefix my implementation of slotPreviewFinished with FreeSound::
void FreeSound::slotPreviewFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
qDebug()<<"// slotPreviewFinished: "<<exitCode;
}