Strict Standards: Non-static method phpbb_feed_factory::init() should not be called statically in /home/jacius/rubygame/forums/feed.php on line 66
[phpBB Debug] PHP Notice: in file /feed.php on line 171: Cannot modify header information - headers already sent by (output started at /feed.php:66)
[phpBB Debug] PHP Notice: in file /feed.php on line 172: Cannot modify header information - headers already sent by (output started at /feed.php:66)
Rubygame Forums 2011-07-11T21:05:11+00:00 http://rubygame.org/forums/feed.php?f=4&t=1266 2011-07-11T21:05:11+00:00 http://rubygame.org/forums/viewtopic.php?t=1266&p=2019#p2019 <![CDATA[Re: Deployment using Ocra.]]> Statistics: Posted by roguelikedev — Mon Jul 11, 2011 9:05 pm


]]>
2011-07-08T22:07:56+00:00 http://rubygame.org/forums/viewtopic.php?t=1266&p=2011#p2011 <![CDATA[Re: Deployment using Ocra.]]>
roguelikedev wrote:
I have of course tried requiring rake, although I'm not sure what rubygame needs it for in the first place; no dice. Any suggestions?

I'm pretty sure the dependency on Rake is left over from the old days when Rubygame was a compiled extension. It's probably not needed anymore, although I have not yet personally tested installing the gem without it.

If you're feeling adventurous, you could download the Rubygame 2.6.4 source, and edit the Rakefile to remove this line of code:

Code:
  s.add_dependency( "rake", ">=0.7.0" )

Then run "gem uninstall rubygame" to remove the old gem, "rake gem" to build the new gem, and "gem install pkg/rubygame-2.6.4.gem" to install the new gem. I think you should then be able to build an OCRA binary without a dependency on Rake.

Statistics: Posted by jacius — Fri Jul 08, 2011 10:07 pm


]]>
2011-07-08T17:36:22+00:00 http://rubygame.org/forums/viewtopic.php?t=1266&p=2010#p2010 <![CDATA[Re: Deployment using Ocra.]]>

gem 'rake', '>=0.7.0'
require 'rake'

I stumbled into this 100% via "try everything, no matter how stupid" method and have no idea why it worked, particularly because I didn't have a version of rake lower than 0.7.0 installed.

Statistics: Posted by roguelikedev — Fri Jul 08, 2011 5:36 pm


]]>
2011-07-07T07:26:39+00:00 http://rubygame.org/forums/viewtopic.php?t=1266&p=2006#p2006 <![CDATA[Deployment using Ocra.]]>
game.rb:
Code:
#!/usr/bin/env ruby
require 'rubygame'


From MINGW32 console:

$ ocra game.rb

=== Loading script to check dependencies
Warning: Function 'arcColor' not found in [C:/windows/system32/SDL_gfx.dll]
Warning: Function 'arcRGBA' not found in [C:/windows/system32/SDL_gfx.dll]
Warning: Function 'filledPolygonColorMT' not found in [C:/windows/system32/SDL_gfx.dll]
Warning: Function 'filledPolygonRGBAMT' not found in [C:/windows/system32/SDL_gfx.dll]
Warning: Function 'texturedPolygonMT' not found in [C:/windows/system32/SDL_gfx.dll]
Warning: Function 'rotateSurface90Degrees' not found in [C:/windows/system32/SDL_gfx.dll]
=== Detected gem ffi-1.0.9-x86-mingw32 (loaded, files)
=== 45 files, 472914 bytes
=== Detected gem nice-ffi-0.4 (loaded, files)
=== 9 files, 61014 bytes
=== Detected gem ruby-sdl-ffi-0.4 (loaded, files)
=== 24 files, 113885 bytes
=== Detected gem rubygame-2.6.4 (loaded, files)
=== 55 files, 1087341 bytes
=== Including 52 encoding support files (2741248 bytes, use --no-enc to exclude)
=== Building game.exe
=== Adding user-supplied source files
=== Adding ruby executable ruby.exe
=== Adding detected DLL c:/Ruby192/bin/zlib1.dll
=== Adding library files
=== Compressing 8312492 bytes
=== Finished building game.exe (1994355 bytes)


I'm not concerned about the warnings. I know where they come from. This is what I am concerned about:

$ game.exe

C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rake (>= 0.7.0) amongst [ffi-1.0.9-x86-mingw32, nice-ffi-0.4, ocra-1.3.0, ruby-sdl-ffi-0.4, rubygame-2.6.4] (Gem::LoadError)
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:759:in `block in activate_dependencies'
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:756:in `each'
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:756:in `activate_dependencies'
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:741:in `activate'
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems.rb:211:in `rescue in try_activate'
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/lib/ruby/site_ruby/1.9.1/rubygems.rb:208:in `try_activate'
from <internal:gem_prelude>:218:in `try_activate'
from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/DOCUME~1/SNEAK~1/LOCALS~1/Temp/ocr497.tmp/src/map.rb:3:in `<main>'


$ rake --version

rake, version 0.9.2


I have of course tried requiring rake, although I'm not sure what rubygame needs it for in the first place; no dice. Any suggestions?

Statistics: Posted by roguelikedev — Thu Jul 07, 2011 7:26 am


]]>