Menu

Works on Linux!

Support
yutzhead
2015-05-20
2020-07-30
  • yutzhead

    yutzhead - 2015-05-20

    IAW Scan 2 on Linux

    Looks a bit weird because it uses WinForms instead of GTK#, but it actually does run on Linux when compiled with Monodevelop.

    All it takes is to modify the csproj file like this: https://github.com/gentoo/dotnet/blob/master/dev-util/monodevelop/files/gentoo-dotnet-issue-30.patch

    I didn't test it yet, but I'd give it a go.

     
  • yutzhead

    yutzhead - 2015-05-20

    Just one other minor problem: There is no winmm.dll, so you'll have to replace

    [DllImport("winmm.dll", EntryPoint = "timeBeginPeriod", SetLastError = true)]
    private static extern uint TimeBeginPeriod(uint uMilliseconds);
    
    [DllImport("winmm.dll", EntryPoint = "timeEndPeriod", SetLastError = true)]
    private static extern uint TimeEndPeriod(uint uMilliseconds);
    

    with

    private static void TimeBeginPeriod(long ms) 
    {
    Stopwatch t = new Stopwatch();
    t.Start();
    while(t.ElapsedMilliseconds < ms) { }
    t.Stop();
    }
    
    private static void TimeEndPeriod(long ms) 
    {
    TimeBeginPeriod(ms);
    }
    

    in frmMain.cs. Other than that, the simulation runs perfect.

     

    Last edit: yutzhead 2015-05-20
  • yutzhead

    yutzhead - 2015-05-20

    Full source code that compiles with Monodevelop after registering ZedGraph (copy folder to /usr/lib/mono/gac/ and run gacutil -i /usr/lib/mono/gac/zedgraph_dll_v5.1.5/ZedGraph.dll)

     

    Last edit: yutzhead 2015-05-20
  • TzOk

    TzOk - 2015-10-22

    It compiles (I was aware of that a long time ago), but does not work. It fails when tries to set non-standard bitrate on the COM port (no data is sent/received). Only standard bit-rates are possible to set under MONO (at least it were, when I was trying this last time, few years ago).

     
  • Anonymous

    Anonymous - 2023-02-11
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.