Thx, Guillaume. I was looking at the various GNU ARM Eclipse OpenOCD
executables again today, using Dependency Walker, and noticed that there are
some versions of their executable that do explicitly link to libusb0.dll (not
libusb-1.0), while other versions have no lib dependencies. So it makes sense
what you’re saying, that they’ve statically linked in libraries to remove any
external dependencies. Thank you & Paul for pointing that out. I wasn’t clear
on how these were being built and wanted to make sure I wasn’t going down the
wrong path with my builds.
Re: the GNU ARM Eclipse website, are you sure they’re saying to use Zadig –
seems like they’re actually making a strong point of not using it…
http://gnuarmeclipse.github.io/openocd/install/#drivers ;) This reference is
actually part of my motivation to avoid pulling in extra libraries, as much as
possible.
And thank you for the tip on building libusb – I need to figure out how to do
that.
Regards
From: Guillaume Champagne [mailto:champagne.guillaum...@gmail.com]
Sent: Tuesday, July 05, 2016 12:33 PM
To: Gifford Scott
Cc: openocd-devel@lists.sourceforge.net
Subject: RE: [OpenOCD-devel] Compiling latest build for Windows on Cygwin -
missing libusb-1.0.dll?
Hi,
The GNU ARM Eclipse project does depend on libusb. They statically linked
libusb so you don't "see" any dependencies when running it or examining it with
dependency walker. You can see that in the driver section of their website [0],
they explicitly mention to use Zadig to install the correct drivers for you
device. I don't know their project very well, but if they had no dependencies
to libusb whatsoever, this wouldn't be required.
With that said, it is possible to achieve the same result under Cygwin or
MSYS/MSYS2 by statically linking to libusb yourself.
Like Paul said adding LDFLAGS="-static" would probably work, but you can also
use --enable-static and --disable-shared. They might not be both required, but
I add them both just to be safe.
You will also have to build libusb from source as a static library and make
sure to link to that library when building openocd. It takes a bit of tweaking
to get everything right, but I successfully did it with Cygwin under windows 7.
[0] http://gnuarmeclipse.github.io/openocd/install/#drivers
Guillaume Champagne
-----Original Message-----
From: Gifford Scott [mailto:gifford.sc...@flextronics.com]
Sent: Tuesday, July 05, 2016 11:20 AM
To: Paul Fertser <fercer...@gmail.com<mailto:fercer...@gmail.com>>
Cc:
openocd-devel@lists.sourceforge.net<mailto:openocd-devel@lists.sourceforge.net>
Subject: Re: [OpenOCD-devel] Compiling latest build for Windows on Cygwin -
missing libusb-1.0.dll?
Yes, that's good advice and I appreciate the guidance. However, I understand
(and tell me if I'm wrong) static binding to be essentially equivalent to
packaging the required lib in the same directory with the executable. So I'm
still dealing with a dependency that I'd like to be rid of. The GNU ARM Eclipse
tool chain appears to be able to do that but maybe theirs isn't common usage.
My main interest is in expanding the functionality of your CMSIS-DAP support.
In theory, CMSIS-DAP just requires HID over USB functionality, which is native
to all Windows variants. If I could, I'd like to reduce my driver dependency to
just the native Windows drivers, minimizing the complexity of my development
environment for now. I was looking for guidance as to which adapters I would
need to disable in the build, to be able to remove that libusb-1.0 dependency,
or if there was some global config flag that I hadn't discovered, to do the
same.
Thx,
G
-----Original Message-----
From: Paul Fertser [mailto:fercer...@gmail.com]
Sent: Tuesday, July 05, 2016 9:52 AM
To: Gifford Scott
Cc:
openocd-devel@lists.sourceforge.net<mailto:openocd-devel@lists.sourceforge.net>
Subject: Re: [OpenOCD-devel] Compiling latest build for Windows on Cygwin -
missing libusb-1.0.dll?
On Tue, Jul 05, 2016 at 01:34:19PM +0000, Gifford Scott wrote:
> Thx, Paul. I guess I set myself up by asking the abbreviated question,
> what am I missing... I'm aware that libusb-1.0.dll is missing and that
> I could add libusb-1.0.dll. The long version of my question is, given
> that I have a precompiled 0.10.0-dev binary (from GNU ARM Eclipse
> project) that does not need libusb-1.0.dll and that appears to be able
> to use just the native winusb.dll provided in Windows 7, what am I
> missing from my build environment that would allow me to build a
> similar Windows executable without the libusb-1.0.dll dependency?
Doesn't static build as I suggested work?
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com
Legal Disclaimer:
The information contained in this message may be privileged and confidential.
It is intended to be read only by the individual or entity to whom it is
addressed or by their designee. If the reader of this message is not the
intended recipient, you are on notice that any distribution of this message, in
any form, is strictly prohibited. If you have received this message in error,
please immediately notify the sender and delete or destroy any copy of this
message!
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net<mailto:OpenOCD-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/openocd-devel
Legal Disclaimer:
The information contained in this message may be privileged and confidential.
It is intended to be read only by the individual or entity to whom it is
addressed or by their designee. If the reader of this message is not the
intended recipient, you are on notice that any distribution of this message, in
any form, is strictly prohibited. If you have received this message in error,
please immediately notify the sender and delete or destroy any copy of this
message!
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel