Author Topic: Getting started developing on Ubuntu  (Read 6088 times)

Pantheon

  • Guest
Getting started developing on Ubuntu
« on: August 12, 2010, 03:11:23 am »
Hi Everyone,
Im new to this Dingoo scene and im trying to get my bearings.

I'll start by introducing myself,
Im 22 and from Scotland, i've been programming in C/C++ for over 8 years now (x86 windows).
My programming work is in all areas but mostly I make games and graphics demos.
I was drawn to the Dingoo to try my hand at some low level coding, the actual Dingoo should be arriving
tommorow.

I've been reading all the data sheets I can find and info on the SDK's but it's unfortunate that concrete
documentation is lacking in many areas.

First off,
Im trying to get a working tool-chain setup on a Ubuntu virtual machine (actualy the MintLinux distro)
but I cant find much documentation on setting one up (or setting up GCC-Mipsel-uCLibc cross compiler).
I have seen the compiler running on Cygwin, but I wondered if anyone could give me pointers to setup a
compiler running on real Linux?

If I get this working then perhaps I can contribute to the WIKI so that others may do the same.

Thanks,
Pantheon


Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #2 on: August 12, 2010, 04:01:11 am »
Thanks for your reply, ValdikSS

[EDIT]

Oops, I just re-checked your link and saw that it was for the Tool-Chain and not BuildRoot as I first thought.
Sorry about that im quite sleepy at the moment, and im getting confused by all this new Dingoo stuff.

Cool, i'll try and check out that package tommorow and see if I can install it properly.
Thanks again.

[/EDIT]
« Last Edit: August 12, 2010, 04:14:08 am by Pantheon »

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: Getting started developing on Ubuntu
« Reply #3 on: August 12, 2010, 07:58:29 am »
Welcome to the dingoo community.

Read the Dingoo Wiki and join us on IRC (#Dingoonity on irc.freenode.net).

Here is an Hello World Tutorial using the mentioned Linux-Toolchain.

http://dingoowiki.com/index.php/Development:Tutorials:HelloWorld


If have also build an Windows Toolchain using Cygwin.

http://sience.schattenkind.net/dingoo/Dingux_Toolchain_for_Windows.htm


b.regards
SiENcE

Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #4 on: August 12, 2010, 11:36:05 am »
Thanks SiENcE thoes links are exactly what I was after  :)
My dingoo arived about 5 minuits ago, so i'll setup the tool chain while its charging.

zear

  • * Moderator
  • Posts: 2381
Re: Getting started developing on Ubuntu
« Reply #5 on: August 12, 2010, 12:07:44 pm »
Just to make it clear, we're all talking about and giving links to tutorials about Dingux, which is a linux port to the Dingoo.
It is not the system that comes presinstalled with the Dingoo, and you will have to 1) flash the bootloader 2) buy a mini/microSD card
in order to run Dingux on your Dingoo.

Join our irc for more info, installation help, etc ;)

Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #6 on: August 12, 2010, 12:28:29 pm »
Thanks for your post zear,
I'll definately join the IRC channel at some point soon and pester you guys  ;D
Its probably the best way to be brought up to speed on the Dingoo.

I'll be buying a mini-sd card later today to install Dingux to.
I also have the tool chain set up now so thanks for the help, that tutorial was very clear.

Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #7 on: August 12, 2010, 10:04:20 pm »
So I managed to get a 2GB mini SD card, and found that putting Linux onto it was extremely easy.
I used all the latest elements I could find, like SiENcE's awesome kernel. So its a blank slate right
now, nothing on it apart from GMenu2X  8).

I's so impressed by the work all you guys have put in, it looks and functions great.
Its really intuitive to set-up most aspects of Dingux.

I also installed the Nemiver debugger and found that starting and connecting to a GDB server on the
Dingoo was a breeze, and now I'm currently debugging my hello world application. I'm starting to
think I made a great choice buying a Dingoo.

Do many people debug using that actual dingoo or do they just debug on their workstation before
uploading the binary to the dingoo? This is the first time I've used proper remote debugging so its
quite fun for me right now  :D

darfgarf

  • Guest
Re: Getting started developing on Ubuntu
« Reply #8 on: August 13, 2010, 09:05:31 am »
some things(if you're planning on being cross-platform) should be debugged on the pc for ease of coding, and if you run something with 320x240x16 sdl surface it'll just open itself a window (if your window manager is the least bit existant), so up to you

i generally load things on the dingoo, and launch through telnet + gdb, anything heavier than that debugging wise i just compile a version for the pc and do it there, or gdb server + remote debugger


on another note: you're having to debug a hello world? what's wrong with you? :P

Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #9 on: August 13, 2010, 02:06:55 pm »
On another note: you're having to debug a hello world? what's wrong with you? :P

Haha, only as a test for the GDB server  :D

darfgarf

  • Guest
Re: Getting started developing on Ubuntu
« Reply #10 on: August 13, 2010, 02:40:53 pm »
Haha, only as a test for the GDB server  :D

still counts, but anyways, sounds like you're all setup

you hereby have 2 days to release something worthwhile  ;D

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: Getting started developing on Ubuntu
« Reply #11 on: August 13, 2010, 03:04:16 pm »
Do many people debug using that actual dingoo or do they just debug on their workstation before
uploading the binary to the dingoo? This is the first time I've used proper remote debugging so its
quite fun for me right now  :D

Currently i'm coding using SDL on pc and later doing an Mipsel Makefile. For tests i use telnet, ftp to transfer the files and vnc-server to watch whats going on the dingoo screen. So i don't have to take a dingoo in my hand (of couse i have to add key functions to vnc-server).

Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #12 on: August 14, 2010, 01:21:26 am »
Argh, I just had to move my Dingoo dev box to another computer because
of some buggy Intel video drivers on my old one and it kept crashing.
But its all good now.

I've also been writing some scripts to automate the transfer of my program to the Dingoo,
and starting all the debugging apps. I found that kdbg is much better suited to debug the
Dingoo than Nemiver if anyone is interested.

you hereby have 2 days to release something worthwhile  ;D

Haha,
In all all seriousness though that a good point.

Does anyone have any ideas for a useful app/mod I could write?
My knowledge of Linux is still quite limited but I learn fast.

Some of the ideas I had would involve extending the GMenu2X to add in some developer friendly options:
Such as menu option to start an application from the GDBServer.
A little file manager.
A simple terminal program (just an interface to bash for the Dingoo controls).
A tftp program to make transfering programs quicker than full ftp.
.... and more things along those lines.

But you guys know the Dingoo better than I do right, so what would you suggest?
What little application would ease your dev on the dingoo?
(should this be a new thread?)

Cycron

  • Guest
Re: Getting started developing on Ubuntu
« Reply #13 on: August 14, 2010, 02:28:58 am »
Argh, I just had to move my Dingoo dev box to another computer because
of some buggy Intel video drivers on my old one and it kept crashing.
But its all good now.

I've also been writing some scripts to automate the transfer of my program to the Dingoo,
and starting all the debugging apps. I found that kdbg is much better suited to debug the
Dingoo than Nemiver if anyone is interested.

you hereby have 2 days to release something worthwhile  ;D

Haha,
In all all seriousness though that a good point.

Does anyone have any ideas for a useful app/mod I could write?
My knowledge of Linux is still quite limited but I learn fast.

Some of the ideas I had would involve extending the GMenu2X to add in some developer friendly options:
Such as menu option to start an application from the GDBServer.
A little file manager.
A simple terminal program (just an interface to bash for the Dingoo controls).
A tftp program to make transfering programs quicker than full ftp.
.... and more things along those lines.

But you guys know the Dingoo better than I do right, so what would you suggest?
What little application would ease your dev on the dingoo?
(should this be a new thread?)
could you change Dingux Write to have a QWERTY keyboard layout?
or maybe a Dictionary application?

I'm just trying to figure out how to make an application for it. I can't find any tutorials anywhere...

darfgarf

  • Guest
Re: Getting started developing on Ubuntu
« Reply #14 on: August 14, 2010, 09:35:11 am »
Pantheon, do you want me to send you the source for my halfmade file manager, don't have time to finish it (and can't really be bothered) but it'd be a good template for things like initiating sdl/whatever

Pretty please take it off my hands, hate having unfinished programs lying around :D

Pantheon

  • Guest
Re: Getting started developing on Ubuntu
« Reply #15 on: August 14, 2010, 11:30:01 pm »
Pantheon, do you want me to send you the source for my halfmade file manager, don't have time to finish it (and can't really be bothered) but it'd be a good template for things like initiating sdl/whatever

Pretty please take it off my hands, hate having unfinished programs lying around :D

Awesome, yeah that would be cool. You can just PM a link I guess would be the easiest thing.
I just installed Code Blocks 10 and have written a few little test apps, just testing input and display.
I'd certainly like to check out your code, and perhaps continue its development.

could you change Dingux Write to have a QWERTY keyboard layout?
or maybe a Dictionary application?

I'm just trying to figure out how to make an application for it. I can't find any tutorials anywhere...

I'll try and download the source to Dingux Write tonight and have a look.
That seems like a fairly good first program/mod for the Dingoo.
I'll keep you posted...

[edit]
It seems the source for Dingux Write is not availible. Perhaps i'll code my own editor with a qwerty layout,
or ask the author for the source.
[/edit]
« Last Edit: August 15, 2010, 02:12:47 am by Pantheon »

darfgarf

  • Guest
Re: Getting started developing on Ubuntu
« Reply #16 on: August 15, 2010, 08:22:23 am »
here's the source for fillman (yes you have to keep that name if anything becomes of it  ;D), and it has to be gpl as it uses sdl_picofont, version 3 is what i generally use, 2 should be fine aswell though.

download the .png and rename it to fillman.tar.gz  (stupid filetype restrictions)

should be pretty straight forward, though i haven't actually compiled it for the dingoo yet, and it's pretty ugly code, probably a few memory leaks in there somewhere