mdsumner / rmdal0

1 stars 0 forks source link

Buld against MDAL #1

Closed mdsumner closed 5 years ago

mdsumner commented 5 years ago

@mpadge if you have a chance at making this minimal example work? I've attempted in to build against https://github.com/lutraconsulting/MDAL which has in-built data sets and a simpl-ish looking version and info summary in the API. It's built with cmake which I have no clue about, and might be why I couldn't bash through it.

There's no great priority on this from my perspective, just a neat crossover if we can get it in R.

mdsumner commented 5 years ago

All good

mpadge commented 5 years ago

Wow, that looks awesome!

mdsumner commented 5 years ago

Actually I'm a bit hit and miss so far, can't get MDAL_driverCount() or MDAL_Version() to work, maybe some subtlety ?? Also confused about need for mdal_config hence currently hard coded as I tested things

mpadge commented 5 years ago

Did you try just wrapping the C++ src itself, and calling the functions directly from there? That would surely be the easiest, and possible coz of MIT license

mdsumner commented 5 years ago

I haven't, and not sure how to go about that - you copy all the contents of that folder into src/ yeah?

mpadge commented 5 years ago

It's structured a bit differently, so you'd have to move some of them around a bit, and change the internal header links. I'll give it go next week, if you can wait that long ...

mdsumner commented 5 years ago

Yeah no worries!