Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
clytle374
Posts: 172
Joined: Wed Nov 06, 2013 3:58 am

Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by clytle374 »

Building git source fails with the following
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartBoolean.cpp.o
In file included from /home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:256:0:
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp: In static member function 'static void Gui::Dialog::DlgSettingsEditorImp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:57:45: error: no matching function for call to 'Gui::Dialog::DlgSettingsEditorImp::on_fontFamily_activated()'
case 2: _t->on_fontFamily_activated(); break;
^
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:57:45: note: candidate is:
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:244:6: note: void Gui::Dialog::DlgSettingsEditorImp::on_fontFamily_activated(const QString&)
void DlgSettingsEditorImp::on_fontFamily_activated(const QString& fontFamily)
^
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:244:6: note: candidate expects 1 argument, 0 provided
In file included from /home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:256:0:
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:58:46: error: no matching function for call to 'Gui::Dialog::DlgSettingsEditorImp::on_fontSize_valueChanged()'
case 3: _t->on_fontSize_valueChanged(); break;
^
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:58:46: note: candidate is:
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:251:6: note: void Gui::Dialog::DlgSettingsEditorImp::on_fontSize_valueChanged(const QString&)
void DlgSettingsEditorImp::on_fontSize_valueChanged(const QString&)
^
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:251:6: note: candidate expects 1 argument, 0 provided
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3200: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgEditorImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgEditorImp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartBox.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartCircle.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartCommon.cpp.o
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp: In member function 'virtual void Gui::Dialog::DlgGeneralImp::saveSettings()':
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp:130:5: error: 'PythonWordWrap' was not declared in this scope
PythonWordWrap->onSave();
^
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp: In member function 'virtual void Gui::Dialog::DlgGeneralImp::loadSettings()':
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp:214:5: error: 'PythonWordWrap' was not declared in this scope
PythonWordWrap->onRestore();
^
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3224: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgGeneralImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgGeneralImp.cpp.o] Error 1
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartCurveNet.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartCut.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartFuse.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartImportBrep.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartImportIges.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartImportStep.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartPolygon.cpp.o
[ 31%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartSection.cpp.o
[ 32%] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/FeaturePartSpline.cpp.o
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp: In member function 'virtual void Gui::Dialog::DlgSettings3DViewImp::saveSettings()':
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp:88:5: error: 'CheckBox_useVBO' was not declared in this scope
CheckBox_useVBO->onSave();
^
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp: In member function 'virtual void Gui::Dialog::DlgSettings3DViewImp::loadSettings()':
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp:105:5: error: 'CheckBox_useVBO' was not declared in this scope
CheckBox_useVBO->onRestore();
^
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3320: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettings3DViewImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettings3DViewImp.cpp.o] Error 1
CMakeFiles/Makefile2:5150: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/all' failed
make[1]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Any ideas what I've messed up this time? Had this problem for a while now.
Thanks
User avatar
kkremitzki
Veteran
Posts: 2517
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by kkremitzki »

Are you building in the source folder, or do you have an external build folder? I recognize that error as referring to a feature that was just added recently. Just guessing, but perhaps it could be from some artifacts left behind from a previous build.

Also if you have any successful previously built builds on your system, it wouldn't hurt to paste the info from Help->About FreeCAD so we can have more information about your system.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
clytle374
Posts: 172
Joined: Wed Nov 06, 2013 3:58 am

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by clytle374 »

I can't start freecad, it broke the installation when I tried to update.

Should I try a make clean?
clytle374
Posts: 172
Joined: Wed Nov 06, 2013 3:58 am

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by clytle374 »

make clean left me with this

Code: Select all

[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgReportViewImp.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettings3DViewImp.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsUnitsImp.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsViewColor.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsColorGradientImp.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsDocumentImp.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsImageImp.cpp.o
[ 43%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsMacroImp.cpp.o
/home/cory/free-cad-dev/src/Gui/DlgSettingsImageImp.cpp: In member function 'bool Gui::Dialog::DlgSettingsImageImp::addWatermark() const':
/home/cory/free-cad-dev/src/Gui/DlgSettingsImageImp.cpp:144:12: error: 'checkWatermark' was not declared in this scope
     return checkWatermark->isChecked();
            ^
/home/cory/free-cad-dev/src/Gui/DlgSettingsImageImp.cpp:145:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3440: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsImageImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettingsImageImp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:256:0:
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp: In static member function 'static void Gui::Dialog::DlgSettingsEditorImp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:57:45: error: no matching function for call to 'Gui::Dialog::DlgSettingsEditorImp::on_fontFamily_activated()'
         case 2: _t->on_fontFamily_activated(); break;
                                             ^
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:57:45: note: candidate is:
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:244:6: note: void Gui::Dialog::DlgSettingsEditorImp::on_fontFamily_activated(const QString&)
 void DlgSettingsEditorImp::on_fontFamily_activated(const QString& fontFamily)
      ^
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:244:6: note:   candidate expects 1 argument, 0 provided
In file included from /home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:256:0:
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:58:46: error: no matching function for call to 'Gui::Dialog::DlgSettingsEditorImp::on_fontSize_valueChanged()'
         case 3: _t->on_fontSize_valueChanged(); break;
                                              ^
/home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp:58:46: note: candidate is:
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:251:6: note: void Gui::Dialog::DlgSettingsEditorImp::on_fontSize_valueChanged(const QString&)
 void DlgSettingsEditorImp::on_fontSize_valueChanged(const QString&)
      ^
/home/cory/free-cad-dev/src/Gui/DlgEditorImp.cpp:251:6: note:   candidate expects 1 argument, 0 provided
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3200: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgEditorImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgEditorImp.cpp.o] Error 1
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp: In member function 'virtual void Gui::Dialog::DlgGeneralImp::saveSettings()':
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp:130:5: error: 'PythonWordWrap' was not declared in this scope
     PythonWordWrap->onSave();
     ^
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp: In member function 'virtual void Gui::Dialog::DlgGeneralImp::loadSettings()':
/home/cory/free-cad-dev/src/Gui/DlgGeneralImp.cpp:214:5: error: 'PythonWordWrap' was not declared in this scope
     PythonWordWrap->onRestore();
     ^
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3224: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgGeneralImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgGeneralImp.cpp.o] Error 1
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp: In member function 'virtual void Gui::Dialog::DlgSettings3DViewImp::saveSettings()':
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp:88:5: error: 'CheckBox_useVBO' was not declared in this scope
     CheckBox_useVBO->onSave();
     ^
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp: In member function 'virtual void Gui::Dialog::DlgSettings3DViewImp::loadSettings()':
/home/cory/free-cad-dev/src/Gui/DlgSettings3DViewImp.cpp:105:5: error: 'CheckBox_useVBO' was not declared in this scope
     CheckBox_useVBO->onRestore();
     ^
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:3320: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettings3DViewImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgSettings3DViewImp.cpp.o] Error 1
CMakeFiles/Makefile2:5150: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/all' failed
make[1]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
clytle374
Posts: 172
Joined: Wed Nov 06, 2013 3:58 am

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by clytle374 »

And i have an external build folder
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by jmaustpc »

clytle374 wrote:make clean left me with this
Do you mean you ran the command "make clean" or did you create a new directory and start compiling from the beginning? I have found in the past that I needed to do the latter.
clytle374
Posts: 172
Joined: Wed Nov 06, 2013 3:58 am

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by clytle374 »

I ran the make clean command. then started with a fresh clone and it built. I am really sure that I didn't build in the source folder, strange things have been happening on this computer.

Anyway, it works again.
wmayer
Founder
Posts: 20317
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:

Post by wmayer »

Do you mean you ran the command "make clean" or did you create a new directory and start compiling from the beginning? I have found in the past that I needed to do the latter.
Both is useless once you made an in-source build because then the source directory is full of generated files. When you then later switch to an out-of-source build and the source file as input of a generated file has been modified you keep getting an error because the compiler gets the old version of the generated file and not the new one in the external build directory.
I ran the make clean command. then started with a fresh clone and it built.
Completely erasing the git repository is a bit over the top. It is sufficient to check with git status which files of the repository don't belong to it. Then you can delete these files manually or via git itself.
I am really sure that I didn't build in the source folder, strange things have been happening on this computer.
But you definitely had the generated file /home/cory/free-cad-dev/src/Gui/moc_DlgEditorImp.cpp inside the source directory.
clytle374
Posts: 172
Joined: Wed Nov 06, 2013 3:58 am

Re: Build fails at src/Gui/DlgEditorImp.cpp:256:0:[solved]

Post by clytle374 »

wmayer wrote: Completely erasing the git repository is a bit over the top. It is sufficient to check with git status which files of the repository don't belong to it. Then you can delete these files manually or via git itself.
Thanks, that's handy info.
Post Reply