Results 1 to 9 of 9

Thread: Problems installing Piper/LibRatbag

  1. #1
    Join Date
    Aug 2020
    Beans
    4

    Problems installing Piper/LibRatbag



    Greetings.



    I am new to Linux and have been running Ubuntu 20.04 for a few weeks now trying to make sense of how to use it which I find somewhat difficult as I came from Windows 7 it is to be expected. I am trying to get the program Piper to run as I would like to be able to set up my mice, Logitech M705, with macros, scroll speed and more to work in games, browsing the internet as I could do in the Logitech proprietary drivers for windows (maybe not exactly the same but at least somethings). However, I now have run in to a small problem that I cannot solve. First I used the Ubuntu Software to install Piper and from Piper I had to install Ratbag from the guide at Github (https://github.com/libratbag/libratbag). I follow the guide:

    Code:
    git clone https://github.com/libratbag/libratbag.git
    cd libratbag
    meson builddir
    When I get to meson builddir I get some errors, missing packages. I managed to install the needed packages using Synaptic package manager until now. I get this error “meson.build:369:1: ERROR: Dependency "check" not found, tried pkgconfig and cmake”. This dependency “check” I cannot find so I am in need of some guidance on how to fix this so I can keep working on getting Piper running.



    A second thing, as I have instilled several packages to get libratbag to work I do wonder if there is a simpler way, a way to install all the required packages at once so I do not have to look for each and everyone?



    Kind regards
    Last edited by ajgreeny; August 7th, 2020 at 10:36 PM. Reason: Font normalised. Please use default fonts when posting.

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,904
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Problems installing Piper/LibRatbag

    So, last question first. Yes, if a package is included in the repositories, there is a way to install all of its build dependencies in one go. I can't remember the command off the top of my head, though.

    However, for the overall point, compiling from source isn't the best way to install things if you're new to Linux. Project websites have build instructions because the only people that need to be looking at project websites are other developers that want to help. Downloading things from websites is not a good plan when you already have a package manager. For Piper, there is already a version in the (universe) repository, so you can just install that and it may well do what you want. If you need a newer version, there's a PPA which your package manager can use as a source for the newer software.
    None but ourselves can free our minds

  3. #3
    Join Date
    Aug 2020
    Beans
    4

    Re: Problems installing Piper/LibRatbag

    Thank you @CatKiller.

    As I thought that compiling from source is not a good idea for beginners. Also found out that my universe repository is are enabled and up to date, which really do not make any sens to me at this point. (Sorry if I am being stupid now) I do believe i managed to install the PPA from (https://launchpad.net/~libratbag-pip...-libratbag-git) using the commands:
    Code:
    sudo add-apt-repository ppa:libratbag-piper/piper-libratbag-git
    sudo apt-get update
    And next : sudo apt install ratbagd

    Piper still will not run. What am I missing here?

  4. #4
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,904
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Problems installing Piper/LibRatbag

    Quote Originally Posted by hajnyckel View Post
    Piper still will not run. What am I missing here?
    Do you get any error messages that might point to the issue?

    As I recall, the versions of piper and libratbag are paired: for the version of Piper in the repositories you need the version of libratbag that's in the repositories, and for the PPA version of Piper you need the PPA version of libratbag. It's been a while since I played with it, though.

  5. #5
    Join Date
    Aug 2020
    Beans
    4

    Re: Problems installing Piper/LibRatbag

    Piper now says "Cannot find any device. Please make sure your device is supported and plugged in". According to the supported list my Logitech M705 is supported.
    (https://github.com/libratbag/libratb...r/data/devices) I found my device file installed in my libratbag folder and checked it with the document from the link and they match up. Tried to re-plugg my device and change USB port but nothing changed. Any more ideas?

    Kind regards

  6. #6
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,904
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Problems installing Piper/LibRatbag

    So one thing to try is using ppa-purge to test using the versions from the standard repositories to see if there's been a regression, which does happen from time to time. That should automatically downgrade the versions, I think. It's easy enough to re-add the PPA afterwards if you do need the latest version.

    There are also ratbag commands that you can run from the command line to see how far it's getting in detecting your device.

    Other than that, the wiki might have some information that might help you. The libratbag devs are quite friendly & helpful. I don't have that mouse, and it's been a while since I played with Piper at all.

  7. #7
    Join Date
    Aug 2020
    Beans
    4

    Re: Problems installing Piper/LibRatbag

    Quote Originally Posted by CatKiller View Post
    So one thing to try is using ppa-purge
    Now I feel kind of stupid but I found how to do a PPA-purge I just seem to be unable to do it as I get the name wrong. Using "sudo ppa-purge ppa:name/here" tried both piper and libratbag.

    Quote Originally Posted by CatKiller View Post
    There are also ratbag commands that you can run from the command line to see how far it's getting in detecting your device.
    I will see if I can find that command in the wiki, thank you

    Quote Originally Posted by CatKiller View Post
    The libratbag devs are quite friendly & helpful. I don't have that mouse, and it's been a while since I played with Piper at all.
    I will dig deeper into the wiki and see what I can find.
    If I may ask, if you are not using Piper then which program, if any, are you using for you mouse?


    Kind regards

  8. #8
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,904
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Problems installing Piper/LibRatbag

    Quote Originally Posted by hajnyckel View Post
    Now I feel kind of stupid but I found how to do a PPA-purge I just seem to be unable to do it as I get the name wrong. Using "sudo ppa-purge ppa:name/here" tried both piper and libratbag.
    One neat thing about the command line is Tab-completion. You can type the start of a command or filename and press Tab and the shell will fill in the rest. If there's more than one way to complete it, pressing Tab twice will show the options. For many commands, Tab-completion also works for arguments.

    If I may ask, if you are not using Piper then which program, if any, are you using for you mouse?
    My mouse stores its settings in firmware, so after I'd set the DPI and colours with Piper I didn't need to look at it again. I'd only need to fire it up if I wanted to change them to something else.
    None but ourselves can free our minds

  9. #9
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Problems installing Piper/LibRatbag

    The command needed for ppa purge to do what you want will use the same ppa name syntax as was used to add the repository, so in your case I think it should be
    Code:
    sudo ppa-purge ppa:libratbag-piper/piper-libratbag-git
    This just replaces the add-apt-repository part of the command you used previously with ppa-purge.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •