You are not logged in.

#1 2011-01-03 21:44:56

Adetque
Member
Registered: 2011-01-03
Posts: 14

libticables Build Error

I want to install TiLP for my TI-84+ calculator, so I do:

yaourt -S tilp

in order to build it from the AUR.  It goes through a few dependencies until I have to build libticables.  During the build, I get an error:

gcc -march=native -O2 -pipe -D__I386__ -D__LINUX__ -fvisibility=hidden -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/test_ticables_2 test_ticables_2.o  ../src/.libs/libticables2.so 
../src/.libs/libticables2.so: undefined reference to `usb_debug'
../src/.libs/libticables2.so: undefined reference to `usb_error_type'
../src/.libs/libticables2.so: undefined reference to `usb_error_str'
collect2: ld returned 1 exit status
make[2]: *** [test_ticables_2] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-adetque/aur-libticables/src/libticables2-1.3.1/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-adetque/aur-libticables/src/libticables2-1.3.1'
make: *** [all] Error 2

I have used Google, and I've found a few people with the same problem, but I haven't found any solutions.  Any help as to getting this to build would be greatly appreciated.  Thanks.

Last edited by Adetque (2011-03-16 00:56:08)

Offline

#2 2011-01-26 19:29:41

daniel.sweet
Member
Registered: 2011-01-23
Posts: 1

Re: libticables Build Error

hello,

I am having the exact same issue, with the exact same error. I was wondering if you have found a solution. I also have used Google and found many people with this issue, but still can not find a workaround or fix. Have you had any luck?

Offline

#3 2011-02-02 23:51:23

Adetque
Member
Registered: 2011-01-03
Posts: 14

Re: libticables Build Error

No unfortunately.  I looked at libusb, and it doesn't appear to have much in terms of conditional building.

Offline

#4 2011-03-15 20:23:14

Huulivoide
Member
From: Finaland->Lapland->Kemi
Registered: 2009-11-19
Posts: 19
Website

Re: libticables Build Error

There is a supposed to be a patch for this, but I havent got it working yet
https://bzattachment.mandriva.com/attac … i?id=17635

Last edited by Huulivoide (2011-03-15 20:23:38)

Offline

#5 2011-03-15 22:10:21

Adetque
Member
Registered: 2011-01-03
Posts: 14

Re: libticables Build Error

Libticables compiles with this modified patch and PKGBUILD!

# Maintainer: Jon Sturm <Jasturm002@aol.com>
# Contributor: mickael9 <mickael9 at gmail dot com>

pkgname=libticables
pkgver=1.3.1
pkgrel=2
pkgdesc="TI Link Cable Library"
arch=(i686 x86_64)
url="http://tilp.info/"
license="GPL"
depends=('libusb' 'glib2')
options=('force' '!libtool')
source=(http://lpg.ticalc.org/prj_tilp/download/libticables2-1.3.1.tar.bz2
    http://www.pastie.org/pastes/1676226/download
    69-libticables.rules)

build() {
    cd ${srcdir}/${pkgname}2-${pkgver}

    patch -Np0 -i '../download'

    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$pkgdir install

    install -m755 -d ${pkgdir}/etc/udev/rules.d
    install -m644 ${srcdir}/69-libticables.rules ${pkgdir}/etc/udev/rules.d/
}
md5sums=('a5086656a36172eb44e280b569c68b0c'
         '6c5481fe7b2ad5cda4041308b90d5d6c'
         'ed8dd523e68a9414aae078a1604005f7')

My modified patch is the pastie source in the PKGBUILD.

EDIT:  I tried using it.  I get these errors when checking if the calculator is ready:

ticalcs-INFO: Checking hand-held status:
ticalcs-INFO:   PC->TI: Buffer Size Request (1024 bytes)

(tilp:25970): ticables-WARNING **: usb_bulk_read (Bad file descriptor).

ticalcs-INFO: Checking hand-held status:
ticalcs-INFO:   PC->TI: Buffer Size Request (1024 bytes)

(tilp:25970): ticables-WARNING **: usb_bulk_read (Bad file descriptor).


(tilp:25970): ticables-WARNING **: usb_clear_halt (Numerical result out of range).


(tilp:25970): ticables-WARNING **: usb_reset (No such file or directory).

tilp-INFO: tilp_device_err catched error 40

followed by a GTK dialog that says:

Msg: unable to reset USB device.
Cause: Check that cable is connected or not stalled. Try to unplug/plug it.
System: No such file or directory (errno = 2)

and another one that says:

Msg: error occured while reading to the device.
System: Bad file descriptor (errno = 9)

Last edited by Adetque (2011-03-16 00:58:15)

Offline

#6 2011-03-31 07:11:17

mattikus
Member
From: Chicago, IL
Registered: 2008-08-20
Posts: 7
Website

Re: libticables Build Error

Same errors as above.

Offline

Board footer

Powered by FluxBB