Author Topic: Cannot compile lirc 0.9.0 libusb.la missing  (Read 1682 times)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Cannot compile lirc 0.9.0 libusb.la missing
« on: March 10, 2011, 02:24:09 PM »
Hey,

having a libtool issue - "/usr/lib/libusb.la not found" and the libusb.la file is placed in /lib

how do I tell libtool to get libusb.la in /lib - is it a change to pkgconfig libusb.pc file?

compile is fine with symbolic link, but I'd rather fix it for good,

thanks,
MBantz

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12519
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #1 on: March 10, 2011, 02:27:00 PM »
Try to copy /lib/libusb.la to /usr/lib/libusb.la then run ldconfig then compile lirc 0.9.0

Thanks to everyone who donates. You keep the servers running.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #2 on: March 10, 2011, 03:58:17 PM »
Hi Tex,

I just made a symbolic link in a console and then it compiled fine,

just wondering what/where libtool find it's la files - then I'd fix libusb or lirc.

Btw. current lirc 8.7 support up to kernel 2.6.35 and lirc-dev's are working on 0.9.0. Having just tried 2.6.37.2.bfs and lirc 0.9.0 didn't work well here - I'm putting thinking cap on

Btw:btw having updated mythtv to 0.25 and it's brewing and running fine, just waiting for it to go stable before dropboxing

cheers,
MBantz

Offline coonhunter

  • Full Member
  • ***
  • Posts: 202
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #3 on: May 03, 2011, 02:17:35 PM »
MBantz have you got lirc working on 2.6.38 kernel.I tried it with the lirc 0.8.7 package from the repos and it didn't work.Then i downloaded the 0.9.0 lirc package and ran into the compile errors you mentioned above.

System:pclos 2010.12 2.6.38.4-pclos1

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #4 on: May 03, 2011, 02:48:56 PM »
I guess it's libusb's pkgconfig that is messed up,

I'll take a look at libusb now,

eventually just symlink it for now,

cheers,
MBantz

Offline coonhunter

  • Full Member
  • ***
  • Posts: 202
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #5 on: May 03, 2011, 03:29:15 PM »
The lirc 0.9.0 package compiled fine after i installed the lsusb1.0-static-devel package from the repos but i still can't get lirc to work in this kernel.I have a mceusb remote.In the konsole cat /var/log/messages show that mceusb and ir-lirc-codec drivers are installed creating 2 device nodes /dev/lirc/0 (corresponding to the IR controller on my Hauppage DVB-T PCI card) and /dev/lirc/1 corresponding to the mce usb remote.ps -e | grep lircd shows that lircd is running but there is nothing from irw.Even when i changed the lircd driver to devinput and device to /dev/input/event4 nothing shows up on irw.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #6 on: May 03, 2011, 05:24:26 PM »
I had the symbolic link from before, so lirc compiled fine here - I then removed the symbolic link and had no luck whatsoever compiling it.

It appear that lirc uses its own libtool - I guess this is why it cannot find the .la file. This libtool thing is kindof black magic to me at the moment.

As for your issue with Lirc, have you edited /etc/sysconfig/lircd or are you running irw with parameters?

Offline coonhunter

  • Full Member
  • ***
  • Posts: 202
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #7 on: May 04, 2011, 10:59:18 AM »
As for your issue with Lirc, have you edited /etc/sysconfig/lircd or are you running irw with parameters?

Yep tried all that.I also stopped the lirc daemon and ran it in non daemon mode from the console with the following command

/usr/sbin/lircd -nH devinput -d /dev/input/event4 /etc/lirc/lird.conf.devinput

No luck.I guess i'll have to wait until all the quirks with this new lirc implementation are ironed out

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #8 on: May 04, 2011, 12:46:58 PM »
As for your issue with Lirc, have you edited /etc/sysconfig/lircd or are you running irw with parameters?

Yep tried all that.I also stopped the lirc daemon and ran it in non daemon mode from the console with the following command

/usr/sbin/lircd -nH devinput -d /dev/input/event4 /etc/lirc/lird.conf.devinput

No luck.I guess i'll have to wait until all the quirks with this new lirc implementation are ironed out

/dev/input/event4    <--  is it possible this has changed?  Have you confirmed 4 is correct?

Offline coonhunter

  • Full Member
  • ***
  • Posts: 202
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #9 on: May 04, 2011, 03:00:25 PM »
Quote
/dev/input/event4    <--  is it possible this has changed?  Have you confirmed 4 is correct?

Yea that was correct,also tried it by /dev/input/by-id/<phillips transceiver etc etc..> which remains constant even if event changes..still made no difference.Jarod Wilson the man behind lirc does all his testing on Fedora.I'm tempted to test it on the 2.6.38 kernel in that.Otherwise this is driving me nuts

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #10 on: May 04, 2011, 04:48:27 PM »
When everything fails, and you have a test-setup... then you can try and download and compile the Lirc package and install and run the setup. Remove any lirc package from synaptic first. This has worked for me in the past (but now I use the repo version).

I once asked if the setup program could be included in Lirc but never got any answer. It seems the setup program check all sorts of details


Offline coonhunter

  • Full Member
  • ***
  • Posts: 202
Re: Cannot compile lirc 0.9.0 libusb.la missing
« Reply #11 on: May 05, 2011, 01:50:51 AM »
When everything fails, and you have a test-setup... then you can try and download and compile the Lirc package and install and run the setup. Remove any lirc package from synaptic first. This has worked for me in the past (but now I use the repo version).

I once asked if the setup program could be included in Lirc but never got any answer. It seems the setup program check all sorts of details




The setup program in Mint8 worked staight away but that is on an older kernel now.The newer ones => 2.6.36 don't require the complete lirc package with its legacy lirc_mceusb drivers but only the lircd and a couple of configuration files.I have compiled it from the latest lirc 0.9.0 source package (with the command: ./configure --with-driver=userspace) but didn't get anywhere.irw still didn't record any keypresses.When i get the time i'll install the upcoming fedora15 on a test rig and see how it goes.This is the LIRC mailing list if you're interested:
http://old.nabble.com/LIRC-f2054.html
« Last Edit: May 05, 2011, 01:52:24 AM by coonhunter »