![]() |
#31 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Trying it out right now on the qemu
![]() |
![]() |
![]() |
![]() |
#32 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Can you explain how the logging works (LOGPRINTF and WARNPRINTF)? I can't find the location of these logs.
Thanks ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Hi rvs,
Every component has a files called log.h (or something simular) to control the logging of LOGPRINTF, WARNPRINTF and ERRORPRINTF. Default only WARN and ERROR are enabled. The output (default) goes to stderr. To see the output on the emulator, you can press Ctrl-Alt-3. Pressing Ctrl-Alt-1 brings you back to the UI again. |
![]() |
![]() |
![]() |
#34 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Thanks Marcel, very useful information.
Do you develop using Anjuta? I'm guessing it's probably easier that way to quickly test small changes and turn logging on/off, but I still need to figure out how to import the Hackx source code into a (new) Anjuta project. |
![]() |
![]() |
![]() |
#35 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
I use different Anjuta projects for every firmware component (ctb, popupmenu, sysd, etc). One of them I use to start qemu. For each component I also have a separate shell, to execute the make (with correct parameters) and copy the build executable to the qemu (using scp). I have 3 desktops/workspaces, left for the command shells, middle for the Anjuta projects and right for the qemu and a shell that is logged into the qemu (ssh qemu, just press enter for password). For the commands to type I have a 'que-card', see attached file. 'Creating' an Anjuta project is very easy, copy the one from helloworld to the 'root' of one of the firmware components, rename it and start it. Hope this helps. Marcel. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Thanks, it's both helpful and interesting
![]() |
![]() |
![]() |
![]() |
#37 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
My DR development environment: a VirtualBox linux virtual machine, with 4 virtual desktops: 1. qemu, a gnome-terminal with 3 tabs (mainly for scp and qemu shell), and a second gnome-terminal with many tabs (for compiling, light editing, copying/moving files and a shared directory from my real desktop) 2. emacs 3. firefox, with some help html files. Btw, when hacking DR firnware doxygen generated files are quite useful 4. evince, a pdf reader EDIT: I didn't mention I don't use anjuta at all... it doesn't give anything emacs + shell couldn't offer Iņigo |
|
![]() |
![]() |
![]() |
#38 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Thanks Iņigo,
I haven't heard of doxygen before. What do you use it for? |
![]() |
![]() |
![]() |
#39 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
See here: http://www.stack.nl/~dimitri/doxygen/
|
![]() |
![]() |
![]() |
#40 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
Iņigo |
|
![]() |
![]() |
![]() |
#41 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Very interesting, thanks! It seems quite extensive. I'll try it out (in due time).
|
![]() |
![]() |
![]() |
#42 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
Doxygen is a package which parses specially formated sources and generates this kind of documentation. If you want it I can attach here my doxygen configuration in order to help you generate your own docs, as they are big enough to forbid publishing them. Iņigo |
|
![]() |
![]() |
![]() |
#43 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
|
![]() |
![]() |
![]() |
#44 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
$ gzip -d attached_file.gz
There is also a graphical UI tool for doxygen named doxywizard , you can run it and load the provided config file to modify the output. Iņigo |
![]() |
![]() |
![]() |
#45 |
Groupie
![]() ![]() ![]() ![]() Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
|
Thanks again.
![]() I'll try out Doxywizard, too. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR800 Building ctb | dima_tr | iRex Developer's Corner | 6 | 06-30-2010 04:47 AM |
OOOFBTools for book building | BobC | Workshop | 0 | 01-24-2010 01:53 PM |
Having problems building calibre 0.15.4 | angevin | Calibre | 11 | 06-12-2009 07:54 PM |
iLiad Building FLTK for the iLiad | hudson | iRex Developer's Corner | 3 | 04-01-2007 12:33 PM |