lib USB missing file

229 views
Skip to first unread message

carlos

unread,
Sep 14, 2016, 8:15:25 PM9/14/16
to Harbour Users
Hi
I want to compile  .\extras\hbusb\core.c  code but I can't find the file

#include "libusb.h"

Where can I found this file ?

Carlos

Massimo Belgrano

unread,
Sep 15, 2016, 11:33:16 AM9/15/16
to harbou...@googlegroups.com
C:\harbour\extras\hbusb


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

DaNiEl MaXiMiLiAnO

unread,
Sep 15, 2016, 12:03:04 PM9/15/16
to harbou...@googlegroups.com


 
Saludos
                DaNIEl MaXiMiLiAnO


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

Bruno Luciani

unread,
Sep 15, 2016, 12:07:21 PM9/15/16
to harbour-users
Massimo , which is the use or the funtionality of this library ?

Bruno
Bruno Luciani
Area Ingenieria
Brawnius Tecnologia y Servicios 
BWS Central de Monitoreo
San Francisco Javier 1066
Ramallo - 03407-422178/422185
www.brawnius.com.ar
www.bwsalarmas.com.ar
Message has been deleted

gmail

unread,
Sep 16, 2016, 10:20:57 AM9/16/16
to harbou...@googlegroups.com
Hi
but I can see only this
..
tests 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)
core.c 2016-01-15 15:20 UTC+0100 Viktor Szakats (vszakats
users.noreply.gith…
hbusb.ch 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)
hbusb.hbc 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)
hbusb.hbp 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)
hbusb.hbx 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)


and in \test
..
hbmk.hbm 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)
test.prg 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)


and core.c require

#include "hbapi.h"

#include "libusb.h" <<<<

DaNiEl MaXiMiLiAnO

unread,
Sep 22, 2016, 3:17:10 PM9/22/16
to harbou...@googlegroups.com
Hola Carlos Britos :
compile el ejemplo test.prg y corrio perfectamente en Windows 10 home premiun 64

pasos a seguir
descomprimir en la carpeta c:\Libusb
despues copie libusb.h a la carpeta  C:\hb32\include

2) copie desde C:\libusb\MinGW32\dll a C:\hb32\lib\win\mingw

3) genere la nueva libreria mediante este batch en la carpeta C:\harbour\extras\hbusb
@echo off
Title Build %1 in 32 bits
set HB_WITH_LIBUSB=C:\libusb\include\libusb-1.0
set Backup=%path%
set path=%path%;C:\hb32\bin
hbmk2 hbusb.hbp
set path=%backup%
set HB_WITH_LIBUSB

4) el dll  de  C:\libusb\MinGW32\dll lo pegue en C:\harbour\extras\hbusb\tests y genere el exe con este batch

@echo off
Title Build %1 in 32 bits
set Backup=%path%
set path=%path%;C:\hb32\bin
hbmk2 test.prg
set path=%backup%


 
Saludos
                DaNIEl MaXiMiLiAnO


El Viernes, 16 de septiembre, 2016 11:30:06, carlos <carlosb...@gmail.com> escribió:


Hi Daniel

but I can see only this
        ..             
        tests  2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)        
        core.c 2016-01-15 15:20 UTC+0100 Viktor Szakats (vszakats users.noreply.gith… 
        hbusb.ch  2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
        hbusb.hbc 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
        hbusb.hbp 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
        hbusb.hbx 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)  
 
and in \test
        ..             
        hbmk.hbm  2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
        test.prg  2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
 
and core.c require
 
#include "hbapi.h"
#include "libusb.h"       <<<<
 
---------
Searching in the web I found this lib at  http://libusb.info/
I guess this is the code on hbusb wrapper is based.
Downloading libusb-1.0.20.7z I found the file libusb.h
Then I compile with this file and the binaries in the
package: \libusb-1.0.20.7z\MinGW32\static\
but I'm getting these error messages:
/libusb10.a(libusb_1_0_la-core.o):core.c:(.text+0xd3): undefined reference to `__ms_vsnprintf'
/libusb10.a(libusb_1_0_la-core.o):core.c:(.text+0x5a5): undefined reference to `__ms_vsnprintf'

If someone can give an idea how to solve it would be appreciate.

Carlos
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
libusb.png
test usb.png

carlos

unread,
Sep 22, 2016, 7:11:45 PM9/22/16
to Harbour Users, danielma...@yahoo.com.ar
gracias Daniel, muy amable

Carlos
Reply all
Reply to author
Forward
0 new messages