no mater how I try to take this I keep getting compilation errors. the first one was getting was just an environment var issue, easy fix. but the one with the least issues is the linux fix branch here is the error and full trace if it helps.
~/prog/ruby/sfml/dl-install/rbSFML-linux_fix$ rake --trace
* Invoke default (first_time)
* Invoke all (first_time)
* Invoke system (first_time)
* Execute system
Compiling ext/System/Clock.cpp
In file included from ext/System/Clock.hpp:26:0,
from ext/System/Clock.cpp:24:
ext/rbSFML.hpp: In instantiation of ‘VALUE rbMacros::Allocate(VALUE) [with T = sf::Clock; VALUE = long unsigned int]’:
ext/System/Clock.cpp:32:75: required from here
ext/rbSFML.hpp:57:39: error: ‘ToRuby’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return ToRuby( object, aKlass );
^
ext/rbSFML.hpp:81:25: note: ‘template VALUE rbMacros::ToRuby(T, VALUE)’ declared here, later in the translation unit
static inline VALUE ToRuby( T anObject, VALUE aKlass )
^
rake aborted!
Command failed with status (1): [g++ -g -O2 -fstack-protector --param=ssp-b...]
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils.rb:55:in block in create_shell_runner' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils.rb:45:incall'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils.rb:45:in sh' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils_ext.rb:37:insh'
/home/maek/prog/ruby/sfml/dl-install/rbSFML-linux_fix/Rakefile:116:in block in compile_o' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_list.rb:81:ineach'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_list.rb:81:in each_with_index' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_list.rb:81:ineach_with_index'
/home/maek/prog/ruby/sfml/dl-install/rbSFML-linux_fix/Rakefile:112:in compile_o' /home/maek/prog/ruby/sfml/dl-install/rbSFML-linux_fix/Rakefile:179:inblock in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:in call' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:inblock in execute'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:in each' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:inexecute'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:179:in block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:in invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:201:inblock in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:in each' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:ininvoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:178:in block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:in invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:201:inblock in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:in each' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:ininvoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:178:in block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:in invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:165:ininvoke'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:150:in invoke_task' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:inblock (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in each' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:inblock in top_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:115:in run_with_threads' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:100:intop_level'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:78:in block in run' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:instandard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in run' /var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in<top (required)>'
/usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in'
Tasks: TOP => default => all => system
im not much of a c++ person(why i am using rbsfml in the first place) but it looks like some scope errors and there may be ore in other systems of rbsfml
im running ubuntu 14.04 with ruby1.9.3
and rake 10.3.2
no mater how I try to take this I keep getting compilation errors. the first one was getting was just an environment var issue, easy fix. but the one with the least issues is the linux fix branch here is the error and full trace if it helps.
~/prog/ruby/sfml/dl-install/rbSFML-linux_fix$ rake --trace * Invoke default (first_time) * Invoke all (first_time) * Invoke system (first_time) * Execute system Compiling ext/System/Clock.cpp In file included from ext/System/Clock.hpp:26:0, from ext/System/Clock.cpp:24: ext/rbSFML.hpp: In instantiation of ‘VALUE rbMacros::Allocate(VALUE) [with T = sf::Clock; VALUE = long unsigned int]’: ext/System/Clock.cpp:32:75: required from here ext/rbSFML.hpp:57:39: error: ‘ToRuby’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] return ToRuby( object, aKlass ); ^ ext/rbSFML.hpp:81:25: note: ‘template VALUE rbMacros::ToRuby(T, VALUE)’ declared here, later in the translation unit
static inline VALUE ToRuby( T anObject, VALUE aKlass )
^
rake aborted!
Command failed with status (1): [g++ -g -O2 -fstack-protector --param=ssp-b...]
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils.rb:55:in '
Tasks: TOP => default => all => system
block in create_shell_runner' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils.rb:45:in
call' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils.rb:45:insh' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_utils_ext.rb:37:in
sh' /home/maek/prog/ruby/sfml/dl-install/rbSFML-linux_fix/Rakefile:116:inblock in compile_o' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_list.rb:81:in
each' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_list.rb:81:ineach_with_index' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/file_list.rb:81:in
each_with_index' /home/maek/prog/ruby/sfml/dl-install/rbSFML-linux_fix/Rakefile:112:incompile_o' /home/maek/prog/ruby/sfml/dl-install/rbSFML-linux_fix/Rakefile:179:in
block in <top (required)>' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:incall' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:in
block in execute' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:ineach' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:in
execute' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:179:inblock in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:ininvoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:201:in
block in invoke_prerequisites' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:ineach' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:in
invoke_prerequisites' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:178:inblock in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:ininvoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:201:in
block in invoke_prerequisites' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:ineach' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:199:in
invoke_prerequisites' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:178:inblock in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:ininvoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:165:in
invoke' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:150:ininvoke_task' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in
block (2 levels) in top_level' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:ineach' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in
block in top_level' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:115:inrun_with_threads' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:100:in
top_level' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:78:inblock in run' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in
standard_exception_handling' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:inrun' /var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in
<top (required)>' /usr/local/bin/rake:23:inload' /usr/local/bin/rake:23:in
im not much of a c++ person(why i am using rbsfml in the first place) but it looks like some scope errors and there may be ore in other systems of rbsfml
im running ubuntu 14.04 with ruby1.9.3 and rake 10.3.2