Closed haz closed 2 years ago
Hi again,
I need a binary for both Mac and Windows users so I am also trying to get the port to work.
I created a branch here. It required a few changes but so far it seems to work for Windows and linux. I asked a colleague with a Mac to test whether the changes compile for him too. Either way, if you're interested I can open a pull request once I'm done?
Absolutely, thanks! May I ask why you aren't considering d4 instead, though? By all accounts, it seems to outperform D#...
Absolutely, thanks! May I ask why you aren't considering d4 instead, though? By all accounts, it seems to outperform D#...
Sure, to provide some context: I'm trying to replace the previous dsharp binary used in problog to incorporate the new CNF parsing. We already support the SDD package (via PySDD) and there is code to support a c2d binary but it's not included due to licensing, I think. ProbLog will use PySDD when it's installed (no windows support) and otherwise will fall back to dsharp (or c2d if the user included the binary themself).
When incorporating model counters in our codebase we need to consider licensing and each platform should have at least one model counter working out of the box, such that users only need to pip install problog
without installing more dependencies (themself). This role is currently served by dsharp so it seemed easier to just replace the bugged binary.
We could consider adding D4 support, but can't include binaries without checking licensing, dependencies etc first.
Ah, entirely makes sense. The shift in licensing of D# shouldn't cause trouble -- it moved to something strictly more permissive.
Cheers!
Took a while to get around to it, and had some issues along the way, but it seems to work now. Pull request: https://github.com/QuMuLab/dsharp/pull/17
Closed with #17
This branch is a start for porting DSHARP to the Mac:
Currently, it still has the following issue:
Below is the new error message, it now complains about missing sys/sysinfo.h. This looks like a Mac issue, so I used google and found this page:
An initial attempt fixes these errors:
https://bitbucket.org/cmungall/dsharp