Help wanted from a Mono developer

128 views
Skip to first unread message

noah hart

unread,
May 16, 2012, 9:51:25 AM5/16/12
to csharp...@googlegroups.com
Can someone who uses C#SQLite on mono take a look at the issue here?

http://code.google.com/p/csharp-sqlite/issues/detail?id=158

Thank you,

Noah

Ruffin Bailey

unread,
May 16, 2012, 10:16:34 AM5/16/12
to noah hart, csharp...@googlegroups.com
On Wed, May 16, 2012 at 9:51 AM, noah hart <noah...@gmail.com> wrote:
Can someone who uses C#SQLite on mono take a look at the issue here?

http://code.google.com/p/csharp-sqlite/issues/detail?id=158

Done.  And note that it's Mono on OS X.  Compiling isn't difficult, just a few hacks around the casts, but then you're right back to the problem I reported earlier when you run the tests.  Most of those are just warnings for vars declared and unused.

Ruffin Bailey

Noah Hart

unread,
May 16, 2012, 11:15:52 AM5/16/12
to Ruffin Bailey, csharp...@googlegroups.com
Can you supply the compiler settings on Mono to suppress the warnings?

Noah

stewart...@gmail.com

unread,
Jul 19, 2012, 5:27:47 AM7/19/12
to csharp...@googlegroups.com
I have csharp-sqlite both building and running successfully with Mono on Mac OS X, without breaking the Windows build (i.e., I can compile on Windows and use on Mac OS X, and visa versa).

I need to think a bit more about db file locking on Linux/Unix and Mac OS X, but for now it is good if you don't have 2 processes writing to the DB simultaneously on those platforms.

I *could* supply settings to hide the build warnings - but it is probably better to fix the causes instead. Many of the warnings are for genuinely unused variables and are trivial to fix.  Many warnings report unreachable code and most of these can be fixed by tweaking the #if/#endif constructs. Locally, I've made a start on both of those clean-up operations.

I've requested permission from my employer to push these patches upstream, and am just waiting for an answer now.

Stewart.

flipm0de

unread,
Aug 9, 2012, 6:12:26 PM8/9/12
to csharp...@googlegroups.com
Hey Steward, do you mind sharing how you got the whole thing working in mono too? Are your changes in the latest code or have you changed just the build variables? I am trying to use the compiled assembly on both .NET (Windows) and Mono (Linux, OS X) but so far I got some runtime errors on Linux while it was working fine on  Windows...

Stewart

unread,
Aug 10, 2012, 5:24:17 AM8/10/12
to csharp...@googlegroups.com
Hi,

In a nutshell, Community.Sqlite's os_win_c.cs file doesn't work on Linux or Mac OS X. There are also some places where assumptions are made about filenames (e.g., directory separator characters) that aren't correct for those platforms.

I am still waiting for official permission to share my fixes publicly. In the meantime, contact me directly and I'll give some tips.

Regards,
Stewart.
Reply all
Reply to author
Forward
0 new messages