Skip to content

Commit ff5603a

Browse files
authored
Update instructions to deal with Medfile
1 parent 2c3a4c1 commit ff5603a

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

technical/libpack.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ structure, so the final LibPack contains several different types of installation
4141
the top level of the LibPack
4242
* **[Boost](https://boost.org)** -- this is split into its headers and libraries:
4343
- Many Boost libraries are header-only, but FreeCAD does require several compiled libraries
44+
- Create a file either in your home directory, or in the toplevel boost src directory, called user-config.jam and
45+
in it specify the path and version of the Python interpreter installed above. For example:
46+
```
47+
using python : 3.11 : "C:/path/to/libpack/bin" : "C:/path/to/libpack/bin/Include" : "C:/path/to/libpack/bin/libs" ;
48+
```
4449
- Follow the Boost instructions for compiling: the easiest is to run `bootstrap` from a developer's command prompt
4550
- Copy the libraries from *BOOST_ROOT\stage\lib* into *LIBPACK\lib*
4651
- Copy the entire *BOOST_ROOT\boost* directory into *LIBPACK\include*
@@ -49,7 +54,7 @@ structure, so the final LibPack contains several different types of installation
4954
- Set CMAKE_INSTALL_PATH to the top of the *LIBPACK*
5055
- Add include directory to find the Boost include files by editing CXXFLAGS and adding "/I C:\path\to\libpack\include" to it
5156
- Do not build the Tests or Documentation
52-
- In Visual Studio, run the ALL_BUILD and then INSTALL targets in Release mode.
57+
- In Visual Studio, run the ALL_BUILD and then INSTALL targets in Release mode, and then again in Debug mode.
5358
* **[Quarter](https://www.coin3d.org)** -- obtained by cloning and compiling https://github.com/coin3d/quarter
5459
- Set Coin_DIR to *LIBPACK/lib/cmake/Coin-4.0.1* (or the current version, if it is not 4.0.1)
5560
- Set Qt6_DIR to *LIBPACK/lib/cmake/Qt6*
@@ -157,6 +162,14 @@ structure, so the final LibPack contains several different types of installation
157162
- Set ZLIB_INCLUDE_DIR and ZLIB_LIBRARY_RELEASE
158163
- Set CMAKE_INSTALL_PREFIX to *LIBPACK*
159164
- Configure and Generate, then open in Visual Studio, switch to Release, and build ALL_BUILD and INSTALL
165+
* **[MEDFile](https://www.salome-platform.org)**
166+
- Download the source package from http://files.salome-platform.org/Salome/other/med-4.1.1.tar.gz
167+
- Activate MEDFILE_USE_UNICODE
168+
- The current Medfile CMake scripts assert a dependence on HDF5 v1.10.x -- the error message claims to be
169+
searching for HDF5 >= 1.10.2, but that is not what is actually implemented, requiring instead *exactly*
170+
minor version 10. The difference between 1.10 and 1.14 from Medfile's perspective seems to be various calls
171+
to file information functions, which now require an additional "fields" parameter. Adding `H5O_INFO_ALL` for
172+
this parameter lets compilation succeed.
160173
* **[GMSH](https://gmsh.info)**
161174
- Download the desired version of the Gmsh source code
162175
- Set the path to FreeType
@@ -179,3 +192,16 @@ structure, so the final LibPack contains several different types of installation
179192
* **[Xerces-C](https://xerces.apache.org/xerces-c/)**
180193
- Set ICU_INCLUDE_DIR to *LIBPACK/include/unicode*
181194
- Set CMAKE_INSTALL_PREFIX to *LIBPACK*
195+
- Configure and Generate, then open in Visual Studio, switch to Release, and build ALL_BUILD and INSTALL
196+
- Switch to Debug and run ALL_BUILD and INSTALL again
197+
* **[libfmt](https://github.com/fmtlib/fmt)**
198+
- Clone https://github.com/fmtlib/fmt
199+
- Check out the desired tag (e.g. `git checkout 10.0.0`)
200+
- Set CMAKE_INSTALL_PREFIX to *LIBPACK*
201+
- Turn off Test
202+
- Configure and Generate, then open in Visual Studio, switch to Release, and build ALL_BUILD and INSTALL
203+
* **[Eigen3](https://gitlab.com/libeigen/eigen)**
204+
- Clone https://gitlab.com/libeigen/eigen
205+
- Deactivate BUILD_TESTING and BUILD_DOC
206+
- Set CMAKE_INSTALL_PREFIX to *LIBPACK*
207+
- Configure and Generate, then open in Visual Studio, switch to Release, and build ALL_BUILD and INSTALL

0 commit comments

Comments
 (0)