Package Details: freecad-git 1.1.0.41361.g774ec2cc93-1

Git Clone URL: https://aur.archlinux.org/freecad-git.git (read-only, click to copy)
Package Base: freecad-git
Description: A general purpose 3D CAD modeler - git checkout
Upstream URL: https://www.freecad.org/
Licenses: LGPL
Conflicts: freecad, freecad-appimage, freecad-appimage-git
Provides: freecad
Submitter: gborzi
Maintainer: greyltc (adrianinsaval)
Last Packager: adrianinsaval
Votes: 107
Popularity: 0.25
First Submitted: 2012-03-03 13:46 (UTC)
Last Updated: 2025-04-22 00:51 (UTC)

Pinned Comments

adrianinsaval commented on 2023-03-12 14:50 (UTC)

If the check fails there is little I can do about it as it most likely needs to be fixed upstream, in such cases report those upstream (maybe wait a day or two as sometimes it's quickly solved upstream) or skip the check with makepkg --nocheck if you don't care about the functionality that is being reported as failing in the check.

Latest Comments

1 2 3 4 5 6 .. 59 Next › Last »

fermino commented on 2025-07-01 18:02 (UTC)

I'm experiencing the following error (in the check stage). I have found this conversation but I'm not sure how to fix it:

https://github.com/FreeCAD/FreeCAD/pull/7152

[6447/6447] Linking CXX shared library Mod/TechDraw/TechDrawGui.so
==> Starting check()...
Traceback (most recent call last):
  File "<string>", line 39, in <module>
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/Test/TestApp.py", line 85, in TestText
    s = unittest.defaultTestLoader.loadTestsFromName(s)
  File "/usr/lib/python3.13/unittest/loader.py", line 192, in loadTestsFromName
    test = obj()
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/Test/TestApp.py", line 65, in All
    suite.addTest(tryLoadingTest(test))
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/Test/TestApp.py", line 38, in tryLoadingTest
    return unittest.defaultTestLoader.loadTestsFromName(testName)
  File "/usr/lib/python3.13/unittest/loader.py", line 137, in loadTestsFromName
    module = __import__(module_name)
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/TestArch.py", line 26, in <module>
    from bimtests.TestArchRoof import TestArchRoof
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/bimtests/TestArchRoof.py", line 28, in <module>
    import Arch
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/Arch.py", line 67, in <module>
    from ArchCommands import *
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/ArchCommands.py", line 37, in <module>
    import ArchComponent
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/ArchComponent.py", line 46, in <module>
    import ArchIFC
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/ArchIFC.py", line 34, in <module>
    import ArchIFCSchema
  File "/home/build/.cache/yay/freecad-git/src/build-makepkg/Mod/BIM/ArchIFCSchema.py", line 42, in <module>
    with open(os.path.join(FreeCAD.getResourceDir(), "Mod", "BIM", "Presets",
<class 'FileNotFoundError'>: [Errno 2] No such file or directory: '/usr/share/freecad/Mod/BIM/Presets/ifc_contexts_IFC4.json'
FreeCAD 1.1.0, Libs: 1.1.0devR42464 (Git)
(C) 2001-2025 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
import TestFemImport 
import TestObjectExistance 
import TestFemCommon 
import TestObjectCreate 
import TestObjectType 
import TestObjectOpen 
import TestMaterialUnits 
import TestMeshCommon 
import TestMeshEleTetra10 
import TestMeshGroups 
import TestResult 
import TestCcxTools 
import TestSolverElmer 
import TestSolverZ88 
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: freecad-git-exit status 4

hcdlt commented on 2025-04-28 07:02 (UTC)

@xorly, @adrianinsaval:

While checking the changes of that vtk library's PKGBUILD in extra-staging, I noticed some interesting cmake variable settings that got added for hdf5. I added them here as well and just now managed to start the build of freecad-git with this patch:


diff --git a/PKGBUILD b/PKGBUILD
index ded1de0..7cc3e80 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -77,6 +77,9 @@ prepare() {
 build() {
   cmake \
     -B build-makepkg \
+    -D HDF5_NO_FIND_PACKAGE_CONFIG_FILE=ON \
+    -D HDF5_C_COMPILER_EXECUTABLE=h5hlcc \
+    -D HDF5_CXX_COMPILER_EXECUTABLE=h5hlc++ \
     -D BUILD_FLAT_MESH=ON \
     -D BUILD_DESIGNER_PLUGIN=ON \
     -D FREECAD_QT_VERSION=6 \

hcdlt commented on 2025-04-28 06:46 (UTC) (edited on 2025-04-28 06:48 (UTC) by hcdlt)

@xorly, @adrianinsaval:

I have the same issue with building freecad-git.

I'll elaborate a little with my own findings. I use the hdf5-openmpi package. Setting the cmake variable

HDF5_FIND_DEBUG=ON
before build gives me


-- Found HDF5: hdf5-shared (found version "1.14.6") found components: C HL
-- HDF5_DIR: /usr/lib/cmake/hdf5
-- HDF5_DEFINITIONS: 
-- HDF5_INCLUDE_DIRS: /usr/include
-- HDF5_LIBRARIES: hdf5-shared
-- HDF5_HL_LIBRARIES: hdf5_hl-shared
-- HDF5_C_DEFINITIONS: 
-- HDF5_C_INCLUDE_DIR: 
-- HDF5_C_INCLUDE_DIRS: /usr/include
-- HDF5_C_LIBRARY: /usr/lib/libhdf5.so.310.5.1
-- HDF5_C_LIBRARIES: hdf5-shared
-- HDF5_C_HL_LIBRARY: /usr/lib/libhdf5_hl.so.310.0.6
-- HDF5_C_HL_LIBRARIES: hdf5_hl-shared
-- Defined targets (if any):
-- ... hdf5::hdf5
-- ... hdf5-shared
-- ... hdf5::hdf5_hl
-- ... hdf5_hl-shared
-- ... hdf5_cpp-shared
-- ... hdf5_hl_cpp-shared
-- ... hdf5_fortran-shared
-- ... hdf5_hl_fortran-shared

which to my untrained eye looks like indeed the hdf5 hl libraries were found, but for some reason not recognized correctly. Querying the files of that hdf5-openmpi package also confirms that all the hl libraries for c, c++ and fortran are in fact there.

I also updated vtk from the version in extra (9.4.2-2) to the one from extra-staging (9.4.2-3), which changed the discovery mechanism of hdf5 slightly. The error remains the same though...

xorly commented on 2025-04-26 09:14 (UTC)

Hi, I have problem with build. More precisely with cmake configure fails on VTK/HDF5. Any ideas what could be wrong?

...
-- VTK components: CommonCore;CommonDataModel;FiltersVerdict;IOXML;FiltersCore;FiltersGeneral;IOLegacy;FiltersExtraction;FiltersSources;FiltersGeometry;IOMPIParallel;ParallelMPI;hdf5;FiltersParallelDIY2;RenderingCore;InteractionStyle;RenderingFreeType;RenderingOpenGL2
-- Found JsonCpp: /usr/lib/libjsoncpp.so (found suitable version "1.9.6", minimum required is "0.7.0")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
  Could NOT find HDF5 (missing: HDF5_HL_LIBRARIES) (found version "1.14.6")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
  /usr/lib/cmake/vtk/patches/99/FindHDF5.cmake:1006 (find_package_handle_standard_args)
  /usr/lib/cmake/vtk/VTK-vtk-module-find-packages.cmake:1014 (find_package)
  /usr/lib/cmake/vtk/vtk-config.cmake:170 (include)
  cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:59 (find_package)
  CMakeLists.txt:94 (SetupSalomeSMESH)

It looks like HDF5_HL_LIBRARIES is not being set for some reason...

bartus commented on 2025-04-16 08:01 (UTC) (edited on 2025-04-16 11:30 (UTC) by bartus)

@adrianinsaval @rbachl: missing pcl, pybind11 from the depends[] array; won't build with cmake>=4.0 without the -DCMAKE_POLICY_VERSION_MINIMUM=3.5 flag; freecad-thumbnailer is now installed in /usr/share/freecad/bin and fcinfo is now correctly installed in /usr/bin: http://0x0.st/8f01.diff

rbachl commented on 2025-04-05 06:03 (UTC)

CMake Error at cMake/FreeCAD_Helpers/SetupPCL.cmake:11 (find_package): By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "PCL", but CMake did not find one.

Could not find a package configuration file provided by "PCL" with any of the following names:

PCLConfig.cmake
pcl-config.cmake

Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR" to a directory containing one of the above files. If "PCL" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:82 (SetupPCL)

-- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred in build().

drmacro commented on 2025-03-27 18:41 (UTC)

@random-archer

I just ran the build with your PKGBUILD.

The build does complete, but launching freecad fails.

I added an issue with log output on your github.

random-archer commented on 2025-03-27 16:14 (UTC)

Here is an updated working config:
https://github.com/random-cadder/freecad-aur

xiota commented on 2025-03-25 05:47 (UTC)

@random-archer AUR packages should not have ccache. It is set up by users in makepkg.conf.

random-archer commented on 2025-03-18 00:30 (UTC) (edited on 2025-03-18 00:31 (UTC) by random-archer)

As of 2025-03-17, there are missing make dependencies: