Compile fail commit nr. 8189

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
user1234
Veteran
Posts: 3347
Joined: Mon Jul 11, 2016 5:08 pm

Compile fail commit nr. 8189

Post by user1234 »

Hello!

I almost weekly (or I have time more times) complie freecad. Last time i compiled was yesterday (commit nr. 8186) --> no errors, no warnings. Today i compiled it again and it fails (commit nr. 8189).

here the log:

Code: Select all


[ 45%] Built target Path
[ 47%] Built target PartDesign
[ 48%] Built target Sketcher
[ 53%] Built target Fem
Linking CXX shared library ../../../../Mod/TechDraw/TechDraw.so
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:31:0:
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.h:39:35: error: invalid use of incomplete type ‘class QDialog’
 class DlgUnitsCalculator : public QDialog
                                   ^
In file included from /usr/include/qt4/QtGui/qapplication.h:46:0,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:26:
/usr/include/qt4/QtGui/qwindowdefs.h:57:7: error: forward declaration of ‘class QDialog’
 class QDialog;
       ^
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp: In constructor ‘Gui::Dialog::DlgUnitsCalculator::DlgUnitsCalculator(QWidget*, Qt::WindowFlags)’:
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:47:5: error: type ‘QDialog’ is not a direct base of ‘Gui::Dialog::DlgUnitsCalculator’
   : QDialog(parent, fl), ui(new Ui_DlgUnitCalculator)
     ^
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:50:21: error: no matching function for call to ‘Gui::Dialog::Ui_DlgUnitCalculator::setupUi(Gui::Dialog::DlgUnitsCalculator*)’
     ui->setupUi(this);
                     ^
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:50:21: note: candidate is:
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:32:0:
/home/laptop/Programme/freecad-build/src/Gui/ui_DlgUnitsCalculator.h:54:10: note: void Gui::Dialog::Ui_DlgUnitCalculator::setupUi(QWidget*)
     void setupUi(QWidget *Gui__Dialog__DlgUnitCalculator)
          ^
/home/laptop/Programme/freecad-build/src/Gui/ui_DlgUnitsCalculator.h:54:10: note:   no known conversion for argument 1 from ‘Gui::Dialog::DlgUnitsCalculator*’ to ‘QWidget*’
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:51:11: error: ‘class Gui::Dialog::DlgUnitsCalculator’ has no member named ‘setAttribute’
     this->setAttribute(Qt::WA_DeleteOnClose);
           ^
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:53:103: error: ‘connect’ was not declared in this scope
     connect(ui->ValueInput, SIGNAL(valueChanged(Base::Quantity)), this, SLOT(valueChanged(Base::Quantity)));
                                                                                                       ^
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp: In member function ‘void Gui::Dialog::DlgUnitsCalculator::accept()’:
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:89:21: error: cannot call member function ‘virtual void QDialog::accept()’ without object
     QDialog::accept();
                     ^
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp: In member function ‘void Gui::Dialog::DlgUnitsCalculator::reject()’:
/home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:94:21: error: cannot call member function ‘virtual void QDialog::reject()’ without object
     QDialog::reject();
                     ^
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:155:0:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp: In static member function ‘static void Gui::Dialog::DlgUnitsCalculator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:57:70: error: invalid static_cast from type ‘QObject*’ to type ‘Gui::Dialog::DlgUnitsCalculator*’
         DlgUnitsCalculator *_t = static_cast<DlgUnitsCalculator *>(_o);
                                                                      ^
In file included from /usr/include/qt4/QtCore/qcoreapplication.h:45:0,
                 from /usr/include/qt4/QtGui/qapplication.h:45,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:26:
/usr/include/qt4/QtCore/qobject.h: In member function ‘virtual const QMetaObject* Gui::Dialog::DlgUnitsCalculator::metaObject() const’:
/usr/include/qt4/QtCore/qobject.h:320:33: error: ‘QScopedPointer<QObjectData> QObject::d_ptr’ is protected
     QScopedPointer<QObjectData> d_ptr;
                                 ^
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:155:0:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:86:21: error: within this context
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                     ^
In file included from /usr/include/qt4/QtCore/qcoreapplication.h:45:0,
                 from /usr/include/qt4/QtGui/qapplication.h:45,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:26:
/usr/include/qt4/QtCore/qobject.h:320:33: error: invalid use of non-static data member ‘QObject::d_ptr’
     QScopedPointer<QObjectData> d_ptr;
                                 ^
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:155:0:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:86:21: error: from this location
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                     ^
In file included from /usr/include/qt4/QtCore/qcoreapplication.h:45:0,
                 from /usr/include/qt4/QtGui/qapplication.h:45,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:26:
/usr/include/qt4/QtCore/qobject.h:320:33: error: ‘QScopedPointer<QObjectData> QObject::d_ptr’ is protected
     QScopedPointer<QObjectData> d_ptr;
                                 ^
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:155:0:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:86:50: error: within this context
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                  ^
In file included from /usr/include/qt4/QtCore/qcoreapplication.h:45:0,
                 from /usr/include/qt4/QtGui/qapplication.h:45,
                 from /usr/include/qt4/QtGui/QApplication:1,
                 from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:26:
/usr/include/qt4/QtCore/qobject.h:320:33: error: invalid use of non-static data member ‘QObject::d_ptr’
     QScopedPointer<QObjectData> d_ptr;
                                 ^
In file included from /home/laptop/Programme/freecad-build/sourcecode/src/Gui/DlgUnitsCalculatorImp.cpp:155:0:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:86:50: error: from this location
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                  ^
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp: In member function ‘virtual void* Gui::Dialog::DlgUnitsCalculator::qt_metacast(const char*)’:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:94:40: error: cannot call member function ‘virtual void* QDialog::qt_metacast(const char*)’ without object
     return QDialog::qt_metacast(_clname);
                                        ^
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp: In member function ‘virtual int Gui::Dialog::DlgUnitsCalculator::qt_metacall(QMetaObject::Call, int, void**)’:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:99:43: error: cannot call member function ‘virtual int QDialog::qt_metacall(QMetaObject::Call, int, void**)’ without object
     _id = QDialog::qt_metacall(_c, _id, _a);
                                           ^
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:104:49: error: no matching function for call to ‘Gui::Dialog::DlgUnitsCalculator::qt_static_metacall(Gui::Dialog::DlgUnitsCalculator*, QMetaObject::Call&, int&, void**&)’
             qt_static_metacall(this, _c, _id, _a);
                                                 ^
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:104:49: note: candidate is:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:53:6: note: static void Gui::Dialog::DlgUnitsCalculator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)
 void Gui::Dialog::DlgUnitsCalculator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
      ^
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:53:6: note:   no known conversion for argument 1 from ‘Gui::Dialog::DlgUnitsCalculator*’ to ‘QObject*’
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp: In member function ‘virtual const QMetaObject* Gui::Dialog::DlgUnitsCalculator::metaObject() const’:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp: In member function ‘virtual void* Gui::Dialog::DlgUnitsCalculator::qt_metacast(const char*)’:
/home/laptop/Programme/freecad-build/src/Gui/moc_DlgUnitsCalculatorImp.cpp:95:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/Gui/CMakeFiles/FreeCADGui.dir/build.make:2440: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/DlgUnitsCalculatorImp.cpp.o' failed
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/DlgUnitsCalculatorImp.cpp.o] Error 1
CMakeFiles/Makefile2:4365: recipe for target 'src/Gui/CMakeFiles/FreeCADGui.dir/all' failed
make[1]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
[ 55%] Built target TechDraw
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
laptop@Laptop:~/Programme/freecad-build$

Here my data:

OS: Debian GNU/Linux 8.5 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8189 (Git)
Build type: Unknown
Branch: master
Hash: 7f835a0c262789f9aef446362917948568eb92c5
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

I hope this is informative.

Btw: FreeCAD is awsome. Thanks for the super software.
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Compile fail commit nr. 8189

Post by wandererfan »

Travis builds are failing with same errors. See PR245.

wf
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compile fail commit nr. 8189

Post by sgrogan »

I get the same errors locally on Trusty, same as Travis
user1234 wrote:Here my data:
OFF TOPIC: @user1234
I remember your post from the Pull Request forum. As far as I know you're the only one who has compiled FreeCAD on Jessie since the SMESH upgrade with VTK 6.1. Is this still the case and did you have to do anything special? Most Jessie user's have had to compile VTK7 to get FreeCAD compiling.
"fight the good fight"
user1234
Veteran
Posts: 3347
Joined: Mon Jul 11, 2016 5:08 pm

Re: Compile fail commit nr. 8189

Post by user1234 »

OFF TOPIC: @user1234
I remember your post from the Pull Request forum. As far as I know you're the only one who has compiled FreeCAD on Jessie since the SMESH upgrade with VTK 6.1. Is this still the case and did you have to do anything special? Most Jessie user's have had to compile VTK7 to get FreeCAD compiling.
Now i have VTK7.0 (self compiled). But as i compiled this SMESH stuff i had (not fully tested) worked (compiled) with VTK 6.1.0 (debian jessy package) with no error massages or warnings. I will try it to compile it with VTK 6.1.0 again and give you a reply.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compile fail commit nr. 8189

Post by sgrogan »

user1234 wrote: Now i have VTK7.0 (self compiled). But as i compiled this SMESH stuff i had (not fully tested) worked (compiled) with VTK 6.1.0 (debian jessy package) with no error massages or warnings. I will try it to compile it with VTK 6.1.0 again and give you a reply.
Thanks user1234, please be careful not to break your system because of my question :o
I am very interested though why you were successful. :geek:
"fight the good fight"
wmayer
Founder
Posts: 20245
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compile fail commit nr. 8189

Post by wmayer »

user1234
Veteran
Posts: 3347
Joined: Mon Jul 11, 2016 5:08 pm

Re: Compile fail commit nr. 8189

Post by user1234 »

sgrogan wrote:
user1234 wrote: Now i have VTK7.0 (self compiled). But as i compiled this SMESH stuff i had (not fully tested) worked (compiled) with VTK 6.1.0 (debian jessy package) with no error massages or warnings. I will try it to compile it with VTK 6.1.0 again and give you a reply.
Thanks user1234, please be careful not to break your system because of my question :o
I am very interested though why you were successful. :geek:
Sorry that i must disappoint you. I installed vtk 6.1.0 again and tried to compile it. But it didn't worked. So i investigated why it worked that before. So i found out, that at that time i disabled in cmake the FEM workbench. Sorry for that incorrect information. In future i try to be more exact. Sorry for that.

So i compiled commit nr. 8196 (BUILD_COMPLETE) with vtk 7.0 with no errors or warnings.

Thanks for the fix.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compile fail commit nr. 8189

Post by sgrogan »

wmayer wrote:git commit 30f496e
Thanks wmayer!
user1234 wrote:Sorry that i must disappoint you. I installed vtk 6.1.0 again and tried to compile it. But it didn't worked. So i investigated why it worked that before. So i found out, that at that time i disabled in cmake the FEM workbench. Sorry for that incorrect information. In future i try to be more exact. Sorry for that.
No need to be sorry, thanks for checking! VTK6.1 seems to have a problem, at least with FreeCAD so this information is valuable.
"fight the good fight"
Post Reply