Help installing rubysdl gem

Hi

I am trying to install rubysdl gem on 1.9.1p243. I have tried to

install using gem install and by compiling the source code. But the
source code doesn’t compile. It throws the following error. I see the
same output while trying to install using “gem install”. Could some one
help me out here. I have no clue whats wrong.

Thanks in advance
Venkat

ruby-sdl/rubysdl-2.0.1b$ sudo make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux
-I/usr/local/include/ruby-1.9.1/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -I/usr/X11R6/include
-D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses
-I/usr/local/include/SDL -D ENABLE_OPENGL -o rubysdl_ttf.o -c
rubysdl_ttf.c
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux
-I/usr/local/include/ruby-1.9.1/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -I/usr/X11R6/include
-D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses
-I/usr/local/include/SDL -D ENABLE_OPENGL -o rubysdl_event_key.o -c
rubysdl_event_key.c
rubysdl_event_key.c: In function ‘define_const’:
rubysdl_event_key.c:30: error: ‘SDLK_FIRST’ undeclared (first use in
this function)
rubysdl_event_key.c:30: error: (Each undeclared identifier is reported
only once
rubysdl_event_key.c:30: error: for each function it appears in.)
rubysdl_event_key.c:108: error: ‘SDLK_WORLD_0’ undeclared (first use in
this function)
rubysdl_event_key.c:109: error: ‘SDLK_WORLD_1’ undeclared (first use in
this function)
rubysdl_event_key.c:110: error: ‘SDLK_WORLD_2’ undeclared (first use in
this function)
rubysdl_event_key.c:111: error: ‘SDLK_WORLD_3’ undeclared (first use in
this function)
rubysdl_event_key.c:112: error: ‘SDLK_WORLD_4’ undeclared (first use in
this function)
rubysdl_event_key.c:113: error: ‘SDLK_WORLD_5’ undeclared (first use in
this function)
rubysdl_event_key.c:114: error: ‘SDLK_WORLD_6’ undeclared (first use in
this function)
rubysdl_event_key.c:115: error: ‘SDLK_WORLD_7’ undeclared (first use in
this function)
rubysdl_event_key.c:116: error: ‘SDLK_WORLD_8’ undeclared (first use in
this function)
rubysdl_event_key.c:117: error: ‘SDLK_WORLD_9’ undeclared (first use in
this function)
rubysdl_event_key.c:118: error: ‘SDLK_WORLD_10’ undeclared (first use in
this function)
rubysdl_event_key.c:119: error: ‘SDLK_WORLD_11’ undeclared (first use in
this function)
rubysdl_event_key.c:120: error: ‘SDLK_WORLD_12’ undeclared (first use in
this function)
rubysdl_event_key.c:121: error: ‘SDLK_WORLD_13’ undeclared (first use in
this function)
rubysdl_event_key.c:122: error: ‘SDLK_WORLD_14’ undeclared (first use in
this function)
rubysdl_event_key.c:123: error: ‘SDLK_WORLD_15’ undeclared (first use in
this function)
rubysdl_event_key.c:124: error: ‘SDLK_WORLD_16’ undeclared (first use in
this function)
rubysdl_event_key.c:125: error: ‘SDLK_WORLD_17’ undeclared (first use in
this function)
rubysdl_event_key.c:126: error: ‘SDLK_WORLD_18’ undeclared (first use in
this function)
rubysdl_event_key.c:127: error: ‘SDLK_WORLD_19’ undeclared (first use in
this function)
rubysdl_event_key.c:128: error: ‘SDLK_WORLD_20’ undeclared (first use in
this function)
rubysdl_event_key.c:129: error: ‘SDLK_WORLD_21’ undeclared (first use in
this function)
rubysdl_event_key.c:130: error: ‘SDLK_WORLD_22’ undeclared (first use in
this function)
rubysdl_event_key.c:131: error: ‘SDLK_WORLD_23’ undeclared (first use in
this function)
rubysdl_event_key.c:132: error: ‘SDLK_WORLD_24’ undeclared (first use in
this function)
rubysdl_event_key.c:133: error: ‘SDLK_WORLD_25’ undeclared (first use in
this function)
rubysdl_event_key.c:134: error: ‘SDLK_WORLD_26’ undeclared (first use in
this function)
rubysdl_event_key.c:135: error: ‘SDLK_WORLD_27’ undeclared (first use in
this function)
rubysdl_event_key.c:136: error: ‘SDLK_WORLD_28’ undeclared (first use in
this function)
rubysdl_event_key.c:137: error: ‘SDLK_WORLD_29’ undeclared (first use in
this function)
rubysdl_event_key.c:138: error: ‘SDLK_WORLD_30’ undeclared (first use in
this function)
rubysdl_event_key.c:139: error: ‘SDLK_WORLD_31’ undeclared (first use in
this function)
rubysdl_event_key.c:140: error: ‘SDLK_WORLD_32’ undeclared (first use in
this function)
rubysdl_event_key.c:141: error: ‘SDLK_WORLD_33’ undeclared (first use in
this function)
rubysdl_event_key.c:142: error: ‘SDLK_WORLD_34’ undeclared (first use in
this function)
rubysdl_event_key.c:143: error: ‘SDLK_WORLD_35’ undeclared (first use in
this function)
rubysdl_event_key.c:144: error: ‘SDLK_WORLD_36’ undeclared (first use in
this function)
rubysdl_event_key.c:145: error: ‘SDLK_WORLD_37’ undeclared (first use in
this function)
rubysdl_event_key.c:146: error: ‘SDLK_WORLD_38’ undeclared (first use in
this function)
rubysdl_event_key.c:147: error: ‘SDLK_WORLD_39’ undeclared (first use in
this function)
rubysdl_event_key.c:148: error: ‘SDLK_WORLD_40’ undeclared (first use in
this function)
rubysdl_event_key.c:149: error: ‘SDLK_WORLD_41’ undeclared (first use in
this function)
rubysdl_event_key.c:150: error: ‘SDLK_WORLD_42’ undeclared (first use in
this function)
rubysdl_event_key.c:151: error: ‘SDLK_WORLD_43’ undeclared (first use in
this function)
rubysdl_event_key.c:152: error: ‘SDLK_WORLD_44’ undeclared (first use in
this function)
rubysdl_event_key.c:153: error: ‘SDLK_WORLD_45’ undeclared (first use in
this function)
rubysdl_event_key.c:154: error: ‘SDLK_WORLD_46’ undeclared (first use in
this function)
rubysdl_event_key.c:155: error: ‘SDLK_WORLD_47’ undeclared (first use in
this function)
rubysdl_event_key.c:156: error: ‘SDLK_WORLD_48’ undeclared (first use in
this function)
rubysdl_event_key.c:157: error: ‘SDLK_WORLD_49’ undeclared (first use in
this function)
rubysdl_event_key.c:158: error: ‘SDLK_WORLD_50’ undeclared (first use in
this function)
rubysdl_event_key.c:159: error: ‘SDLK_WORLD_51’ undeclared (first use in
this function)
rubysdl_event_key.c:160: error: ‘SDLK_WORLD_52’ undeclared (first use in
this function)
rubysdl_event_key.c:161: error: ‘SDLK_WORLD_53’ undeclared (first use in
this function)
rubysdl_event_key.c:162: error: ‘SDLK_WORLD_54’ undeclared (first use in
this function)
rubysdl_event_key.c:163: error: ‘SDLK_WORLD_55’ undeclared (first use in
this function)
rubysdl_event_key.c:164: error: ‘SDLK_WORLD_56’ undeclared (first use in
this function)
rubysdl_event_key.c:165: error: ‘SDLK_WORLD_57’ undeclared (first use in
this function)
rubysdl_event_key.c:166: error: ‘SDLK_WORLD_58’ undeclared (first use in
this function)
rubysdl_event_key.c:167: error: ‘SDLK_WORLD_59’ undeclared (first use in
this function)
rubysdl_event_key.c:168: error: ‘SDLK_WORLD_60’ undeclared (first use in
this function)
rubysdl_event_key.c:169: error: ‘SDLK_WORLD_61’ undeclared (first use in
this function)
rubysdl_event_key.c:170: error: ‘SDLK_WORLD_62’ undeclared (first use in
this function)
rubysdl_event_key.c:171: error: ‘SDLK_WORLD_63’ undeclared (first use in
this function)
rubysdl_event_key.c:172: error: ‘SDLK_WORLD_64’ undeclared (first use in
this function)
rubysdl_event_key.c:173: error: ‘SDLK_WORLD_65’ undeclared (first use in
this function)
rubysdl_event_key.c:174: error: ‘SDLK_WORLD_66’ undeclared (first use in
this function)
rubysdl_event_key.c:175: error: ‘SDLK_WORLD_67’ undeclared (first use in
this function)
rubysdl_event_key.c:176: error: ‘SDLK_WORLD_68’ undeclared (first use in
this function)
rubysdl_event_key.c:177: error: ‘SDLK_WORLD_69’ undeclared (first use in
this function)
rubysdl_event_key.c:178: error: ‘SDLK_WORLD_70’ undeclared (first use in
this function)
rubysdl_event_key.c:179: error: ‘SDLK_WORLD_71’ undeclared (first use in
this function)
rubysdl_event_key.c:180: error: ‘SDLK_WORLD_72’ undeclared (first use in
this function)
rubysdl_event_key.c:181: error: ‘SDLK_WORLD_73’ undeclared (first use in
this function)
rubysdl_event_key.c:182: error: ‘SDLK_WORLD_74’ undeclared (first use in
this function)
rubysdl_event_key.c:183: error: ‘SDLK_WORLD_75’ undeclared (first use in
this function)
rubysdl_event_key.c:184: error: ‘SDLK_WORLD_76’ undeclared (first use in
this function)
rubysdl_event_key.c:185: error: ‘SDLK_WORLD_77’ undeclared (first use in
this function)
rubysdl_event_key.c:186: error: ‘SDLK_WORLD_78’ undeclared (first use in
this function)
rubysdl_event_key.c:187: error: ‘SDLK_WORLD_79’ undeclared (first use in
this function)
rubysdl_event_key.c:188: error: ‘SDLK_WORLD_80’ undeclared (first use in
this function)
rubysdl_event_key.c:189: error: ‘SDLK_WORLD_81’ undeclared (first use in
this function)
rubysdl_event_key.c:190: error: ‘SDLK_WORLD_82’ undeclared (first use in
this function)
rubysdl_event_key.c:191: error: ‘SDLK_WORLD_83’ undeclared (first use in
this function)
rubysdl_event_key.c:192: error: ‘SDLK_WORLD_84’ undeclared (first use in
this function)
rubysdl_event_key.c:193: error: ‘SDLK_WORLD_85’ undeclared (first use in
this function)
rubysdl_event_key.c:194: error: ‘SDLK_WORLD_86’ undeclared (first use in
this function)
rubysdl_event_key.c:195: error: ‘SDLK_WORLD_87’ undeclared (first use in
this function)
rubysdl_event_key.c:196: error: ‘SDLK_WORLD_88’ undeclared (first use in
this function)
rubysdl_event_key.c:197: error: ‘SDLK_WORLD_89’ undeclared (first use in
this function)
rubysdl_event_key.c:198: error: ‘SDLK_WORLD_90’ undeclared (first use in
this function)
rubysdl_event_key.c:199: error: ‘SDLK_WORLD_91’ undeclared (first use in
this function)
rubysdl_event_key.c:200: error: ‘SDLK_WORLD_92’ undeclared (first use in
this function)
rubysdl_event_key.c:201: error: ‘SDLK_WORLD_93’ undeclared (first use in
this function)
rubysdl_event_key.c:202: error: ‘SDLK_WORLD_94’ undeclared (first use in
this function)
rubysdl_event_key.c:203: error: ‘SDLK_WORLD_95’ undeclared (first use in
this function)
rubysdl_event_key.c:263: error: ‘SDLK_RMETA’ undeclared (first use in
this function)
rubysdl_event_key.c:264: error: ‘SDLK_LMETA’ undeclared (first use in
this function)
rubysdl_event_key.c:278: error: ‘SDLK_LAST’ undeclared (first use in
this function)
rubysdl_event_key.c: In function ‘Key_s_scan’:
rubysdl_event_key.c:311: warning: implicit declaration of function
‘SDL_GetKeyState’
rubysdl_event_key.c:311: warning: assignment makes pointer from integer
without a cast
rubysdl_event_key.c: In function ‘Key_s_press_p’:
rubysdl_event_key.c:320: error: ‘SDLK_FIRST’ undeclared (first use in
this function)
rubysdl_event_key.c:320: error: ‘SDLK_LAST’ undeclared (first use in
this function)
make: *** [rubysdl_event_key.o] Error 1

Any Help!

Hello Bill

Thanks for the reply.

sdl-config --version returns 1.3.0

Venkat

Bill K. wrote:

Venkat A. wrote:

rubysdl_event_key.c
rubysdl_event_key.c: In function ‘define_const’:
rubysdl_event_key.c:30: error: ‘SDLK_FIRST’ undeclared (first use in
this function)

Which version of SDL is installed on your system?

Seems perhaps rubysdl may not have been tested with
the version of SDL on your system.

(This is purely a guess based on the error message,
which seems to indicate that even though
rubysdl_event_key.c’s #include’s have succeeded,
the defines it is expecting aren’t available.)

Regards,

Bill

Venkat A. wrote:

rubysdl_event_key.c
rubysdl_event_key.c: In function ‘define_const’:
rubysdl_event_key.c:30: error: ‘SDLK_FIRST’ undeclared (first use in
this function)

Which version of SDL is installed on your system?

Seems perhaps rubysdl may not have been tested with
the version of SDL on your system.

(This is purely a guess based on the error message,
which seems to indicate that even though
rubysdl_event_key.c’s #include’s have succeeded,
the defines it is expecting aren’t available.)

Regards,

Bill

Venkat A. wrote:

sdl-config --version returns 1.3.0

My understanding is that SDL 1.3 is still evolving
( http://wiki.libsdl.org/moin.cgi/Roadmap )
and that several API’s may have changed since SDL
1.2.

I’d suggest installing the latest stable release
of SDL 1.2 ( http://www.libsdl.org/download-1.2.php )

Might have better luck building rubysdl against
that version. (But again, I am only guessing.)

Regards,

Bill

Thanks Bill

 Uninstalled the 1.3.0 version and found that there is 1.2.13 

already installed on the system. Built and installed rubysdl. It worked
like a charm.

Venkat

Bill K. wrote:

Venkat A. wrote:

sdl-config --version returns 1.3.0

My understanding is that SDL 1.3 is still evolving
( http://wiki.libsdl.org/moin.cgi/Roadmap )
and that several API’s may have changed since SDL
1.2.

I’d suggest installing the latest stable release
of SDL 1.2 ( http://www.libsdl.org/download-1.2.php )

Might have better luck building rubysdl against
that version. (But again, I am only guessing.)

Regards,

Bill

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs