panzi / qjoypad

fork of qjoypad http://qjoypad.sourceforge.net/
GNU General Public License v2.0
120 stars 25 forks source link

Not able to install on Raspbian (Buster) - Kernel 5.4.79-v7l+ #42

Open WilsonBradley opened 3 years ago

WilsonBradley commented 3 years ago

╮ ╰─ In file included from /home/fenix/qjoypad/src/button.cpp:2: ─╯ /home/fenix/qjoypad/src/event.h:5:10: fatal error: X11/extensions/XTest.h: No such file or directory

include <X11/extensions/XTest.h>

      ^~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [src/CMakeFiles/qjoypad.dir/build.make:166: src/CMakeFiles/qjoypad.dir/button.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... In file included from /home/fenix/qjoypad/src/axis.cpp:2: /home/fenix/qjoypad/src/event.h:5:10: fatal error: X11/extensions/XTest.h: No such file or directory

include <X11/extensions/XTest.h>

      ^~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [src/CMakeFiles/qjoypad.dir/build.make:127: src/CMakeFiles/qjoypad.dir/axis.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:173: src/CMakeFiles/qjoypad.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

panzi commented 3 years ago

You need to install the xtest extension for X11 and its development package. Guess I should mention that in the Readme.

WilsonBradley commented 3 years ago

Thanks , but not sure how to do that. Could you let me know when the Readme is updated? Thanks

Using the legacy Qjoypad and it's limited and when adding it to startup, it starts but do not see the applet on the taskbar, only if I quit and restart qjoypad manually it shows up.

panzi commented 3 years ago

I don't know how to install that package on your Linux distribution. Search your package manager for "xtest" and "xtest develop"/"xtest devel"/"xtest development".

PS: AntimicroX is a better maintained alternative program that does the same kind of job: https://github.com/AntiMicroX/antimicrox

WilsonBradley commented 3 years ago

Thanks for the reply. The tip for AntimicroX seems promising.. appreciate it.

Sincerely,

Wilson Bradley Wilsonb@pobox.com ▬▬▬▬▬▬▬▬▬▬▬ஜ۩☆۩ஜ▬▬▬▬▬▬▬▬▬▬ [image: 🗽]Make 𝐀𝐌𝐄𝐑𝐈𝐂𝐀 𝐆𝐑𝐄𝐀𝐓[image: 🗽]

▬▬▬▬▬▬▬▬▬▬▬ஜ۩☆۩ஜ▬▬▬▬▬▬▬▬▬▬

On Thu, Jan 7, 2021 at 4:50 PM Mathias Panzenböck notifications@github.com wrote:

I don't know how to install that package on your Linux distribution. Search your package manager for "xtest" and "xtest develop"/"xtest devel"/"xtest development".

PS: AntimicroX is a better maintained alternative program that does the same kind of job: https://github.com/AntiMicroX/antimicrox

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/panzi/qjoypad/issues/42#issuecomment-756434544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6LSRK5OMOWBQ2TREVF2F3SYY3CDANCNFSM4VT35K4Q .

WilsonBradley commented 3 years ago

Thanks for pointing out AntimicroX.. I don't think there's an ARM version. (Raspberry Pi) Can't get it installed.

Would be happy with your version if I can get it to compile.

Cheers

WilsonBradley commented 3 years ago

Ok, installed Xtest library by (sudo apt-get install libxtst-dev) and successfully compiled and installed qjoypad 4.3 from this git.

However, first installed with working older qjaoypad installed. There after 4.3 version says "No Joystick devices are currently available to configure"

So figured it was because the old was still installed. Uninstalled 4.1 and recompiled installed 4.3 Still not detecting device under 4.3 I reversed and verified, it still works under old 4.1 via apt install

image

the input dir is /dev/input joystick is js0

Not sure why it's not detecting it.

Maybe because dependencies are missing when manually cmake install ing 4.3 ?

Here's what it looks like when apt installing older 4.1 from repository successfully

╰─sudo apt install qjoypad ─╯ Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: qjoypad 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/89.8 kB of archives. After this operation, 213 kB of additional disk space will be used. Selecting previously unselected package qjoypad. (Reading database ... 402556 files and directories currently installed.) Preparing to unpack .../qjoypad_4.1.0-2.1_armhf.deb ... Unpacking qjoypad (4.1.0-2.1) ... Setting up qjoypad (4.1.0-2.1) ... Processing triggers for bamfdaemon (0.5.4-1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.23-4) ... Processing triggers for mime-support (3.62) ... Processing triggers for gnome-menus (3.31.4-3) ... Processing triggers for man-db (2.8.5-2) ...


panzi commented 3 years ago

You don't even need to install qjoypad, you can just directly run the binary. You can also give an alternate installation prefix by passing -DCMAKE_INSTALL_PREFIX=/my/alternative/path to cmake before compiling. Don't know why the newer version isn't finding the joystick. What does ls -l /dev/input say? It's been so long since I did anything with this that I can't remember anything.

Sincerely, Mathias Panzenböck


Black Lives Matter - BLM

WilsonBradley commented 3 years ago

Understand.. I lose memory after not using to.. ;-) Thanks for your help

Here is the output ╮ ╰─ ls -l /dev/input ─╯ total 0 crw-rw----+ 1 root input 13, 64 Jan 9 10:40 event0 crw-rw----+ 1 root input 13, 0 Jan 9 10:40 js0 crw-rw---- 1 root input 13, 63 Jan 9 10:40 mice

Let me know if you want to see paths of the working qjoypad 4.1

WilsonBradley commented 3 years ago

no errors compiling and installing 4.3

╭─░▒▓ ~/qjoypad/build  on master   ✔  with fenix@fenixpi  at 02:44:14 PM ▓▒░─╮ ╰─ cmake .. -DCMAKE_INSTALL_PREFIX=./ -DCMAKE_BUILD_TYPE=Release ─╯ -- Using device directory: /dev/input -- Configuring done -- Generating done -- Build files have been written to: /home/fenix/qjoypad/build

╮ ╰─ sudo make install ─╯ [ 3%] Built target translations_target [100%] Built target qjoypad Install the project... -- Install configuration: "Release" -- Up-to-date: /home/fenix/qjoypad/build/share/applications/qjoypad.desktop -- Up-to-date: /home/fenix/qjoypad/build/share/qjoypad/translations/qjoypad_de.qm -- Up-to-date: /home/fenix/qjoypad/build/share/qjoypad/translations/qjoypad_nl.qm -- Up-to-date: /home/fenix/qjoypad/build/share/icons/hicolor/24x24/apps/qjoypad.png -- Up-to-date: /home/fenix/qjoypad/build/share/icons/hicolor/64x64/apps/qjoypad.png -- Up-to-date: /home/fenix/qjoypad/build/bin/qjoypad

WilsonBradley commented 3 years ago

This is interesting.. here is after apt install of 4.1 (original working) ╮ ╰─ sudo find -name qjoypad ─╯ [sudo] password for fenix: ./qjoypad ./qjoypad/build/src/qjoypad

This is directories after 4.3 on top of 4.1 cmake .. -DCMAKE_BUILD_TYPE=Release
╭─░▒▓ ~ 
╰─ sudo find -name qjoypad ─╯ [sudo] password for fenix: ./qjoypad ./qjoypad/build/share/qjoypad ./qjoypad/build/bin/qjoypad ./qjoypad/build/src/qjoypad