conda-forge / conda-forge/microed-tools-feedstock
microED tools on OSX silicon
- Dominant language
- Shell
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Solution to issue cannot be found in the documentation.
- [x] I checked the documentation.
### Issue
Dear All,
I managed to build the tools from source on osx silicon taking the following steps:
Issue 1: DocBook XSL stylesheets not found
doc/CMakeLists.txt defaults BUILD_MANPAGES=ON, which requires DocBook XSL stylesheets registered in xmlcatalog. Not available on this system.
Fix: Disable manpage docs at configure time:
Issue 2: Missing libarchive (pkg-config)
src/CMakeLists.txt requires libarchive>=3.0.2 via pkg_check_modules.
Fix:
It's keg-only, so its .pc file isn't on the default pkg-config path — add it explicitly (see combined command below).
Issue 3: Missing libxml-2.0 (pkg-config)
Same issue — Homebrew's libxml2 is keg-only and not on the default pkg-config path.
Fix:
Issue 4: Missing nlopt
Issue 5: Stale x86_64 libraries picked up
An old Intel Homebrew (local) and MacPorts (sw) were on the search path, risking arch-mismatched libs (e.g. libtiff). Passing CMAKE_PREFIX_PATH pointed explicitly at the arm64 Homebrew opt paths fixed this — no source changes needed, just correct configure-time paths.
Final working configure command: mkdir build && cd build
PKG_CONFIG_PATH="/opt/homebrew/opt/libarchive/lib/pkgconfig:/opt/homebrew/opt/nlopt/lib/pkgconfig:/opt/homebrew/opt/libxml2/lib/pkgconfig" \
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/path/to/install \
-DBUILD_MANPAGES=OFF \
-DCMAKE_PREFIX_PATH="/opt/homebrew/opt/libarchive;/opt/homebrew/opt/nlopt;/opt/homebrew/opt/pandoc;/opt/homebrew/opt/libxml2" \
..
cmake --build . -j"$(sysctl -n hw.ncpu)"
cmake --install .
Suggestion for devs: Consider documenting these Homebrew deps (libarchive, libxml2, nlopt, pandoc, libxslt) and the keg-only pkg-config path requirement in the README/INSTALL docs, since none of this is obvious from a fresh cmake invocation on macOS.
### Installed packages
```shell
-bash: conda: command not found
```
### Environment info
```shell
-bash: conda: command not found
```
Contributor guide
Assessment
This issue has not been assessed yet.