batocera-linux / batocera-emulationstation

MIT License
293 stars 236 forks source link

'WIIMOTE_GUN' was not declared in this scope #1740

Open Ubuntigroid opened 4 weeks ago

Ubuntigroid commented 4 weeks ago

Concerned project

Standalone emulationstation

Distribution Version

No response

Architecture

x86_64

Issue description

Hello everyone! When I trying build emulationstation, i get error 'WIIMOTE_GUN' was not declared in this scope.

Logs and data

/usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp: In member function 'bool GunManager::updateGunPosition(Gun*)': /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:789:23: error: 'WIIMOTE_GUN' was not declared in this scope 789 | if (gun->mName == WIIMOTE_GUN) | ^~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:801:20: error: 'class Gun' has no member named 'm_internalX' 801 | gun->mX = gun->m_internalX; | ^~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:802:20: error: 'class Gun' has no member named 'm_internalY' 802 | gun->mY = gun->m_internalY; | ^~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:803:31: error: 'class Gun' has no member named 'm_internalButtonState' 803 | gun->mLButtonDown = (gun->m_internalButtonState & 1) == 1; | ^~~~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:804:31: error: 'class Gun' has no member named 'm_internalButtonState' 804 | gun->mRButtonDown = (gun->m_internalButtonState & 2) == 2; | ^~~~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:805:31: error: 'class Gun' has no member named 'm_internalButtonState' 805 | gun->mMButtonDown = (gun->m_internalButtonState & 4) == 4; | ^~~~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:806:35: error: 'class Gun' has no member named 'm_internalButtonState' 806 | gun->mStartButtonDown = (gun->m_internalButtonState & 8) == 8; | ^~~~~ /usr/src/RPM/BUILD/EmulationStation-2.11.2/es-core/src/GunManager.cpp:807:36: error: 'class Gun' has no member named 'm_internalButtonState' 807 | gun->mSelectButtonDown = (gun->m_internalButtonState & 16) == 16; | ^~~~~ make[2]: *** [es-core/CMakeFiles/es-core.dir/build.make:202: es-core/CMakeFiles/es-core.dir/src/GunManager.cpp.o] Error 1

Ubuntigroid commented 3 weeks ago

After installing udev headers error was fixed TODO: Add udev-dev package to build deps list

nadenislamarre commented 2 weeks ago

should be fixed by https://github.com/batocera-linux/batocera-emulationstation/pull/1747