FreeCAD 0.18.4 doesn't compile with Opencascade 7.5.0

Having trouble installing or compiling FreeCAD? Get help here.
Post Reply
gianluca.pettinello
Posts: 1
Joined: Sat Nov 21, 2020 4:18 pm

FreeCAD 0.18.4 doesn't compile with Opencascade 7.5.0

Post by gianluca.pettinello » Sat Nov 21, 2020 4:24 pm

The title is quite self explanatory.
System is Linux Archlinux.
Error is:

Code: Select all

[10/1725] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/ImportIges.cpp.o
FAILED: src/Mod/Part/App/CMakeFiles/Part.dir/ImportIges.cpp.o 
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFCUseFreeType -DHAVE_CONFIG_H -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_LIMITS_H -DHAVE_TBB -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DPart_EXPORTS -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_XML_LIB -DVTK_OPENGL2_BACKEND -D_OCC64 -DvtkDomainsChemistry_AUTOINIT="2(vtkDomainsChemistryOpenGL2,vtkDomainsParallelChemistry)" -DvtkFiltersCore_AUTOINIT="1(vtkFiltersParallelDIY2)" -DvtkFiltersFlowPaths_AUTOINIT="1(vtkFiltersParallelFlowPaths)" -DvtkFiltersParallel_AUTOINIT="2(vtkFiltersParallelDIY2,vtkFiltersParallelGeometry)" -DvtkIOExodus_AUTOINIT="1(vtkIOParallelExodus)" -DvtkIOExport_AUTOINIT="2(vtkIOExportOpenGL2,vtkIOExportPDF)" -DvtkIOGeometry_AUTOINIT="1(vtkIOMPIParallel)" -DvtkIOImage_AUTOINIT="1(vtkIOMPIImage)" -DvtkIOParallel_AUTOINIT="1(vtkIOMPIParallel)" -DvtkIOSQL_AUTOINIT="2(vtkIOMySQL,vtkIOPostgreSQL)" -DvtkIOXdmf3_AUTOINIT="1(vtkIOParallelXdmf3)" -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL2)" -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" -DvtkRenderingFreeType_AUTOINIT="2(vtkRenderingFreeTypeFontConfig,vtkRenderingMatplotlib)" -DvtkRenderingLICOpenGL2_AUTOINIT="1(vtkRenderingParallelLIC)" -DvtkRenderingOpenGL2_AUTOINIT="1(vtkRenderingGL2PSOpenGL2)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL2)" -I. -Isrc -I/home/gianluca/builds/freecad/src/FreeCAD/src -Isrc/Mod/Part/App -I/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App -I/usr/include/opencascade -I/usr/include/python3.8 -I/usr/include/freetype2 -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtXml -Wall -Wextra -Wno-write-strings -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -w -std=c++11 -D_OCC64 -O3 -DNDEBUG -fPIC -pthread -fPIC -MD -MT src/Mod/Part/App/CMakeFiles/Part.dir/ImportIges.cpp.o -MF src/Mod/Part/App/CMakeFiles/Part.dir/ImportIges.cpp.o.d -o src/Mod/Part/App/CMakeFiles/Part.dir/ImportIges.cpp.o -c /home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp: In function ‘int Part::ImportIgesParts(App::Document*, const char*)’:
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:94:73: error: invalid new-expression of abstract class type ‘Part::ProgressIndicator’
   94 |         Handle(Message_ProgressIndicator) pi = new ProgressIndicator(100);
      |                                                                         ^
In file included from /home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:64:
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ProgressIndicator.h:33:18: note:   because the following virtual functions are pure within ‘Part::ProgressIndicator’:
   33 | class PartExport ProgressIndicator : public Message_ProgressIndicator
      |                  ^~~~~~~~~~~~~~~~~
In file included from /usr/include/opencascade/Message_ProgressRange.hxx:111,
                 from /usr/include/opencascade/XSControl_Controller.hxx:34,
                 from /usr/include/opencascade/IGESControl_Controller.hxx:24,
                 from /home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:31:
/usr/include/opencascade/Message_ProgressIndicator.hxx:112:16: note:     ‘virtual void Message_ProgressIndicator::Show(const Message_ProgressScope&, Standard_Boolean)’
  112 |   virtual void Show (const Message_ProgressScope& theScope,
      |                ^~~~
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:95:13: error: ‘class Message_ProgressIndicator’ has no member named ‘NewScope’
   95 |         pi->NewScope(100, "Reading IGES file...");
      |             ^~~~~~~~
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:96:18: error: no matching function for call to ‘Message_ProgressIndicator::Show()’
   96 |         pi->Show();
      |                  ^
In file included from /usr/include/opencascade/Message_ProgressRange.hxx:111,
                 from /usr/include/opencascade/XSControl_Controller.hxx:34,
                 from /usr/include/opencascade/IGESControl_Controller.hxx:24,
                 from /home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:31:
/usr/include/opencascade/Message_ProgressIndicator.hxx:112:16: note: candidate: ‘virtual void Message_ProgressIndicator::Show(const Message_ProgressScope&, Standard_Boolean)’
  112 |   virtual void Show (const Message_ProgressScope& theScope,
      |                ^~~~
/usr/include/opencascade/Message_ProgressIndicator.hxx:112:16: note:   candidate expects 2 arguments, 0 provided
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:97:36: error: ‘class Transfer_TransientProcess’ has no member named ‘SetProgress’
   97 |         aReader.WS()->MapReader()->SetProgress(pi);
      |                                    ^~~~~~~~~~~
/home/gianluca/builds/freecad/src/FreeCAD/src/Mod/Part/App/ImportIges.cpp:103:13: error: ‘class Message_ProgressIndicator’ has no member named ‘EndScope’
  103 |         pi->EndScope();
      |             ^~~~~~~~
[11/1725] Building CXX object src/Mod/Part/App/CMakeFiles/Part.dir/modelRefine.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().

chrisb
Posts: 30620
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.18.4 doesn't compile with Opencascade 7.5.0

Post by chrisb » Sat Nov 21, 2020 5:42 pm

So you better compile 0.19 with that OCC version.
You need at least FreeCAD 0.19.23300 to edit my current sketches.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.

User avatar
hobbes1069
Posts: 263
Joined: Wed Nov 09, 2011 3:49 pm
Location: Southaven, MS

Re: FreeCAD 0.18.4 doesn't compile with Opencascade 7.5.0

Post by hobbes1069 » Tue Nov 24, 2020 12:48 pm

The problem is 0.19 doesn't technically exist (as a release) and 0.18.4 was released over a year ago. I'm in the same boat trying to build the Fedora package.

Thanks,
Richard

User avatar
Kunda1
Posts: 9209
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD 0.18.4 doesn't compile with Opencascade 7.5.0

Post by Kunda1 » Tue Nov 24, 2020 1:22 pm

hobbes1069 wrote:
Tue Nov 24, 2020 12:48 pm
The problem is 0.19 doesn't technically exist (as a release) and 0.18.4 was released over a year ago. I'm in the same boat trying to build the Fedora package.
v0.19 release, just a month away (:crossed_fingers:)
Alone you go faster. Together we go farther
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

Post Reply