Forums Archived

The forums are being archived. See this topic for more information.

Compiling with OCRA

Get help and support with Rubygame

Compiling with OCRA

Postby cavygalaxy » Wed May 19, 2010 4:35 pm

hey I have a problem...
whenever i compile a game with OCRA, there is no sound.
can someone help me?
thanks. :)
Cannibal Troll
A troll that trolls other trolls, thus making the internet a better place
User avatar
cavygalaxy
 
Posts: 18
Joined: Tue Oct 27, 2009 2:35 am

Re: Compiling with OCRA

Postby Groogy » Wed May 19, 2010 7:31 pm

A) You don't compile in ruby
B) What's OCRA?
Groogy
 
Posts: 11
Joined: Tue May 18, 2010 10:57 am

Re: Compiling with OCRA

Postby cavygalaxy » Wed May 19, 2010 8:44 pm

Groogy wrote:A) You don't compile in ruby
B) What's OCRA?

A) Yes i can compile in ruby
B) OCRA is a compiler. look here.
Cannibal Troll
A troll that trolls other trolls, thus making the internet a better place
User avatar
cavygalaxy
 
Posts: 18
Joined: Tue Oct 27, 2009 2:35 am

Re: Compiling with OCRA

Postby shawn42 » Wed May 19, 2010 9:15 pm

I'd suggest checking the dlls that you're specifying to ocra. I'm not sure if they all _all_ needed, but I've used SDL_mixer.dll, libogg-0.dll, libvorbis-0.dll, mikmod.dll.

You can see an example of an ocra'd app shell here:
http://github.com/downloads/shawn42/gamebox/gamebox_app.zip
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Compiling with OCRA

Postby cavygalaxy » Thu May 20, 2010 1:42 am

Thank You SO Much! :D
Cannibal Troll
A troll that trolls other trolls, thus making the internet a better place
User avatar
cavygalaxy
 
Posts: 18
Joined: Tue Oct 27, 2009 2:35 am

Re: Compiling with OCRA

Postby Groogy » Thu May 20, 2010 4:11 am

cool, never heard of OCRA before, looks nice except that it don't seem to support linux :(

And ocra isn't a compiler, far from it. It only makes an self-extracting exe file with the interpreter in it. The ruby code is still normal source code. To count as a compiler it has to convert the source to machine code like C
Groogy
 
Posts: 11
Joined: Tue May 18, 2010 10:57 am

Re: Compiling with OCRA

Postby shawn42 » Thu May 20, 2010 1:17 pm

Ocra uses the loose definition of compiler. That which compiles things together... =P

You are correct in that it doesn't compile your rubies into machine language.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Compiling with OCRA

Postby Groogy » Fri May 21, 2010 6:42 am

I know this is kind of off-topic, but does anybody know if OCRA will support linux(Not counting the possibility of Wine)?
Groogy
 
Posts: 11
Joined: Tue May 18, 2010 10:57 am

Re: Compiling with OCRA

Postby shawn42 » Fri May 21, 2010 11:13 am

Doesn't seem off topic to me. ;)

OCRA doesn't support linux, you may want to look at rubyscript2exe.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Compiling with OCRA

Postby Groogy » Fri May 21, 2010 2:23 pm

shawn42 wrote:OCRA doesn't support linux, you may want to look at rubyscript2exe.


But I think I read somewhere that rubyscript2exe was dropped? Does it support 1.9.x?
Groogy
 
Posts: 11
Joined: Tue May 18, 2010 10:57 am

Next

Return to Help & Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron