EmbDev.net

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


von Michael R. (michael_rodrigues)


Rate this post
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

von Martin T. (mthomas) (Moderator)


Rate this post
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.

von Michael R. (michael_rodrigues)


Rate this post
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

von Martin T. (mthomas) (Moderator)


Rate this post
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

von Michael R. (michael_rodrigues)


Rate this post
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

von Andreas S. (andreas) (Admin)


Rate this post
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:
1
display    Specifies the connection to the X server.
2
d   Specifies the drawable.
3
gc   Specifies the GC.
4
vlist   Specifies a pointer to the list of vertices that indicate what to draw.
5
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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.