Skip to content

memilio-simulation: macOS import fails due to incorrect runtime library lookup (RPATH) #1549

@HenrZu

Description

@HenrZu

Bug description

On macOS, memilio-simulation can build/install successfully, but importing memilio.simulation may fail at runtime because the generated Python extension cannot locate libmemilio.dylib.

The issue is caused by incorrect runtime library search path handling for macOS in the CMakelist. It ends up with Linux-style path expectations instead of the correct macOS relative paths.

Version

Mac

To reproduce

pip install .
python -c "import memilio.simulation"

Relevant log output

Add any relevant information, e.g. used compiler, screenshots.

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::bugBugs found in the software

Type

Projects

Status

✅ Done (Sprint)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions