Re: Announcing usbredir-0.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/18/2012 06:00 PM, javaon wrote:
configure process was ok, but failed to make. The below is the error messages on screen:

make[4]: Entering directory `/usr/local/src/spice-gtk-0.14/gtk'
  CCLD   spicy
/usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirfilter_string_to_rules' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_ref_device' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_open' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_set_device' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_get_device_list' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_unref_device' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_exit' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_open_full' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_free_device_list' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_get_guest_filter' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_write_guest_data' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_get_device_descriptor' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_handle_events' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_free_write_buffer' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_get_bus_number' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_init' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `libusb_get_device_address' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_close' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_check_device_filter' /usr/local/src/spice-gtk-0.14/gtk/.libs/libspice-client-glib-2.0.so: undefined reference to `usbredirhost_read_guest_data'

Likely you are missing flags that link to libusb and usbredir libraries.
Try building with -- make V=1 -- and see if you find libusb and usbredir on the command line (but see below first)

These flags should be added to the Makefile automatically when you run configure, and is probably a result of the problem you mention below/earlier.

collect2: ld returned 1 exit status
make[4]: *** [spicy] Error 1
make[4]: Leaving directory `/usr/local/src/spice-gtk-0.14/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/spice-gtk-0.14/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/spice-gtk-0.14/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/spice-gtk-0.14'
make: *** [all] Error 2

Tried several times, no luck...

On 12/18/2012 10:48 PM, javaon wrote:
ok.. forgot my last email. Explicitly specifying USBREDIR_LIBS USBREDIR_CFLAGS resolved the problem:

# USBREDIR_CFLAGS=/usr/local/include USBREDIR_LIBS=/usr/local/lib ./configure --with-gtk=3.0 --enable-usbredir=yes --enable-smartcard=yes --with-python=yes

Likely your PKG_CONFIG_PATH environment variable is not set correctly.
Do you get output for the following:
  pkg-config --libs libusb-1.0
  pkg-config --libs libusbredirhost

Check if PKG_CONFIG_PATH is set and if not try to set it to (or add to it) a directory with .pc files
(try -- find /usr/local/lib/ -name "glib*.pc" -- to find that directory)

Maybe your are missing some -devel packages, e.g. usbredir-devel

Hope that helps,
    Uri.

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]