View previous topic :: View next topic |
Author |
Message |
m@o Apprentice
Joined: 25 Nov 2003 Posts: 184 Location: /eu/at/grz
|
Posted: Mon Sep 03, 2012 4:24 pm Post subject: using libusb 1.0 and 0.1 in parallel?! |
|
|
hey!
i'm trying to compile ykchalresp for my initramfs.
you can find the source here on github (it's also in portage sys-auth/ykpers)
i have libusb (1.0.9) and libusb-compat (0.1.4) installed. (plus the virtual/libusb package)
according to the advice of this forum i tried to compile the package with libusb-0.1 instead of 1.0, but i don't succeed.
i fail to get libusb-0.1 to be used by make. and configure does not seem to find it either.
when i run "./configure --with-backend=libusb" i get:
Code: | ...
checking how to link with libyubikey... -lyubikey
checking for libusb_init in -lusb... yes
checking for libusb... no
checking for libusb... (cached) no
configure: error: libusb not found, please install usb.h and libusb.so
|
with libusb-1.0 it finished but fails when i try to build it.
i tried to edit the Makefile and the configure file, to get libusb0.1 in there. no success.
what can i do to get libusb-0.1 to be used with this build?
background: i try to get a static build of ykchalresp to put it in my initramfs. i want to unlock my harddrive based on a challenge and response of the yubikey.
thx for your help
m@o |
|
Back to top |
|
|
m@o Apprentice
Joined: 25 Nov 2003 Posts: 184 Location: /eu/at/grz
|
Posted: Tue Sep 04, 2012 8:27 am Post subject: |
|
|
i tried the same thing on an ubuntu machine
it worked.
for the record:
i had to install libusb-dev and libyubikey-dev on the ubuntu machine. that's all.
then run:
./configure --with-backend=libusb
make LDFLAGS=-all-static
is it possible to get both libraries to work on gentoo as well? |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue Sep 04, 2012 8:56 am Post subject: |
|
|
m@o wrote: | i tried the same thing on an ubuntu machine
it worked.
for the record:
i had to install libusb-dev and libyubikey-dev on the ubuntu machine. that's all.
then run:
./configure --with-backend=libusb
make LDFLAGS=-all-static
is it possible to get both libraries to work on gentoo as well? |
download llsusb-0.1 and compile it locally might work. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|