Menu

[linux] compiling kodilib - error

Help
SharpZQ
2012-10-15
2012-10-15
  • SharpZQ

    SharpZQ - 2012-10-15

    Hi, I have downloaded the sources and followed the Readme.txt. I first went to compile the "kodilib" and I got an error with make. I am running Xubuntu 11.10

    Here it is:

    kiki_the_nanobot/kodilib/linux$ make
    g++ -c -I ../src/handler -I ../src/tools -I ../src/types -I ../src/widgets -I ../src/windows -I /usr/X11/include -I /usr/include/SDL -D_REENTRANT -o ../src/handler/KEventHandler.o ../src/handler/KEventHandler.cpp
    In file included from ../src/handler/KPickHandler.h:9:0,
    from ../src/handler/KEventHandler.h:30,
    from ../src/handler/KEventHandler.cpp:6:
    ../src/handler/KPickable.h: In member function ‘virtual int KPickable::getMinId()’:
    ../src/handler/KPickable.h:46:43: error: ‘INT_MAX’ was not declared in this scope
    ../src/handler/KPickable.h: In member function ‘virtual int KPickable::getMaxId()’:
    ../src/handler/KPickable.h:47:43: error: ‘INT_MAX’ was not declared in this scope
    make: *** [../src/handler/KEventHandler.o] Error 1

    I have all the needed SDL development software installed... I have no idea what I could have done wrong.

     
    • Thorsten Kohnhorst

      Hello,

      try including limits.h somewhere.
      Otherwise search the internets or your headers to find where those are defined on your system.

      You might also check on wikipedia what is missing:
      https://en.wikipedia.org/wiki/C_data_types

      good luck!

      Hi, I have downloaded the sources and followed the Readme.txt. I first went to compile the "kodilib" and I got an error with make. I am running Xubuntu 11.10

      Here it is:

      kiki_the_nanobot/kodilib/linux$ make
      g++ -c -I ../src/handler -I ../src/tools -I ../src/types -I ../src/widgets -I ../src/windows -I /usr/X11/include -I /usr/include/SDL -D_REENTRANT -o ../src/handler/KEventHandler.o ../src/handler/KEventHandler.cpp
      In file included from ../src/handler/KPickHandler.h:9:0,
      from ../src/handler/KEventHandler.h:30,
      from ../src/handler/KEventHandler.cpp:6:
      ../src/handler/KPickable.h: In member function ‘virtual int KPickable::getMinId()’:
      ../src/handler/KPickable.h:46:43: error: ‘INT_MAX’ was not declared in this scope
      ../src/handler/KPickable.h: In member function ‘virtual int KPickable::getMaxId()’:
      ../src/handler/KPickable.h:47:43: error: ‘INT_MAX’ was not declared in this scope
      make: *** ../src/handler/KEventHandler.o Error 1

      I have all the needed SDL development software installed... I have no idea what I could have done wrong.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/kiki/discussion/267220/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/

       

Log in to post a comment.