Skip to content

Commit 9dc74bc

Browse files
committed
Update to 3.1.1.2
Fixes placement of VTK python module and adds Fortran compiler information so the build doesn't lock if it's installed but not configured. Also corrects detection of opencamlib on rebuild.
1 parent a45434d commit 9dc74bc

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

compile_all.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ def get_cmake_options(self) -> List[str]:
145145
"-D CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=FALSE", # Never use system packages, always use only the libpack
146146
"-D CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=TRUE", # Same as above?
147147
"-D CMAKE_CXX_STANDARD=20",
148+
"-T fortran=ifx",
149+
"-D CMAKE_Fortran_COMPILER='C:/Program Files (x86)/Intel/oneAPI/compiler/2025.0/bin/ifx.exe'", # Intel Fortran is called ifx now
148150
f"-D BISON_EXECUTABLE={self.bison_path}",
149151
f"-D BOOST_ROOT={self.install_dir}",
150152
"-D BUILD_DOC=No",
@@ -172,6 +174,8 @@ def get_cmake_options(self) -> List[str]:
172174
f"-D pybind11_DIR={self.install_dir}/share/cmake/pybind11",
173175
f"-D Python_ROOT_DIR={self.install_dir}/bin",
174176
f"-D Python_DIR={self.install_dir}/bin",
177+
f"-D Python3_ROOT_DIR={self.install_dir}/bin",
178+
f"-D Python3_DIR={self.install_dir}/bin",
175179
"-D Python_FIND_REGISTRY=NEVER",
176180
f"-D Qt6_DIR={self.install_dir}/lib/cmake/Qt6",
177181
f"-D SWIG_EXECUTABLE={self.install_dir}/bin/swig" + to_exe(),
@@ -737,7 +741,11 @@ def build_vtk(self, _=None):
737741
if os.path.exists(os.path.join(self.install_dir, "share", "licenses", "VTK")):
738742
print(" Not rebuilding VTK, it is already in the LibPack")
739743
return
740-
extra_args = ["-D VTK_WRAP_PYTHON=YES", "-D VTK_MODULE_ENABLE_VTK_WrappingPythonCore=YES"]
744+
extra_args = [
745+
"-D VTK_WRAP_PYTHON=YES",
746+
"-D VTK_MODULE_ENABLE_VTK_WrappingPythonCore=YES",
747+
"-D VTK_PYTHON_SITE_PACKAGES_SUFFIX=bin/Lib/site-packages/",
748+
]
741749
if sys.platform.startswith("win32"):
742750
extra_args.append(
743751
"-D VTK_MODULE_ENABLE_VTK_IOIOSS=NO", # Workaround for bug in Visual Studio MSVC 143
@@ -1001,7 +1009,7 @@ def build_medfile(self, _: None):
10011009
if os.path.exists(os.path.join(self.install_dir, "include", "medfile.h")):
10021010
print(" Not rebuilding medfile, it is already in the LibPack")
10031011
return
1004-
extra_args = ["-D MEDFILE_USE_UNICODE=On"]
1012+
extra_args = ["-D MEDFILE_USE_UNICODE=On", "-D MEDFILE_BUILD_TESTS=OFF"]
10051013
old_strict_mode = self.strict_mode
10061014
self.strict_mode = False
10071015
self._build_standard_cmake(extra_args)
@@ -1112,9 +1120,11 @@ def build_yamlcpp(self, _: None):
11121120

11131121
def build_opencamlib(self, _: None):
11141122
if self.skip_existing:
1115-
os.path.join(self.install_dir, "bin", "Lib", "site-packages", "opencamlib")
1116-
print(" Not rebuilding opencamlib, it is already in the LibPack")
1117-
return
1123+
if os.path.exists(
1124+
os.path.join(self.install_dir, "bin", "Lib", "site-packages", "opencamlib")
1125+
):
1126+
print(" Not rebuilding opencamlib, it is already in the LibPack")
1127+
return
11181128
extra_args = ["-D BUILD_CXX_LIB=OFF", "-D BUILD_PY_LIB=ON", "-D BUILD_DOC=OFF"]
11191129
self._build_standard_cmake(extra_args)
11201130

config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"FreeCAD-version":"1.1.0",
3-
"LibPack-version":"3.1.1",
3+
"LibPack-version":"3.1.1.2",
44
"content": [
55
{
66
"name":"python",
@@ -21,6 +21,7 @@
2121
"numpy==1.26.4",
2222
"opencv-python==4.10.0.84",
2323
"packaging==24.2",
24+
"pip==25.0.1",
2425
"pillow==11.0.0",
2526
"ply==3.11",
2627
"pycollada==0.8",
@@ -69,9 +70,7 @@
6970
{
7071
"name":"coin",
7172
"git-repo":"https://github.com/coin3d/coin",
72-
"git-ref":"master",
73-
"patches": ["patches/coin-01-update_cmake_min.patch",
74-
"patches/coin-02-update_cmake_min.patch"]
73+
"git-ref":"master"
7574
},
7675
{
7776
"name":"quarter",
@@ -107,7 +106,8 @@
107106
{
108107
"name":"vtk",
109108
"git-repo":"https://gitlab.kitware.com/vtk/vtk.git",
110-
"git-ref":"v9.4.1"
109+
"git-ref":"v9.4.2",
110+
"note": "checkout is failing, have to manually clone for now"
111111
},
112112
{
113113
"name":"harfbuzz",

patches/coin-01-update_cmake_min.patch

Lines changed: 0 additions & 6 deletions
This file was deleted.

patches/coin-02-update_cmake_min.patch

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)