Menu

Ubuntu compile problems

Help
Borris
2006-04-29
2013-04-23
  • Borris

    Borris - 2006-04-29

    I can't compile on Ubuntu 5.04 - the compiler seems to think that there are duplicate case values, although looking in the cpp file, there don't appear to be any.

    root@borris_1:/home/borris_1/gizmod-2.1 # make
    make  all-recursive
    make[1]: Entering directory `/home/borris_1/gizmod-2.1'
    Making all in config
    make[2]: Entering directory `/home/borris_1/gizmod-2.1/config'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/borris_1/gizmod-2.1/config'
    Making all in libGizmo
    make[2]: Entering directory `/home/borris_1/gizmod-2.1/libGizmo'
    if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../     -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -g -O2 -MT GizmoDeviceInput.lo -MD -MP -MF ".deps/GizmoDeviceInput.Tpo" -c -o GizmoDeviceInput.lo GizmoDeviceInput.cpp; \
    then mv -f ".deps/GizmoDeviceInput.Tpo" ".deps/GizmoDeviceInput.Plo"; else rm -f ".deps/GizmoDeviceInput.Tpo"; exit 1; fi
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../ -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -MT GizmoDeviceInput.lo -MD -MP -MF .deps/GizmoDeviceInput.Tpo -c GizmoDeviceInput.cpp  -fPIC -DPIC -o .libs/GizmoDeviceInput.o
    GizmoDeviceInput.cpp: In member function `const char*
       GizmoDeviceInput::getKeyStringFromCode(int)':
    GizmoDeviceInput.cpp:599: error: duplicate case value
    GizmoDeviceInput.cpp:593: error: previously used here
    GizmoDeviceInput.cpp:713: error: duplicate case value
    GizmoDeviceInput.cpp:523: error: previously used here
    GizmoDeviceInput.cpp:715: error: duplicate case value
    GizmoDeviceInput.cpp:531: error: previously used here
    GizmoDeviceInput.cpp:717: error: duplicate case value
    GizmoDeviceInput.cpp:533: error: previously used here
    GizmoDeviceInput.cpp:719: error: duplicate case value
    GizmoDeviceInput.cpp:535: error: previously used here
    GizmoDeviceInput.cpp:721: error: duplicate case value
    GizmoDeviceInput.cpp:537: error: previously used here
    GizmoDeviceInput.cpp:723: error: duplicate case value
    GizmoDeviceInput.cpp:539: error: previously used here
    GizmoDeviceInput.cpp:725: error: duplicate case value
    GizmoDeviceInput.cpp:541: error: previously used here
    GizmoDeviceInput.cpp:727: error: duplicate case value
    GizmoDeviceInput.cpp:543: error: previously used here
    GizmoDeviceInput.cpp:733: error: duplicate case value
    GizmoDeviceInput.cpp:595: error: previously used here
    GizmoDeviceInput.cpp:735: error: duplicate case value
    GizmoDeviceInput.cpp:597: error: previously used here
    make[2]: *** [GizmoDeviceInput.lo] Error 1
    make[2]: Leaving directory `/home/borris_1/gizmod-2.1/libGizmo'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/borris_1/gizmod-2.1'
    make: *** [all] Error 2
    root@borris_1:/home/borris_1/gizmod-2.1 #

     
    • Tim Burrell

      Tim Burrell - 2006-05-10

      Hey Borris,

      Basically what's happening here is your kernel headers don't have certain keys defined that come standard with default kernels.  This is most likely the fault of your Ubunutu's kernel maintainer, but could also be caused by a difference in kernel versions (the input subsystem is still under fairly heavy development).

      I'll likely put a bunch of checks in the next release to make sure no one encounters these problems again, but for now you can edit GizmoDeviceInput.cpp and remove the offending lines of code (taking them out won't do anything other than not let you detect or use those keys... which are usually for japanese keyboards and what not).

       
    • FishFoot

      FishFoot - 2006-10-15

      This solution worked for Xebian on the Xbox as well.  I believe that's a 2.4.31 debian kernel.

       

Log in to post a comment.