Created attachment 457382 [details] games-util/antimicro-2.23 The version of antimicro in portage is very outdated. The new version is required for compatibility with >=media-libs/libsdl2-2.0.5 and there is a new maintainer, repository and homepage for antimicro.
@gentoo dev: Please verify, that the new upstream is not a malware fork. @Nitanjan, thank you very much! a few comments on the .ebuild * please bump to EAPI=6 (we always try to use the latest EAPI) * please change KEYWORDS="amd64 x86" to KEYWORDS="~amd64 ~x86" * one could create/update the metadata file https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/
Created attachment 457456 [details] games-util/antimicro-2.23 EAPI bumped to 6 and keyworded as unstable.
For those looking to map joystick buttons to keys, not even the updated antimicro ebuild worked for me for a Bluetooth Playstation 3 SixAxis controller. games-util/qjoypad-4.1.0 works a charm, though.
This should be of higher importance - the latest version in Portage tree is completely broken at runtime since libsdl2-2.0.5 - joysticks are detected, but no input events are received. Bumping it myself to 2.23 fixed it for me, and the software can be set up to be more responsive than qjoypad thanks to customizable input polling rate. The fork is most definitely legitimate, since the previous upstream location has put news about the move in README.md.
Can't compile. >> from /var/tmp/portage/games-util/antimicro-2.23/work/antimicro-2.23/src/joystick.cpp:20: >> /usr/include/x86_64-pc-linux-gnu/SDL2/SDL_config.h:33:10: fatal error: SDL_platform.h: No such file or directory After apply patch for libsdl2-2.0.7.ebuild: > MULTILIB_WRAPPED_HEADERS=( > /usr/include/SDL2/SDL_config.h >+ /usr/include/SDL2/SDL_platform.h >+ /usr/include/SDL2/begin_code.h >+ /usr/include/SDL2/close_code.h > ) compile successful
I get a huge stack of undefined references on the final link. No idea why. CMakeFiles/antimicro.dir/src/main.cpp.o: In function `QMetaTypeId<JoyButtonSlot*>::qt_metatype_id()': main.cpp:(.text._ZN11QMetaTypeIdIP13JoyButtonSlotE14qt_metatype_idEv[_ZN11QMetaTypeIdIP13JoyButtonSlotE14qt_metatype_idEv]+0x57): undefined reference to `JoyButtonSlot::staticMetaObject' CMakeFiles/antimicro.dir/src/main.cpp.o: In function `QMetaTypeId<SetJoystick*>::qt_metatype_id()': main.cpp:(.text._ZN11QMetaTypeIdIP11SetJoystickE14qt_metatype_idEv[_ZN11QMetaTypeIdIP11SetJoystickE14qt_metatype_idEv]+0x57): undefined reference to `SetJoystick::staticMetaObject' CMakeFiles/antimicro.dir/src/main.cpp.o: In function `QMetaTypeId<InputDevice*>::qt_metatype_id()': main.cpp:(.text._ZN11QMetaTypeIdIP11InputDeviceE14qt_metatype_idEv[_ZN11QMetaTypeIdIP11InputDeviceE14qt_metatype_idEv]+0x57): undefined reference to `InputDevice::staticMetaObject' CMakeFiles/antimicro.dir/src/main.cpp.o: In function `QMetaTypeId<AutoProfileInfo*>::qt_metatype_id()': main.cpp:(.text._ZN11QMetaTypeIdIP15AutoProfileInfoE14qt_metatype_idEv[_ZN11QMetaTypeIdIP15AutoProfileInfoE14qt_metatype_idEv]+0x57): undefined reference to `AutoProfileInfo::staticMetaObject' CMakeFiles/antimicro.dir/src/main.cpp.o: In function `CommandLineUtility::~CommandLineUtility()': main.cpp:(.text._ZN18CommandLineUtilityD2Ev[_ZN18CommandLineUtilityD5Ev]+0x14): undefined reference to `vtable for CommandLineUtility' CMakeFiles/antimicro.dir/src/main.cpp.o: In function `CommandLineUtility::~CommandLineUtility()': main.cpp:(.text._ZN18CommandLineUtilityD0Ev[_ZN18CommandLineUtilityD5Ev]+0x14): undefined reference to `vtable for CommandLineUtility' ... ...
I also got the a huge stack of undefined references on the final link, but after applying this patch it linked successfully: https://github.com/AntiMicro/antimicro/pull/207/commits/d5cfe429edb8c5f6f039153a0f646f2198c06b16 It doesn't recognize my joystick though despite compiling in joystick support for libsdl2. Not sure what the problem is, but that may have nothing to do with this app.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f917374bcbafc1e0ec7ecad84ada6331a67b8fa commit 0f917374bcbafc1e0ec7ecad84ada6331a67b8fa Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-08-25 15:21:48 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-08-25 15:21:48 +0000 games-util/antimicro: 2.23 version bump, EAPI-6 Thanks-to: Niranjan <niranjan.public@gmail.com> Thanks-to: Small_Penguin <dark.shadow@gmx.at> Closes: https://bugs.gentoo.org/603712 Package-Manager: Portage-2.3.48, Repoman-2.3.10 games-util/antimicro/Manifest | 1 + games-util/antimicro/antimicro-2.23.ebuild | 54 ++++++++++++++++++++++ .../files/antimicro-2.23-linking-errors.patch | 40 ++++++++++++++++ 3 files changed, 95 insertions(+)