# Forum: ARM programming with GCC/GNU tools Graphical Libraries, ARM9, Yagarto, Eclipse

 Author: Michael Rodrigues (michael_rodrigues) Posted on: 2009-04-27 10:58

Rate this post
 0 ▲ useful ▼ not useful
Hi,

I am using the following:

- AT91SAM9RL64 (ARM9 based controller)
- 320 x 240 RGB TFT LCD
- Eclipse compiler (from YAGARTO site, along with the YAGARTO toolchain)

Now, the graphical libraries provided with the yagarto toolchain is X11.
Is it possible to use another graphical library, like the directFB or
miniGUI (or any other) instead of X11. If yes then could anyone guide me
through this.

Mike

 Author: Martin Thomas (mthomas) (Moderator) Posted on: 2009-04-30 21:19

Rate this post
 0 ▲ useful ▼ not useful
Michael Rodrigues wrote:
> Hi,
>
> I am using the following:
>
> - AT91SAM9RL64 (ARM9 based controller)
> - 320 x 240 RGB TFT LCD
> - Eclipse compiler (from YAGARTO site, along with the YAGARTO toolchain)
>
> Now, the graphical libraries provided with the yagarto toolchain is X11.

Are you sure that you do not confuse this with the TCL/TK
support-libraries used for Insight-gdb? There are not meant for the
target but for the host.

> Is it possible to use another graphical library, like the directFB or
> miniGUI (or any other) instead of X11.

Yes, there are several graphics libraries for "small" controllers. I.e.
commercial products from Ramtex or Segger, licensed-to-product libraries
from Luminary Micro and Microchip and various more or less free codes
like i.e. from NXP for the former Sharp controllers, Microwindows(it has
another name now-forgotten) and several more.

> If yes then could anyone guide me through this.

Sorry. I may help with more specific questions.

 Author: Michael Rodrigues (michael_rodrigues) Posted on: 2009-05-02 11:11

Rate this post
 0 ▲ useful ▼ not useful
Martin Thomas wrote:
> Michael Rodrigues wrote:
>> Hi,
>>
>> I am using the following:
>>
>> - AT91SAM9RL64 (ARM9 based controller)
>> - 320 x 240 RGB TFT LCD
>> - Eclipse compiler (from YAGARTO site, along with the YAGARTO toolchain)
>>
>> Now, the graphical libraries provided with the yagarto toolchain is X11.
>
> Are you sure that you do not confuse this with the TCL/TK
> support-libraries used for Insight-gdb?

the toolchain does have tcl/tk support libraries.

could u tell me what did u mean by this.? -> "There are not meant for
the target but for the host."

>> Is it possible to use another graphical library, like the directFB or
>> miniGUI (or any other) instead of X11.
>
> Yes, there are several graphics libraries for "small" controllers. I.e.
> commercial products from Ramtex or Segger, licensed-to-product libraries
> from Luminary Micro and Microchip and various more or less free codes
> like i.e. from NXP for the former Sharp controllers, Microwindows(it has
> another name now-forgotten) and several more.
>
>> If yes then could anyone guide me through this.
>
> Sorry. I may help with more specific questions.

thank u for your advice. i will take a look at the options provided.

Another thing that i would like to know is -> according to the setup
mentioned (and also that i have just started out with the graphical LCD
stufff). Please correct me if i'm wrong by saying, I have two options
here...

1. to "use" the X11 or other libraries that require an OS (X-server) and
port this onto the target processor.

2. to develop my own libraries so that i don't require an OS and it can
be run as a standalone system.

From what i have seen, i feel the second option will require a lot of
development time & expertise. (but will involve more fun)

thanks

 Author: Martin Thomas (mthomas) (Moderator) Posted on: 2009-05-03 01:42

Rate this post
 0 ▲ useful ▼ not useful
> could u tell me what did u mean by this.? -> "There are not meant for
> the target but for the host."
http://www.airs.com/ian/configure/configure_5.html#SEC30

 Author: Michael Rodrigues (michael_rodrigues) Posted on: 2009-05-13 09:15

Rate this post
 0 ▲ useful ▼ not useful
Hi,

I have used a function called Xdrawfilled() (check it out on the
trounce.com @ http://tronche.com/gui/x/xlib/function-index.html)

Now, in order to use this function, i have to include the X10.h in the
X11 folder (linux). when i checked with the Yagarto toolchain, this
particular library (X10.h) and the function XDrawFilled is not
present...

Now my question is, can i add (or patch) this library (*.so file) into
the Yagarto toolchain so that this function can be used when ported to
an ARM controller..

Thanx

 Author: Andreas Schwarz (andreas) (Admin) Posted on: 2009-05-16 10:52

Rate this post
 0 ▲ useful ▼ not useful
Michael Rodrigues wrote:
> Now my question is, can i add (or patch) this library (*.so file) into
> the Yagarto toolchain so that this function can be used when ported to
> an ARM controller..

No. Your're on the wrong track. Take a look at the function arguments:
 display Specifies the connection to the X server. d Specifies the drawable. gc Specifies the GC. vlist Specifies a pointer to the list of vertices that indicate what to draw. vcount Specifies how many vertices are in vlist. 

You need a whole lot of dependencies in order to use this function,
starting with an X server, which in turn requires a POSIX OS and a
display driver. If you want to go down that road, get a Linux image and
toolchain for your board instead of Yagarto, which is a toolchain for
standalone programs. Even then you're in for some serious work if you
want to get X running on this. miniGUI should be easier, but you
probably need some kind of OS for it, too.

• Post long source code as attachment, not in the text

### Formatting options

• [c]C code[/c]
• [avrasm]AVR assembler code[/avrasm]
• [code]code in other languages, ASCII drawings[/code]
• $formula (LaTeX syntax)$
 Name: E-mail address (not visible): Subject: Searching for similar topics... Attachment: Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one. Text: