On 7 Jul 2012, at 09:20, kaixuan306 wrote: > (1)I am working on a project now. I want to make FLTK 1.3 with Nxlib and > Nano-x running on linux kernel 2.6 in my embedded arm platform(EP9315).Will > some one give some directions on how to implement that?
Note that the Nxlib / Nano-x combination is not "officially" supported as a target for fltk. There are ports for fltk on Nano-x, but they are contributed and supported by others, so we don't have much directly relevant experience with Nano-x to give. For what it is worth, my own experiments with Nano-x (many years ago) were not a great success and I gave up on using it and converted to using a "conventional" X-server on my embedded targets instead. The Nano-x system is just different enough from being a real X-server to give all sorts of odd little problems that can be hard to resolve. For what it is worth, I strongly suggest you do all your experiments and prototypes on your desktop linux box, with a conventional X-server, so that the behaviour is a normal as possible. Then, once you have a working prototype you can simply recompile that for the Nano-x system and see what works - hopefully by that point any remaining difficulties will be specific to the Nano-x porting, so that makes it easier to isolate the cause of any bugs and fix them. Also, developing on a desktop system is a lot more convenient than developing on a resource-limited embedded target. As an aside, have you considered just using a "real" X-server on your target anyway? The tiny-X / K-drive stuff works pretty well on resource limited hosts, and is much more like a regular X-server than Nano-x in general. I would imagine that the EP9315 could cope fine with that set up - though I have never tried a EP9315 myself, it seems adequate; we ran X-servers on 50MHz i386's back in the day, so a 200 MHz ARM should cope fine. My Raspberry-Pi is fine running a full X-server (although that is at 700 MHz admittedly!) > (2)If I want to display a word on the embedded arm platform's screen, the > programm fltk how to find the word's font ? Not quite sure what you are asking for here - I suggest you play around with the examples in the test folder of the standard fltk tarball, and with the extra examples form the examples folder, get a feel for what works. Also, as I suggested above, try everything on your regular linux system first, then once it is working as you want, port it to the embedded target. > (3)I run the example fonts in FLTK 1.3 's test on my embedded arm platform, > there is not any found in the list. OK - I think you are saying that: -- You have built the "fonts" demo from the test folder of a fltk-1.3.x tarball, targeted at your EP9315 board -- When you run the demo, no list of fonts is displayed This sounds like the fltk library is not managing to find any fonts installed in your Nxlib system. Do you have any fonts installed? For what it is worth, I seem to recall having issues with fonts under Nano-x before too, though I stopped using it... It may well be that font handling under Nxlib needs special coding in your application if fltk can not do it for you - perhaps the Nano-x guys can help you with that? I still think you should spend a little time getting familiar with fltk on a regular desktop system first (need not even be a linux box since fltk is very consistent across the platforms that it supports) and then once you know what is normal, it will make it easier to triage bugs that occur in the porting of the code onto the embedded target. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

