Skip to content

Add static openbabel 3.1.1 and eigen3 - #47

Merged
jeroen merged 3 commits into
masterfrom
openbabel
Nov 9, 2026
Merged

jeroen merged 3 commits into
masterfrom
openbabel

Conversation

@jeroen

@jeroen jeroen commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Adds a static-only build of openbabel 3.1.1, adapted from the msys2 PKGBUILD, to fix ChemmineOB on Windows (failing job).

Changes from upstream:

  • BUILD_SHARED=OFF, so all formats and plugins are compiled into libopenbabel.a
  • No OpenMP. libxml2, Cairo, Boost, wxWidgets, maeparser and coordgen are all disabled
  • Runtime dependency is only zlib. eigen3 and rapidjson are header-only build deps
  • Bundled InChI is enabled (WITH_STATIC_INCHI=ON) and installs as libinchi.a. The .pc file now links -lopenbabel -linchi -lz
  • Kept pdbqtformat, which upstream's 001 patch drops: in static builds EnableStaticPlugins() references thePDBQTFormat, so removing it would leave an undefined symbol

Also fixes a clang (lld) link error: the bundled InChI defines its own _strdup etc., which clash with the CRT on Windows (patch 003).

Also adds eigen3 5.0.1 (from msys2), packaged header-only: Eigen's own BLAS/LAPACK libraries are not built, so it has no fortran/doxygen build deps and no runtime deps.

Not built locally; this PR is the first CI build.

ChemmineOB's Makevars.win will still need updating to use this library.

🤖 Generated with Claude Code

jeroen and others added 3 commits November 8, 2026 23:41
Static-only build with minimal runtime dependencies (zlib only), no OpenMP.
Bundled InChI is enabled; eigen3 and rapidjson are header-only build deps.
Needed for ChemmineOB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes 'ld.lld: error: _strdup was replaced' on clang64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copied from msys2, but without building Eigen's own BLAS/LAPACK
libraries, so no fortran/doxygen build deps and no runtime deps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeroen jeroen changed the title Add static openbabel 3.1.1 Add static openbabel 3.1.1 and eigen3 Nov 9, 2026
@jeroen
jeroen merged commit 8d80c70 into master Nov 9, 2026
8 checks passed
@jeroen
jeroen deleted the openbabel branch November 9, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant