Setting Up Linux Dev Environment?

GO TO ADMIN PANEL > ADD-ONS AND INSTALL VERTIFORO SIDEBAR TO SEE FORUMS AND SIDEBAR

slinga

Member
Joined
Apr 17, 2001
Messages
1,074
Points
38
Age
36
Website
Visit site
Hi all,

I'm interested in making an entry for the Saturn programming contest. What's the easiest way to get a dev environment setup on Linux? Jo Engine claims support for Linux, but it's not obvious to me how to use it. Any advice? Thanks in advance.
 
  • Like
Reactions: vbt

slinga

Member
Joined
Apr 17, 2001
Messages
1,074
Points
38
Age
36
Website
Visit site
Sorry for the delayed reply. Yes I cloned the git repo:

git clone johannes-fetz/joengine

In /jo/joengine/Compiler/SH_NONE_ELF/bin there appears to be a compiler sh-none-elf-gcc-8.2.0. I think tried to compile a empty main file that includes jo/jo.h:

./sh-none-elf-gcc-8.2.0 main.c -I ~/jo/joengine/jo_engine

And that fails. Any advice? Thanks in advance.
 

slinga

Member
Joined
Apr 17, 2001
Messages
1,074
Points
38
Age
36
Website
Visit site
Hi Antime,

The first errors are related to #defines:
Code:
error: #error "JO_FRAMERATE must be greater than zero"
error: #error "JO_FRAMERATE must be greater than zero"
At the command line I tried defining those two values:

Code:
./sh-none-elf-gcc-8.2.0 main.c -I ~/jo/joengine/jo_engine -DJO_FRAMERATE=30 -DJO_MAX_SPRITE=10
But now I get other errors:

Code:
jo/joengine/jo_engine/jo/sprites.h: In function 'jo_sprite_get_width':
jo/joengine/jo_engine/jo/sprites.h:369:39: error: 'jo_texture_definition' {aka 'struct <anonymous>'} has no member named 'width'
     return (__jo_sprite_def[sprite_id].width);
Lots of those. So not quite sure what's going on.
 

slinga

Member
Joined
Apr 17, 2001
Messages
1,074
Points
38
Age
36
Website
Visit site
Thank you, it was embarrassingly simple. All I had to do was run "compile.sh" in one of the sample dirs.
 
Last edited:
  • Like
Reactions: vbt
Top