Author Topic: Compiling R's source code on Linux  (Read 8432 times)

0 Members and 1 Guest are viewing this topic.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Compiling R's source code on Linux
« on: September 22, 2007, 02:19:28 pm »
I would really like to compile R on linux.

I tried with gcc (gcc game.cpp) and got this.

Does anyone know how or what libraries I would need to do this?


FliesLikeABrick and I attempted compiling R and tried a lot of things to get it to compile without errors.
Here is our chatlog.
« Last Edit: September 22, 2007, 02:57:35 pm by jrgp »
There are other worlds than these

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Compiling R's source code on Linux
« Reply #1 on: September 22, 2007, 03:01:25 pm »
The summary is that we installed SDL on his machine, fixed references to SDL.h to be SDL/SDL.h, downloaded a copy of fmod and pointed gcc to it with -I /path/to/fmod, and then cleaned up a few warnings.

Right now there are still quite a few errors left, and I'm not sure what is causing them .  I have a feeling it is because gcc is more strict by default than whatever MM and rfreak are using.  If we could fix the code that'd be nice, but if someone knows the option for gcc to ignore these (assuming I know what I'm talking about), that'd work for now as well.

Offline rfreak

  • Soldier
  • **
  • Posts: 152
Re: Compiling R's source code on Linux
« Reply #2 on: September 22, 2007, 03:17:50 pm »
can I send to one of you my code of R that's not using Fmod because I looked at the errors and there's some of them caused by Fmod

Date Posted: September 22, 2007, 04:13:39 pm
and whas it a joke "FliesLikeABrick: opengl of course" because R dosent use openGl

Date Posted: September 22, 2007, 04:15:15 pm
The library you need are SDL and Fmod but for linux I'm not sure for the font maybe you will need Freetype but I think Freetype is only for SDL_TTF. And R dosent use SDL_TTF
R the coolest game ever

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Compiling R's source code on Linux
« Reply #3 on: September 22, 2007, 03:18:41 pm »
isn't SDL opengl based?

Offline rfreak

  • Soldier
  • **
  • Posts: 152
Re: Compiling R's source code on Linux
« Reply #4 on: September 22, 2007, 03:30:20 pm »
no. you can use openGL with SDL but SDL is a library by it's own
and R only uses SDL
R the coolest game ever

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Compiling R's source code on Linux
« Reply #5 on: September 22, 2007, 03:32:44 pm »
Oh, ok.

Offline rfreak

  • Soldier
  • **
  • Posts: 152
Re: Compiling R's source code on Linux
« Reply #6 on: September 22, 2007, 03:37:00 pm »
Here's what you need for R (I will say it so every one can read and learn ;)  )

SDL:

For SDL to code games you need the development library http://www.libsdl.org/download-1.2.php
you go under "Development Libraries:" and choose the one you need if you use linux you choose linux.

FMOD: www.fmod.org

this one is the most triky because if you use Visual C++ on windows you wont have problem but for other compilers you can have problem I know that Fmod with C++ games dosent work under Dev-cpp and I don't know if it work's for the linux compiler maybe only in C and we are using C++
so to solve this use the code that dosent use fmod I can send it to you.  
 
R the coolest game ever

Offline 1qwerty

  • Major(1)
  • Posts: 2
Re: Compiling R's source code on Linux
« Reply #7 on: March 25, 2009, 11:57:18 am »
Hey I have registered on these forums as well, I didn't remember that.  :)

Where can I get R's source code? I never played it and I want to give it a go (on Linux of course).

Edit: Hey there's a link in a sticky. But the link doesn't work.  :'(
« Last Edit: March 25, 2009, 12:00:06 pm by 1qwerty »

Offline 1qwerty

  • Major(1)
  • Posts: 2
Re: Compiling R's source code on Linux
« Reply #8 on: April 13, 2009, 02:23:57 am »
Hello? Is this forum dead?