Having trouble installing or compiling FreeCAD? Get help here.
Gift
Posts: 769 Joined: Tue Aug 18, 2015 10:08 am
Location: Germany, Sauerland
Post
by Gift » Tue Jun 14, 2022 6:27 pm
Yasser wrote: ↑ Tue Jun 14, 2022 5:21 pm
This is the final modification result without using LibPack
hdf5 configuration file exist in this directory so i added it to the path list
and the cmake goes flawless in
cmake ../freecad without errors or warnings
if i succeeded in building freecad i'll post full detail about how it's done for the beginners.
next step
cmake --build ./ is full of trouble
Code: Select all
list(APPEND CMAKE_PREFIX_PATH "C:/msys64/mingw64/lib/cmake")
This will be easier:
Code: Select all
cmake -DCMAKE_PREFIX_PATH=/mingw64/lib/cmake/ ../FreeCAD
Are you getting the same error message?
Code: Select all
...
C:/msys64/home/.../FreeCAD/FreeCAD/src/3rdParty/salomesmesh/inc/SMESH_MeshEditor.hxx:85:18: error: function 'SMESH_MeshEditor::ElemFeatures::ElemFeatures(SMDSAbs_ElementType, bool, bool)' definition is marked dllimport
...
edit:
Ok, you started a new topic.
edit2:
Should we (that mean you
) add the hint to wiki for the prefix path?
Last edited by
Gift on Tue Jun 14, 2022 6:44 pm, edited 1 time in total.
Yasser
Posts: 35 Joined: Tue Dec 15, 2020 4:28 pm
Post
by Yasser » Tue Jun 14, 2022 6:44 pm
This will be easier:
You mean every time i write this line instead of cmake ../freecad !!
i already wrote the error in one of my previous posts, you can compare it with yours.
this is what i got after updating some lines, it is done free of errors (i hope
).
Code: Select all
$ cmake ../freecad
-- Building for: Ninja
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0072 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Yasser =======>
-- CMAKE_MODULE_PATH="C:/msys64/home/Baba/FreeCAD/cMake" ; CMAKE_PREFIX_PATH="C:/msys64/mingw64/lib/cmake"
-- Compiler: GNU, version: 12.1.0
-- Looking for GL/gl.h
-- Looking for GL/gl.h - found
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include fstream
-- Looking for C++ include fstream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for C++ include ios
-- Looking for C++ include ios - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Looking for C++ include iomanip
-- Looking for C++ include iomanip - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- prefix: C:/Program Files (x86)/FreeCAD
-- bindir: bin
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: lib
-- cmake: 3.23.2
-- Found Doxygen: C:/msys64/mingw64/bin/doxygen.exe (found version "1.9.4") found components: doxygen dot
-- Found Python3: C:/msys64/mingw64/bin/python3.9.exe (found version "3.9.13") found components: Interpreter Development Development.Module Development.Embed
-- Found XercesC: C:/msys64/mingw64/lib/libxerces-c.dll.a (found version "3.2.3")
-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.2.12")
-- PyCXX found:
-- Headers: C:/msys64/home/Baba/FreeCAD/src
-- Sources: C:/msys64/home/Baba/FreeCAD/src/CXX
-- Version: 6.2.8
-- Found OCC: C:/msys64/mingw64/include/opencascade (found version "7.6.2")
-- -- Found OCE/OpenCASCADE version: 7.6.2
-- -- OCE/OpenCASCADE include directory: C:/msys64/mingw64/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: C:/msys64/mingw64/lib
-- Found OpenGL: opengl32
-- Found OpenGLU: glu32
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- Found MEDFile: C:/msys64/mingw64/include
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Boost: C:/msys64/mingw64/include (found suitable version "1.79.0", minimum required is "1.55") found components: filesystem program_options regex system thread date_time chrono atomic
-- Found SWIG: C:/msys64/mingw64/bin/swig.exe (found version "4.0.2")
-- Found Eigen3: C:/msys64/mingw64/include/eigen3 (found suitable version "3.4.0", minimum required is "2.91.0")
-- Found Freetype: C:/msys64/mingw64/lib/libfreetype.dll.a (found version "2.12.1")
-- Coin3D libraries found
-- Shiboken2Config: Using default python: .cp39-mingw_x86_64
-- Found PythonInterp: C:/msys64/mingw64/bin/python3.9.exe (found suitable version "3.9.13", minimum required is "3")
-- Found PythonLibs: C:/msys64/mingw64/lib/libpython3.9.dll.a (found suitable version "3.9.13", minimum required is "3")
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: 'C:/msys64/mingw64/include/python3.9'
-- SHIBOKEN_PYTHON_LIBRARIES computed to value: ''
-- libshiboken built for Release
-- ===============================================
PySide2 Python module found at C:/msys64/mingw64/lib/python3.9/site-packages/PySide2.
===============================================
-- Found Matplotlib: C:/msys64/mingw64/lib/python3.9/site-packages/matplotlib (found version "3.5.2")
-- Platform is 64-bit, set -D_OCC64
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- [E57] Revison ID: E57Format-2.2.1-AMD64-windows-mgw121
-- [E57] Building static library
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- C:/msys64/home/Baba/Build/src/Base/TypePy.cpp
-- C:/msys64/home/Baba/Build/src/Base/BaseClassPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/BoundBoxPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/CoordinateSystemPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/PersistencePy.cpp
-- C:/msys64/home/Baba/Build/src/Base/VectorPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/MatrixPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/RotationPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/PlacementPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/AxisPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/UnitPy.cpp
-- C:/msys64/home/Baba/Build/src/Base/QuantityPy.cpp
-- C:/msys64/home/Baba/Build/src/App/DocumentPy.cpp
-- C:/msys64/home/Baba/Build/src/App/DocumentObjectPy.cpp
-- C:/msys64/home/Baba/Build/src/App/ExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/App/ExtensionContainerPy.cpp
-- C:/msys64/home/Baba/Build/src/App/DocumentObjectExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/App/GroupExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/App/LinkBaseExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/App/DocumentObjectGroupPy.cpp
-- C:/msys64/home/Baba/Build/src/App/GeoFeaturePy.cpp
-- C:/msys64/home/Baba/Build/src/App/GeoFeatureGroupExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/App/MetadataPy.cpp
-- C:/msys64/home/Baba/Build/src/App/OriginGroupExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/App/PartPy.cpp
-- C:/msys64/home/Baba/Build/src/App/ComplexGeoDataPy.cpp
-- C:/msys64/home/Baba/Build/src/App/PropertyContainerPy.cpp
-- C:/msys64/home/Baba/Build/src/App/MaterialPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Fem/App/FemMeshPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Fem/App/FemPostPipelinePy.cpp
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- C:/msys64/home/Baba/Build/src/Mod/Fem/Gui/ViewProviderFemMeshPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Import/App/StepShapePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Mesh/App/EdgePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Mesh/App/FacetPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Mesh/App/MeshFeaturePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Mesh/App/MeshPointPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Mesh/App/MeshPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Mesh/Gui/ViewProviderMeshPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ArcPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ArcOfConicPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ArcOfCirclePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ArcOfParabolaPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BodyBasePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ConicPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/CirclePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ArcOfEllipsePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/EllipsePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/HyperbolaPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ArcOfHyperbolaPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ParabolaPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/OffsetCurvePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryIntExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryStringExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryBoolExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryDoubleExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometryCurvePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BoundedCurvePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TrimmedCurvePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeometrySurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/LinePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/LineSegmentPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/PointPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BezierCurvePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BSplineCurvePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/PlanePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ConePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/CylinderPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/SpherePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ToroidPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BezierSurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BSplineSurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/OffsetSurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/PlateSurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/RectangularTrimmedSurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/SurfaceOfExtrusionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/SurfaceOfRevolutionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/PartFeaturePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/AttachExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Part2DObjectPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/AttachEnginePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeCompoundPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeCompSolidPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeEdgePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeFacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeShellPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeSolidPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeVertexPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/TopoShapeWirePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/PrecisionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/BRepFeat/MakePrismPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/ArcOfCircle2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/ArcOfConic2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/ArcOfEllipse2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/ArcOfHyperbola2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/ArcOfParabola2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/BezierCurve2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/BSplineCurve2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Circle2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Conic2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Ellipse2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Geometry2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Hyperbola2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Curve2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Line2dSegmentPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Line2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/OffsetCurve2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/Geom2d/Parabola2dPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeomPlate/BuildPlateSurfacePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeomPlate/CurveConstraintPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/GeomPlate/PointConstraintPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/HLRBRep/HLRBRep_AlgoPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/HLRBRep/HLRToShapePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgoPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/HLRBRep/PolyHLRToShapePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Part/App/ShapeUpgrade/UnifySameDomainPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/PartDesign/App/BodyPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/PartDesign/App/FeaturePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/PartDesign/Gui/ViewProviderPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/CommandPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/PathPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/ToolPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/TooltablePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/FeaturePathCompoundPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/AreaPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/FeatureAreaPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/VoronoiPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/VoronoiCellPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/VoronoiEdgePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Path/App/VoronoiVertexPy.cpp
-- Found Boost: C:/msys64/mingw64/include (found version "1.79.0") found components: python39
-- found Boost: 1_79
-- boost-incude dirs are: C:/msys64/mingw64/include
-- boost-python lib is:
-- boost_LIBRARY_DIRS is: C:/msys64/mingw64/lib
-- Boost_LIBRARIES is: C:/msys64/mingw64/lib/libboost_python39-mt.dll.a
-- area module (for Path Workbench) will be installed to: lib
-- C:/msys64/home/Baba/Build/src/Mod/Path/PathSimulator/App/PathSimPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Points/App/PointsPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Robot/App/Robot6AxisPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Robot/App/TrajectoryPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Robot/App/WaypointPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Robot/App/RobotObjectPy.cpp
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/SketchObjectSFPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/SketchObjectPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/SketchGeometryExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/ExternalGeometryExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/GeometryFacadePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/ExternalGeometryFacadePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/ConstraintPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Sketcher/App/SketchPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Spreadsheet/App/SheetPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Spreadsheet/App/PropertySheetPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/Measure/App/MeasurementPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawPagePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewPartPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewSymbolPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawTemplatePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawParametricTemplatePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawSVGTemplatePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewClipPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewDimensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewDimExtentPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawHatchPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawGeomHatchPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewCollectionPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawProjGroupPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawProjGroupItemPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawViewAnnotationPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawLeaderLinePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawRichAnnoPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/GeomFormatPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/CenterLinePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/CosmeticEdgePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/CosmeticVertexPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawTilePy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawTileWeldPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/DrawWeldSymbolPy.cpp
-- C:/msys64/home/Baba/Build/src/Mod/TechDraw/App/CosmeticExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/DocumentPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/PythonWorkbenchPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/ViewProviderPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/ViewProviderDocumentObjectPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/ViewProviderExtensionPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/WorkbenchPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/SelectionObjectPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/LinkViewPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/ViewProviderLinkPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/AxisOriginPy.cpp
-- C:/msys64/home/Baba/Build/src/Gui/CommandPy.cpp
--
==============
Summary report
==============
-- Build type:
-- Compiler: C:/msys64/mingw64/bin/c++.exe (12.1.0)
-- Flags: -Wall -Wextra -Wno-write-strings -Wno-attributes
-- Standard: Requires C++17
-- Python: 3.9.13 [C:/msys64/mingw64/bin/python3.9.exe] [.cp39-mingw_x86_64]
-- PCL: not enabled
-- pybind11: not enabled
-- Boost: 1.79.0 (107900)
-- XercesC: 3.2.3 [C:/msys64/mingw64/lib/libxerces-c.dll.a] [C:/msys64/mingw64/include]
-- ZLIB: 1.2.12
-- PyCXX: 6.2.8 [C:/msys64/home/Baba/FreeCAD/src]
-- OCC: 7.6.2 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [C:/msys64/mingw64/lib] [C:/msys64/mingw64/include/opencascade]
-- SMESH: build internal
-- MEDFile: 4.1.1 [C:/msys64/mingw64/lib/libmedC.dll.a;C:/msys64/mingw64/lib/libmed.dll.a] [C:/msys64/mingw64/include]
-- HDF5: 1.12.2
-- VTK: 8.2.0
-- NETGEN: not enabled
-- SWIG: 4.0.2
-- Eigen3 3.4.0
-- Qt5Core: 5.15.3
-- Qt5Network: 5.15.3
-- Qt5Xml: 5.15.3
-- Qt5XmlPatterns: 5.15.3
-- Qt5Widgets: 5.15.3
-- Qt5PrintSupport: 5.15.3
-- Qt5OpenGL: 5.15.3
-- Qt5Svg: 5.15.3
-- Qt5UiTools: 5.15.3
-- Qt5Concurrent: 5.15.3
-- Qt5WebKitWidgets: 5.212.0
-- Designer plugin: not built per user request (BUILD_DESIGNER_PLUGIN)
-- Shiboken2: 5.15.4 [C:/msys64/mingw64/lib/cmake/Shiboken2-5.15.4] [C:/msys64/mingw64/include/shiboken2;C:/msys64/mingw64/include/python3.9]
-- PySide2: 5.15.4 [C:/msys64/mingw64/include/PySide2]
-- PySide2Tools: [C:/msys64/mingw64/bin/uic.exe] [C:/msys64/mingw64/bin/rcc.exe]
-- Freetype: 2.12.1
-- OpenGL: opengl32
-- OpenGLU: [glu32][]
-- Coin3D: 4.0.0 [C:/msys64/mingw64/lib/libCoin.dll.a] [C:/msys64/mingw64/include]
-- Pivy: 0.6.7
-- Matplotlib: 3.5.2
-- Rift: not enabled (BUILD_VR)
-- Doxygen: 1.9.4
-- Language: English
-- Coin3D_DOC: not found
=================================================
Now run 'cmake --build C:/msys64/home/Baba/Build' to build FreeCAD
=================================================
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/home/Baba/Build
They call me Baba, the bug master
Let us throw some stones into still waters
Yasser
Posts: 35 Joined: Tue Dec 15, 2020 4:28 pm
Post
by Yasser » Tue Jun 14, 2022 6:54 pm
Gift wrote: ↑ Tue Jun 14, 2022 6:27 pm
Yasser wrote: ↑ Tue Jun 14, 2022 5:21 pm
This is the final modification result without using LibPack
hdf5 configuration file exist in this directory so i added it to the path list
and the cmake goes flawless in
cmake ../freecad without errors or warnings
if i succeeded in building freecad i'll post full detail about how it's done for the beginners.
next step
cmake --build ./ is full of trouble
Code: Select all
list(APPEND CMAKE_PREFIX_PATH "C:/msys64/mingw64/lib/cmake")
This will be easier:
Code: Select all
cmake -DCMAKE_PREFIX_PATH=/mingw64/lib/cmake/ ../FreeCAD
Are you getting the same error message?
Code: Select all
...
C:/msys64/home/.../FreeCAD/FreeCAD/src/3rdParty/salomesmesh/inc/SMESH_MeshEditor.hxx:85:18: error: function 'SMESH_MeshEditor::ElemFeatures::ElemFeatures(SMDSAbs_ElementType, bool, bool)' definition is marked dllimport
...
edit:
Ok, you started a new topic.
edit2:
Should we (that mean you
) add the hint to wiki for the prefix path?
You confused me !! this post for hdf5
and the error message you wrote i made another post for it
and YES i got the same message as yours.
but in the --build step not the cmake step
this post was about hdf5 and cmake only not the builds step this is why i confused.
They call me Baba, the bug master
Let us throw some stones into still waters
Gift
Posts: 769 Joined: Tue Aug 18, 2015 10:08 am
Location: Germany, Sauerland
Post
by Gift » Tue Jun 14, 2022 7:04 pm
Sorry for the confusion. Please read now the other topic.
adrianinsaval
Veteran
Posts: 5552 Joined: Thu Apr 05, 2018 5:15 pm
Post
by adrianinsaval » Tue Jun 14, 2022 8:35 pm
Yasser wrote: ↑ Tue Jun 14, 2022 5:21 pm
This is the final modification result without using LibPack
hdf5 configuration file exist in this directory so i added it to the path list
and the cmake goes flawless in
cmake ../freecad without errors or warnings
if i succeeded in building freecad i'll post full detail about how it's done for the beginners.
next step
cmake --build ./ is full of trouble
Code: Select all
list(APPEND CMAKE_PREFIX_PATH "C:/msys64/mingw64/lib/cmake")
where did you had to add that?
Yasser
Posts: 35 Joined: Tue Dec 15, 2020 4:28 pm
Post
by Yasser » Tue Jun 14, 2022 8:45 pm
adrianinsaval wrote: ↑ Tue Jun 14, 2022 8:35 pm
Yasser wrote: ↑ Tue Jun 14, 2022 5:21 pm
This is the final modification result without using LibPack
hdf5 configuration file exist in this directory so i added it to the path list
and the cmake goes flawless in
cmake ../freecad without errors or warnings
if i succeeded in building freecad i'll post full detail about how it's done for the beginners.
next step
cmake --build ./ is full of trouble
Code: Select all
list(APPEND CMAKE_PREFIX_PATH "C:/msys64/mingw64/lib/cmake")
where did you had to add that?
In FreeCAD/CMakeList.txt
Code: Select all
# include local modules
include(cMake/CMakePrintHelpers.cmake)
include(CheckCXXCompilerFlag)
include(AddFileDependencies)
include(cMake/FreeCadMacros.cmake)
# include helper functions/macros
add_subdirectory(cMake/FreeCAD_Helpers)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake")
list(APPEND CMAKE_PREFIX_PATH "C:/msys64/mingw64/lib/cmake")
CompilerChecksAndSetups()
ConfigureCMakeVariables()
InitializeFreeCADBuildOptions()
CheckInterModuleDependencies()
FreeCADLibpackChecks()
SetupDoxygen()
They call me Baba, the bug master
Let us throw some stones into still waters
adrianinsaval
Veteran
Posts: 5552 Joined: Thu Apr 05, 2018 5:15 pm
Post
by adrianinsaval » Tue Jun 14, 2022 8:51 pm
we can't add that to the code though so I think Gift's solution is the more general one, how is that variable normally set in other systems? shouldn't msys set that?
Yasser
Posts: 35 Joined: Tue Dec 15, 2020 4:28 pm
Post
by Yasser » Tue Jun 14, 2022 9:06 pm
adrianinsaval wrote: ↑ Tue Jun 14, 2022 8:51 pm
we can't add that to the code though so I think Gift's solution is the more general one, how is that variable normally set in other systems? shouldn't msys set that?
And why you can't add?
and What other systems?
you are appending to the variable without deleting others (if exists).
also Gift's solution is very nice indeed.
They call me Baba, the bug master
Let us throw some stones into still waters
adrianinsaval
Veteran
Posts: 5552 Joined: Thu Apr 05, 2018 5:15 pm
Post
by adrianinsaval » Tue Jun 14, 2022 9:14 pm
for some reason I missed the fact you were appending not assigning
however I'm still not sure if it's the right way as that is a harcoded path, can't people install mingw in other paths? And doesn't that interfere if you want to make a msvc compilation but also have mingw installed? By other systems I mean linux, mac and windows with msvc