<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Le 04/08/2019 à 14:07, Johann Glaser a écrit :<br>
<blockquote type="cite"
cite="mid:38ad883569a429831a0f32e0e00a21a1f768b580.camel@gmx.at">
<pre class="moz-quote-pre" wrap="">Hi James!
Am Donnerstag, den 01.08.2019, 22:45 -0400 schrieb James Richters:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I understand it better now, but I've been out of town and haven't
been able to work on it. I'm not sure what is meant by installing
development packages though.. I see libusb at <a class="moz-txt-link-freetext" href="https://libusb.info/">https://libusb.info/</a> I
see where to download that.. but I don't know about development
packages? As for LibC, I'm not really sure where to find the
proper package for that. I found
<a class="moz-txt-link-freetext" href="http://gnuwin32.sourceforge.net/packages/libc.htm.bak">http://gnuwin32.sourceforge.net/packages/libc.htm.bak</a> but I'm not
sure that is right, and again not sure about development package for
that. I would really appreciate links to the exact packages I will
need to use for Windows.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I'm sorry that I can't help you here with these Windows-specific
questions.
Could somebody else please help out here?
</pre>
</blockquote>
<br>
<div class="moz-cite-prefix">
<div class="moz-cite-prefix">When you link to the dll, you can
remove the {$LINKLIB c}.</div>
But for now I haven't been able to make it work with a static
link.</div>
<div class="moz-cite-prefix"><br>
</div>
I added to project library search path in lazarus:
E:\03_travail\libusb\libusb-1.0.22\MinGW64\static\ wich contains
libusb-1.0.a<br>
Then I changed {$LINKLIB usb-1.0} to {$LINKLIB libusb-1.0}, and
removed {$LINKLIB c}<br>
(I join the diff files)<br>
<p>In this way, libusb-1.0.a is found by the compiler, but the
dependencies of libusb-1.0.a on C runtime and several Windows
system function are not fullfilled and you get these errors (I
join them in file Compiler_output.txt)</p>
<p>Some of them like WaitForSingleObject are provided by
Kernel32.dll but I don't know which lib from MinGW64 to use to
provide __imp_WaitForSingleObject. <br>
Some others like atoi seem to be from the c runtime, but I haven't
found yet where are its libs (interesting link:
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/52376724/mingw-w64-c-versions-support">https://stackoverflow.com/questions/52376724/mingw-w64-c-versions-support</a>
)<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">
<pre>
</pre>
</div>
</body>
</html>