Tilp 2 on x86_64 Arch Linux
I have been attempting to install Tilp2 on my laptop running Arch Linux. I have the list of dependancies and can get all to install without issues except for 'libticables'. This is my output when I try to install the AUR package.
Code:
../src/.libs/libticables2.so: undefined reference to `usb_debug' |
Welcome to LQ.
'libticables': A later libusb-0* will do, e.g. libusb-0.1.12 (0.1.3 will fail.) Please have a look in Debian (Sid) : It's all included, hopefully the versions will fit together. http://packages.debian.org/sid/libticables2-1 Also found at the site ( Use the 'Search' ) : libticalcs libticonv libtifiles2 .. |
im not really sure i understand your post. do you think my libusb is too new and i should downgrade? or will the deb pacakge you linked take care of my problem. either way, installing a deb package on arch can be annyoing, so do you know where i can download the source code for the deb package? thanks for your help.
|
You didn't mention your version of libusb-0.
Default is usually two installed versions : libusb 0 , libusb 1. 'libticables' uses the old libusb-0, sometimes called "compat". I upgraded libusb-0 from 0.1.3 to 0.1.12 . Please read (again) http://packages.debian.org/sid/libticables2-1 The link has it all : 1) Explains everything. 2) And has source code. → → libusb-0.1-4 → http://packages.debian.org/sid/libusb-0.1-4 > > Links for libusb-0.1-4 > > [libusb_0.1.12.orig.tar.gz] "libusb1" : The later libusb, a different one, usually also installed on most *Linux, e.g. version 1.0.8 cannot be used with 'libticables'. ( Slackware has only libusb 1 , may be Arch also comes with "1" only.) .. |
Sorry about that I was having trouble understanding what you meant.
Well your fix has gotten me farther than I've ever come before. In fact, after switching to libusb-0.1.12 I got libticables installed and afterwards Tilp. But now, when I try to start Tilp I get this error: Code:
tilp: symbol lookup error: /usr/lib/libticables2.so.3: undefined symbol: usb_debug |
Yes, I had the same error it seems. ( Didn't install Tilp2 until now.)
cd libticables2-1.2.0/ ./configure --disable-debug make clean && make # make install Then a new libticables2* is created, and 'tilp' can open the GUI. .. |
I tried your fix and everything seemed to be working until I tried to start Tilp and received the same error as before. Looking back at the output I noticed this:
Code:
configure: WARNING: unrecognized options: --disable--debug |
The Debian link was meant to show, which versions, that will fit together.
And work. The option "--disable--debug" is not included in "./configure --help" for libticables2-1.2.0. It was done by trying, and it worked. ""configure: WARNING: unrecognized options: --disable--debug"" This means, it is not being used by version 1.3.1 . 1.2.0 : http://ftp.de.debian.org/debian/pool....0.orig.tar.gz > > libticables_1.2.0.orig.tar.gz . |
And we return to the original error:
Code:
../src/.libs/libticables2.so: undefined reference to `usb_debug' 'whereis libusb' returns: Code:
libusb: /usr/lib/libusb.a /usr/lib/libusb.so /usr/local/lib/libusb.a /usr/local/lib/libusb.la /usr/local/lib/libusb.so Code:
lrwxrwxrwx 1 root root 19 Jan 29 16:31 /usr/local/lib/libusb-0.1.so.4 -> libusb-0.1.so.4.4.4 |
The two version of libusb should both be installed to --prefix=/usr.
The libusb, you have in /usr/ is probably version 1.0.x, and as /usr/lib/ is first in the search path : It will be used. If you later on want to develop with libusb 1 : change the link libusb.so to point to libusb-1.0.so.0.0.0 . But for now it is libusb.so -> libusb-0.1.so.4.4.4 only. .. |
So what should I do in order to get Tilp working. After switching to libticables-1.2.0 I cannot complete the install because I get the original 'undefined reference' error.
|
If you didn't install libusb-0.1.12 to /usr/ :
Then you are still compiling libticables with the wrong libusb. → post #10. Reason : 'libusb 0' = the version required for compiling must overwrite libusb.so and usb.h to insure no mix-up with 'libusb 1' files. Alternatively tell which version of glibc, you have : And I will find a binary libticables for Arch 64bits, that works. Or compile it, + test it with Tilp2. And upload it to Google Docs. .. |
I reinstalled libusb to /usr/, however, I still got the same error.
I am not sure which is the version number for glibc so here is the output of 'ls -al /lib/libc*' Code:
-rwxr-xr-x 1 root root 1412400 Jan 16 06:27 /lib/libc-2.12.2.so |
Installed Chakra-0.3.2 (Arch Linux), 64bits today.
Tilp2-1.1.2 : ./configure \ --prefix=/usr/ --with-qt-dir=/opt/ --with-qt-includes=/opt/qt/include/ \ --with-qt-libraries=/opt/qt/lib/ --without-kde The package tilp2-1.12-pkg.x86_64.tgz https://docs.google.com/leaf?id=0B7S...ut=list&num=50 And : libticables2-1.2.0-x86_64.tgz https://docs.google.com/leaf?id=0B7S...ut=list&num=50 The packages can be installed with the Slackware 'installpkg' script : # sh installpkg <package> https://docs.google.com/leaf?id=0B7S...ut=list&num=50 ( I don't know, how to build an 'Arch' package.) .. |
All times are GMT -5. The time now is 03:21 AM. |