Author Topic: Where to start for developing for dingux  (Read 2946 times)

lib

  • Guest
Where to start for developing for dingux
« on: April 27, 2010, 09:58:56 am »
Hello folks,

I have done a fair bit of C programming and wanted to get up and running with dingux dev.

I don't suppose somebody could point me int he right direction for a starters guide could they? You know, setting up the tools, and hello world or a bit more?

Thanks!

Lib.

darfgarf

  • Guest
Re: Where to start for developing for dingux
« Reply #1 on: April 27, 2010, 11:25:34 am »
no real starters guide, but get the toolchain, get it working, start coding, it's pretty simple if you know your way round linux

you'll get better dev help in the irc channel (#dingoonity on freenode), that's where most of us discuss things

lib

  • Guest
Re: Where to start for developing for dingux
« Reply #2 on: April 27, 2010, 11:32:45 am »
Thanks. Perhaps I will make one as I figure it out.

Is that the Booboo's tool chain?

darfgarf

  • Guest
Re: Where to start for developing for dingux
« Reply #3 on: April 27, 2010, 11:49:05 am »
i'm using a modified version of elta's, but booboos will still work fine, just put it under /opt/mipsel-linux-uclibc and add /opt/blah/usr/bin to the path, then just use mipsel-linux-gcc as you would gcc, should work fine

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: Where to start for developing for dingux
« Reply #4 on: April 27, 2010, 03:08:13 pm »
the only modification from eltas was an update of sdl.

joyrider

  • Posts: 220
    • Willems Soft
Re: Where to start for developing for dingux
« Reply #5 on: April 27, 2010, 05:44:15 pm »
your better of compiling your own libs as you need and compile staticly with them, i trust myselve more then someone else ;)

lib

  • Guest
Re: Where to start for developing for dingux
« Reply #6 on: May 03, 2010, 01:35:17 pm »
Thanks folks.

I have set up a virtual machine running Ubuntu. I have set up the tool chain from Booboo in the opt directory and added it to my path.

I grabbed a project from somewhere and tried to compile it. It failed, as it failed to find certain files. I am not in front of the machine now, so I am sorry I can't be more specific, but I am not really asking for a solution.

I know I need to go back and brush up on makefiles a bit more and general *nix conventions as I haven't really used them much and, though I compiled apps for 68k processors for a few year, it was all done through Cygwin.

Could someone post a simple hello world application, or maybe one that draws or moves some sprites just so I can use if for testing please? This is just to work out how to get from the basic toolchain set up with source code, through to the Dingux executable, then I can concentrate on familiarising myself with using accessing the hardware.

Thanks!

Lib




ddragoonss

  • Guest
Re: Where to start for developing for dingux
« Reply #7 on: May 03, 2010, 07:31:30 pm »
Thanks folks.

I have set up a virtual machine running Ubuntu. I have set up the tool chain from Booboo in the opt directory and added it to my path.

I grabbed a project from somewhere and tried to compile it. It failed, as it failed to find certain files. I am not in front of the machine now, so I am sorry I can't be more specific, but I am not really asking for a solution.

I know I need to go back and brush up on makefiles a bit more and general *nix conventions as I haven't really used them much and, though I compiled apps for 68k processors for a few year, it was all done through Cygwin.

Could someone post a simple hello world application, or maybe one that draws or moves some sprites just so I can use if for testing please? This is just to work out how to get from the basic toolchain set up with source code, through to the Dingux executable, then I can concentrate on familiarising myself with using accessing the hardware.

Thanks!

Lib

The way I learned, may be wrong, but works:

After you do the opt thing, you need edit the .profile file:

cd ~
gedit .profile


Add this after the last line of the .profile file:

export DINGUX_TOOLCHAIN=/opt/mipsel-linux-uclibc
export DINGUX_TOOLCHAIN_PREFIX=$DINGUX_TOOLCHAIN/usr
export PATH=$PATH:$DINGUX_TOOLCHAIN/usr/bin

Now use the .profile to change the shell:

source .profile


Now create the "hello world!" program:

gedit hello.c

The code:

Code: [Select]
#include <stdio.h>

int main(int argc, char** argv)
{
   printf("Hello World!\n");
   sleep(5);
   return 0;
}


Compiling:

mipsel-linux-gcc hello.c -o hello.dge


 

Post a new topic