AntiMicro / antimicro

[NOT maintained anymore] Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support
1.79k stars 202 forks source link

Please release 2.23 version for Linux #278

Closed trymeouteh closed 3 years ago

trymeouteh commented 5 years ago

The last release is 2.21 which does not work due to the controller not being detected by Antimicro. Please release 2.23 packages. I also tried 2.23 windows version using wine 4.0.1 but the keyboard commands will not work, only mouse movements. :(

cookiEoverdose commented 5 years ago

It depends on the distribution you seek. Version 2.23 has already been packaged by some of them. For instance, I use Fedora. It's been in the repos since early 2017.

edit: See Readme page of the project for other distros, i.e. there is a Ubuntu PPA with 2.23 linked.

eGax commented 5 years ago

@trymeouteh if you are on Arch or something based on it you can build/install the latest version 2.24.1 pretty easy from the AUR: https://aur.archlinux.org/packages/antimicro/

trymeouteh commented 5 years ago

I am on Linux Mint. The Ubuntu PPA does not work since it does not suppory bionic.

I would like a deb or appimage which I can backup and use in the future even if I switch distros

qyot27 commented 5 years ago

Dependencies and source code:

sudo apt-get install build-essential g++ cmake checkinstall ninja-build git qttools5-dev qttools5-dev-tools libsdl1.2-dev libxi-dev libxtst-dev && \
cd ~/ && \
git clone git://github.com/antimicro/antimicro.git && \
cd antimicro && \
wget https://github.com/AntiMicro/antimicro/commit/d5cfe429edb8c5f6f039153a0f646f2198c06b16.patch -O cmake_stop_calling_qt5_wrap_cpp.patch && \
git am cmake_stop_calling_qt5_wrap_cpp.patch

While AntiMicro does support SDL2, it seems SDL2 cannot detect a Joystick as a Joystick on my Ubuntu 19.04 install, and defaults to detecting the Extreme 3D Pro as a Game Controller, which means the twist axis, right-click, set switcher, and possibly even the hat switch no longer work with the profile I've been using for years. There is no problem with it being detected correctly if using SDL 1.2.

Building the source:

mkdir build && \
cd build && \
cmake ../ -G Ninja -DUSE_SDL_2:bool=off && \
ninja && \
    sudo checkinstall --pkgname=antimicro --pkgversion="$(bin/antimicro \
    --version | cut -f3 -d " ")-$(date --rfc-3339=date | sed 's/-//g')-git-$(git rev-parse \
    --short HEAD)" --backup=no --deldoc=yes --delspec=yes --deldesc=yes --strip=yes \
    --fstrans=no --default ninja install

Cleaning up:

cd ~/ && \
sudo rm -R antimicro
trymeouteh commented 5 years ago

I was unable to create a DEB or AppImage but I did find an way to build it from source with these steps

Download the antimicro-2.23 source code zip file Extract the antimicro-2.23 zip file to Downloads/antimicro-2.23 Open the terminal and enter the following commands

sudo apt-get update
sudo apt install libqt4-dev libsdl2-dev libxi-dev libxtst-dev libx11-dev
sudo apt install build-essential
sudo apt install cmake
cd ~/Downloads/antimicro-2.23/
mkdir build && cd build
cmake ..
make
sudo make install
madacol commented 4 years ago

I am on Linux Mint. The Ubuntu PPA does not work since it does not suppory bionic.

I would like a deb or appimage which I can backup and use in the future even if I switch distros

Just replace bionic with artful. The artful package works fine in bionic

deb http://ppa.launchpad.net/mdeguzis/libregeek/ubuntu artful main 
deb-src http://ppa.launchpad.net/mdeguzis/libregeek/ubuntu artful main 
pktiuk commented 3 years ago

Recommended version for Linux users is now AntiMicroX