Pregunta

Estoy tratando de utilizar un regulador de Xbox 360 como un joystick en openSUSE 11.2. Al intentar compilar xboxdrv ( http://pingus.seul.org/~grumbel/xboxdrv/ ) consigo los errores siguientes:

g++ -o src/xbox_controller.o -c -g -O2 -Wall -ansi -pedantic src/xbox_controller.cpp
In file included from src/xbox_controller.hpp:23,
                 from src/xbox_controller.cpp:24:
src/xbox_generic_controller.hpp:30: error: 'uint8_t' has not been declared
src/xbox_generic_controller.hpp:30: error: 'uint8_t' has not been declared
src/xbox_generic_controller.hpp:31: error: 'uint8_t' has not been declared
In file included from src/xbox_controller.cpp:24:
src/xbox_controller.hpp:38: error: 'uint8_t' has not been declared
src/xbox_controller.hpp:38: error: 'uint8_t' has not been declared
src/xbox_controller.hpp:39: error: 'uint8_t' has not been declared
src/xbox_controller.cpp:54: error: variable or field 'set_rumble' declared void
src/xbox_controller.cpp:54: error: 'uint8_t' was not declared in this scope
src/xbox_controller.cpp:54: error: 'uint8_t' was not declared in this scope
scons: *** [src/xbox_controller.o] Error 1

scons:. Edificio terminado debido a errores

Alguna idea de cómo solucionar este problema?

¿Fue útil?

Solución

Editar src / xbox_controller.hpp, añaden #include <stdint.h> falta a ella (en algún lugar cerca del comienzo).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top