I would like to use sarl3 http://griff.sourceforge.net/sarl3_compiling.html for my degree thesis, but i had some problem in installing it. I'm using arch linux, i installed all the required package, but i get some error with ruby (i tried with ruby 1.8 and 1.9, but the error is still there).
first the "make" had some problem to find the ruby.h so I set the ruby/build_deps.mak with the correct path for ruby.
the next problem i had:
(the <?> are < ' >)
In file included from sarl_string_table.cpp:2:
sarl_bit_set.h:23: error: variable or field ?sarl_finalize_bit_set? declared void
sarl_bit_set.h:23: error: ?GC_PTR? was not declared in this scope
sarl_bit_set.h:23: error: ?GC_PTR? was not declared in this scope
make[1]: *** [sarl_string_table.o] Error 1
make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9'
make: *** [build] Error 2
i solved it editing my gc.h file, with this:
#ifndef GC_PTR
#define GC_PTR void*
#endif
and the previous error was solved, but now i get a new error about ruby:
sarl_rb_get_object.h:7: error: ?VALUE? does not name a type
sarl_rb_get_object.h:8: error: variable or field ?sarl_set_ruby_object? declared void
sarl_rb_get_object.h:8: error: ?VALUE? was not declared in this scope
sarl_rb_get_object.h:8: error: expected primary-expression before ?void?
sarl_rb_get_object.cpp:19: error: ?VALUE? was not declared in this scope
sarl_rb_get_object.cpp:20: error: ?VALUE? was not declared in this scope
sarl_rb_get_object.cpp:20: error: template argument 2 is invalid
sarl_rb_get_object.cpp:20: error: template argument 1 is invalid
sarl_rb_get_object.cpp:21: error: template argument 2 is invalid
sarl_rb_get_object.cpp:21: error: template argument 5 is invalid
sarl_rb_get_object.cpp:21: error: invalid type in declaration before ?;? token
sarl_rb_get_object.cpp: In function ?void sarl_free_ruby_object(void*)?:
sarl_rb_get_object.cpp:28: error: request for member ?erase? in ?global_ptr_map?, which is of non-class type ?SarlRubyPtrMap?
sarl_rb_get_object.cpp: At global scope:
sarl_rb_get_object.cpp:31: error: ?VALUE? does not name a type
sarl_rb_get_object.cpp: In function ?int sarl_exists_ruby_object(void*)
?:
sarl_rb_get_object.cpp:54: error: expected initializer before ?it?
sarl_rb_get_object.cpp:55: error: ?it? was not declared in this scope
sarl_rb_get_object.cpp:55: error: request for member ?end? in ?global_ptr_map?, which is of non-class type ?SarlRubyPtrMap?
sarl_rb_get_object.cpp: At global scope:
sarl_rb_get_object.cpp:59: error: variable or field ?sarl_set_ruby_object? declared void
sarl_rb_get_object.cpp:59: error: ?VALUE? was not declared in this scope
sarl_rb_get_object.cpp:59: error: expected primary-expression before ?void?
make[2]: *** [sarl_rb_get_object.o] Error 1
make[2]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby'
make: *** [build] Error 2
so what shell i do? :(
thanks,
Ivan