<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/dgtdrv/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/dgtdrv/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 03 Jan 2019 22:37:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dgtdrv/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/dgtdrv/wiki/Home/?limit=25#4b4d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I've built this and successfully connected my DGT board to SCID. No need to patch SCID. The input driver code is in the current version already. (Tools-&amp;gt;connect hardware--&amp;gt;)&lt;/p&gt;
&lt;p&gt;dgtnix (dgtnix.sourceforge.net) built without problems on Ubuntu 18.10, but the dgtdrv was a bit harder.  Since it's not updated since 2009 it's to be expected that things have changed. Anyway, after some debugging I got it to work...&lt;/p&gt;
&lt;p&gt;Maybe it's time to update the code. It's really nice to be able to connect the DGT board to SCID on linux. This code is great and deserves a little attention from someone who knows what they are doing.&lt;/p&gt;
&lt;h1 id="building-on-ubuntu"&gt;Building on Ubuntu:&lt;/h1&gt;
&lt;p&gt;In the makefile the -ldgtnix needs to be stated after libs. If not it wont build on ubuntu distros, but create undefined reference errors about dgtnix even though it's there. Strangely it still works on debian distros. &lt;br/&gt;
So changing the Makefile makes it work in ubuntu to. Look in the bottom of the makefile and move the -ldgtnix parameter like so:&lt;/p&gt;
&lt;p&gt;-$(CXX)  -lpthread -I$(INCLUDES) -L$(LIBS) $(SOURCES) -ldgtnix -o $(TARGET).$(PLATFORM) &lt;/p&gt;
&lt;p&gt;Maybe the best solution would be to port the configuration to autoconf.&lt;/p&gt;
&lt;h1 id="the-binary-goes-sigsegv-after-initialization"&gt;The binary goes SIGSEGV after initialization.&lt;/h1&gt;
&lt;p&gt;The compiled binary throws a SIGSEGV after initializing the board. This happens when PrintFEN() is calling WriteInfoString. For some reason InfoStr becomes (null). Just disabling writing to the log fixes it. &lt;/p&gt;
&lt;p&gt;va_list ap;&lt;br/&gt;
        va_start(ap, InfoStr);&lt;br/&gt;
                vfprintf(stdout, InfoStr, ap);&lt;br/&gt;
//    &lt;br/&gt;
//      Debug:&lt;br/&gt;
//      When printing the FEN, the second vfprintf gets a null an causes a SIGSEGV.&lt;br/&gt;
//      Haven't found the root cause.&lt;br/&gt;
//      vfprintf(LOGFILE, InfoStr, ap);&lt;br/&gt;
        va_end(ap);&lt;/p&gt;
&lt;p&gt;Even more strange. When debugging I got help and threw a fprintf to stderr in PrintFEN() just before WriteInfoString. This then made the SIGSEGV go away, and also fixed things, but the log just reads "INFO FEN (null)" If someone wants to fix it this way this is what I did that fixed it:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    fprintf(stderr, "pos is %d and FEN is '%s'\n", pos, FEN);
    WriteInfoString("FEN %s\n", FEN);
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;It works, but it's not obvious to me why...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lars Christian</dc:creator><pubDate>Thu, 03 Jan 2019 22:37:57 -0000</pubDate><guid>https://sourceforge.neta150ff14b4b0c962aad4d93ca8ed129b48ed19bb</guid></item><item><title>WikiPage Home modified by Alexander Wagner</title><link>https://sourceforge.net/p/dgtdrv/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/dgtdrv/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;a href="/u/arwagner/"&gt;Alexander Wagner&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-515b3598e88f3d55f25d8de7" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Wagner</dc:creator><pubDate>Tue, 02 Apr 2013 19:46:33 -0000</pubDate><guid>https://sourceforge.net23ee7eecc10a9b6a9d2bebcc2ab157134c020bf8</guid></item></channel></rss>