APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
136 stars 164 forks source link

We should try to maintain cross-platform capabilities #194

Closed zur003 closed 9 years ago

zur003 commented 9 years ago

I just attempted to build and run ApsimX on Ubuntu with Mono, and came across several bits of code that were not written with cross-platform capabilities in mind (e.g., hard-coding of '\' as a path separator). These should be eliminated. Also, the PDFSharp stuff may need a bit of tinkering to work well on Linux platforms; see http://forum.pdfsharp.net/viewtopic.php?f=4&t=1206 for a discussion of this.

hol353 commented 9 years ago

Agreed re the cross platform bits. I wasn't aware that PDFSharp wouldn't work on Ubuntu. We'll have to look into it.

zur003 commented 9 years ago

OK. I got PDFSharp to work on Ubuntu using the patches available from https://github.com/tpokorra/openpetragit/tree/master/csharp/ThirdParty/PDFSharp. It doesn't render terribly well - I think it has trouble working out the font metrics - but at least it produces a result rather than crashing.

hol353 commented 9 years ago

Closing. Addition specific improvements to how PDFSharp works on MONO can be made under a new issue.