[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [openocd:tickets] #98 Building in Cygwin with --enable-legacy-ft2232 fails
From:       "Paul Fertser" <dail () users ! sf ! net>
Date:       2015-05-27 21:20:03
Message-ID: /p/openocd/tickets/98/747a107a64cb3c0bd013fcd2d5c55b2115576ab5.tickets () openocd ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============5117789528602378790==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Thank you for the report.

The ft2232 driver is called legacy for a reason, it's not really working nicely and \
the "ftdi" driver fully replaces it. Moreover, you're building against proprietary \
library which makes the resulting binary non-redistributable. This is not really \
common.

If you really need to support this configuration, please prepare a patch and send it \
to Gerrit per the development guidelines. TIA.

(btw, we have an upstream config for cc32xx now, does it work fine for your \
purposes?)


---

** [tickets:#98] Building in Cygwin with --enable-legacy-ft2232 fails**

**Status:** new
**Milestone:** 0.9.0
**Created:** Wed May 27, 2015 09:13 PM UTC by Eric Wilson
**Last Updated:** Wed May 27, 2015 09:13 PM UTC
**Owner:** nobody

Specifically I was following the instructions in the [TI CC3200 Launchpad quick start \
guide](http://www.ti.com/lit/ug/swru376b/swru376b.pdf) and the build failed. I \
managed to fix the build by the following:

1) re-name the ftd2xx64.dll to ftd2xx.dll in the ftd2xx/amd64 folder
2) re-name the ftd2xx.lib file so that the ./configure does not find it
3) change the references to the .lib to .dll in the ./configure (see the code \
snippet) 4) copy the ftd2xx.h file into /usr/include

~~~~~~
    # And calculate the LDFLAGS for the machine
    case "$host_cpu" in
    i?86|x86_32)
      LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/i386"
      LIBS="$LIBS -lftd2xx"
      # THIS WAS AN EDIT FROM ftd2xx.lib
      f=$with_ftd2xx_win32_zipdir/i386/ftd2xx.dll
      ;;
    amd64|x86_64)
      LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/amd64"
      LIBS="$LIBS -lftd2xx"
      # THIS WAS AN EDIT FROM ftd2xx.lib
      f=$with_ftd2xx_win32_zipdir/amd64/ftd2xx.dll
      ;;
    *)
      as_fn_error $? "Unknown Win32 host cpu: $host_cpu" "$LINENO" 5
      ;;
    esac
~~~~~~


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed \
to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at \
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a mailing \
                list, you can unsubscribe from the mailing list.
--===============5117789528602378790==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>Thank you for the report.</p>
<p>The ft2232 driver is called legacy for a reason, it's not really working nicely \
and the "ftdi" driver fully replaces it. Moreover, you're building against \
proprietary library which makes the resulting binary non-redistributable. This is not \
really common.</p> <p>If you really need to support this configuration, please \
prepare a patch and send it to Gerrit per the development guidelines. TIA.</p> \
<p>(btw, we have an upstream config for cc32xx now, does it work fine for your \
purposes?)</p> <hr />
<p><strong> <a class="alink" \
href="http://sourceforge.net/p/openocd/tickets/98">[tickets:#98]</a> Building in \
Cygwin with --enable-legacy-ft2232 fails</strong></p> <p><strong>Status:</strong> \
new<br /> <strong>Milestone:</strong> 0.9.0<br />
<strong>Created:</strong> Wed May 27, 2015 09:13 PM UTC by Eric Wilson<br />
<strong>Last Updated:</strong> Wed May 27, 2015 09:13 PM UTC<br />
<strong>Owner:</strong> nobody</p>
<p>Specifically I was following the instructions in the <a class="" \
href="http://www.ti.com/lit/ug/swru376b/swru376b.pdf" rel="nofollow">TI CC3200 \
Launchpad quick start guide</a> and the build failed. I managed to fix the build by \
the following:</p> <p>1) re-name the ftd2xx64.dll to ftd2xx.dll in the ftd2xx/amd64 \
folder<br /> 2) re-name the ftd2xx.lib file so that the ./configure does not find \
it<br /> 3) change the references to the .lib to .dll in the ./configure (see the \
code snippet)<br /> 4) copy the ftd2xx.h file into /usr/include</p>
<div class="codehilite"><pre><span class="x">    </span><span \
class="err">#</span><span class="x"> And calculate the LDFLAGS for the machine</span> \
<span class="x">    case "</span><span class="p">$</span><span \
class="nv">host_cpu</span><span class="x">" in</span> <span class="x">    \
i?86|x86_32)</span> <span class="x">      LDFLAGS="</span><span \
class="p">$</span><span class="nv">LDFLAGS</span><span class="x"> -L</span><span \
class="p">$</span><span class="nv">with_ftd2xx_win32_zipdir</span><span \
class="x">/i386"</span> <span class="x">      LIBS="</span><span \
class="p">$</span><span class="nv">LIBS</span><span class="x"> -lftd2xx"</span> <span \
class="x">      </span><span class="err">#</span><span class="x"> THIS WAS AN EDIT \
FROM ftd2xx.lib</span> <span class="x">      f=</span><span class="p">$</span><span \
class="nv">with_ftd2xx_win32_zipdir</span><span class="x">/i386/ftd2xx.dll</span> \
<span class="x">      ;;</span> <span class="x">    amd64|x86_64)</span>
<span class="x">      LDFLAGS="</span><span class="p">$</span><span \
class="nv">LDFLAGS</span><span class="x"> -L</span><span class="p">$</span><span \
class="nv">with_ftd2xx_win32_zipdir</span><span class="x">/amd64"</span> <span \
class="x">      LIBS="</span><span class="p">$</span><span \
class="nv">LIBS</span><span class="x"> -lftd2xx"</span> <span class="x">      \
</span><span class="err">#</span><span class="x"> THIS WAS AN EDIT FROM \
ftd2xx.lib</span> <span class="x">      f=</span><span class="p">$</span><span \
class="nv">with_ftd2xx_win32_zipdir</span><span class="x">/amd64/ftd2xx.dll</span> \
<span class="x">      ;;</span> <span class="x">    *)</span>
<span class="x">      as_fn_error </span><span class="p">$</span><span class="x">? \
"Unknown Win32 host cpu: </span><span class="p">$</span><span \
class="nv">host_cpu</span><span class="x">" "</span><span class="p">$</span><span \
class="nv">LINENO</span><span class="x">" 5</span> <span class="x">      ;;</span>
<span class="x">    esac</span>
</pre></div>
<hr />
<p>Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is \
subscribed to <a href="https://sourceforge.net/p/openocd/tickets">https://sourceforge.net/p/openocd/tickets/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/openocd/admin/tickets/options.">https://sourceforge.net/p/openocd/admin/tickets/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============5117789528602378790==--



------------------------------------------------------------------------------


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic