Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#15 Make error kxmame_joy.cpp

open
nobody
None
5
2007-10-12
2007-10-12
Anonymous
No

make error

/usr/include/features.h:153:1: warning: this is the location of the previous definition
In file included from kxmame_joy.cpp:44:
/usr/include/linux/joystick.h:131: error: '__s64' does not name a type
/usr/include/linux/joystick.h:132: error: '__s64' does not name a type
kxmame_joy.cpp: In function 'const char* get_joy_dev()':
kxmame_joy.cpp:76: warning: deprecated conversion from string constant to 'char*'
kxmame_joy.cpp:76: warning: deprecated conversion from string constant to 'char*'
kxmame_joy.cpp:76: warning: deprecated conversion from string constant to 'char*'
make[2]: *** [kxmame_joy.o] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-kxmame/kxmame/src/kxmame-1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-kxmame/kxmame/src/kxmame-1.2'
make: *** [all] Error 2

Discussion

  • Logged In: YES
    user_id=4882
    Originator: NO

    Hi! in http://www.kde-apps.org/content/show.php?content=28270&forumpage=4
    we have a suggestion thats works (compiles don't try my pad yet ) for me .

    --- kxmame.old/trunk/src/kxmame_joy.cpp 2007-05-27 06:24:59.000000000 +0100
    +++ kxmame/src/kxmame_joy.cpp 2008-01-01 03:02:22.000000000 +0000
    @@ -41,7 +41,9 @@ extern "C" {

    #ifdef ENABLE_JOYSTICK
    # ifdef HAVE_LINUX_JOYSTICK_H
    +#undef __STRICT_ANSI__
    # include <linux/joystick.h>
    +#define __STRICT_ANSI__
    # else
    # error Joystick is only supported on Linux. Reconfigure with --disable-joystick.
    # undef ENABLE_JOYSTICK