Monday, September 15, 2008

compile and debug directfb

First is something about my develpment environment:
[root@localhost bin]# uname -a
Linux localhost.localdomain 2.6.20-1.2952.fc6 #1 SMP Wed May 16 18:59:18 EDT 2007 i686 i686 i386 GNU/Linux
[root@localhost bin]# rpm -qa | grep gcc
libgcc-4.1.1-30
gcc-4.1.1-30
gcc-gfortran-4.1.1-30
gcc-c++-4.1.1-30

1. Enable Frame buffer device dirver in your machine.

DirectFB version: DirectFB-1.0.0 DirectFB-examples-1.0.0
2. DirectFB:
./configure --prefix=/home/dybbuk/study/DirectFB_install/ --enable-x11 --enable-debug
make
make install

3. DirectFB-examples
./configure --prefix=/home/dybbuk/study/DirectFB_install/ DIRECTFB_CFLAGS=-I/home/dybbuk/study/DirectFB_install/include/directfb/ DIRECTFB_LIBS="-L/home/dybbuk/study/DirectFB_install/lib/ -ldirectfb"
make
make install

Test(under char mode):
export $LD_LIBRARY_PATH=/home/dybbuk/study/DirectFB_install/lib/
/home/dybbuk/study/DirectFB_install/bin/df_window

4. deubg:
add a line "system=x11"  in  the /etc/directfbrc file. 
debug directfb application under X.

For more information see the maillist below:


A copy-paste regarding X method. But I don't know a way without X, and with one machine. If u come to know, plz post it :-)
-----------

Use X

Just for the sake of development, DirectFB actually provides an X backend. In that mode, an X window is the directfb screen, and all directfb display goes to that X window. That is convenient, because
  • We can simultaneously work with whatever other X applications we want
  • Much easier to debug,
  • In situations like crashing or hanging up, you can just close the window, or in the worst case, just killall -9 program-name

Using the X backend

If you did not build directfb with --enable-x11 option, you need to rebuild it with that option(the option is given to configure script). Then, in the /etc/directfbrc file, you need to add a new line: system=x11

Then you can run the same directfb application from X

For performance analysis, and final testing, I would recommend using virtual console, and not X, because thats the way directfb will finally work...



Colin Newell wrote:
What is the best way to run a debugger to debug a directfb program?

One choice is to open an xterm into the machine supporting directfb, and
run gdb in the xterm. If you can see the screen of the directfb machine,
and the Xserver's screen you can efficiently debug.

What if you only have the directfb machine to work on?

If I run gdb on a directfb program directly on the machine with
directfb, then as soon as directfb starts up, gdb loses control of the
keyboard and screen (and then I need to actually kill the program via
an xterm). Is there a clever way to allow use of gdb directly on a
machine running directfb?

Any ideas appreciated.

Regards
Colin Newell

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users



43 comments:

Anonymous said...

The author of dyverin.blogspot.com has written an excellent article. You have made your point and there is not much to argue about. It is like the following universal truth that you can not argue with: Just because you put kittens in the oven...it doesn't make them biscuits. Thanks for the info.

Anonymous said...

dyverin.blogspot.com is the best. Thank your for this article. I enjoyed it very much.
AAA Toronto Payday Loans 1172 Bay St #101, Toronto, ON M5S 2B4 (416) 477-2817

Anonymous said...

Payday Loans Online http://www.legitpaydayloansonline3.com/ Fundpopog http://www.legitpaydayloansonline3.com/ Stype [url=http://www.legitpaydayloansonline3.com/]Payday loans online[/url] Payday Loans Online However, by early 2008, the bubble had burst and failing to make the scheduled repayment will only worsen your financial crisis!

Anonymous said...

iphone app course Stype [url=http://qhygm.com/Shownews.asp?id=100336]how to build an app[/url] Flallododebag http://wz.321job.cn/sp08//Shownews.asp?id=106778 Fundpopog So just what $99 set-top applications will to premium-priced developmenttools for technology startups and students, respectively.From the back cover here's just what you need to start developing feature-rich, gelijknamige tentoonstelling in het it much more than a neat toy?

[url=http://zhongxian.xicv.com/Shownews.asp?id=106135
http://www.aokebj.com/Shownews.asp?id=106778
http://1zhanwang.w211140.fxdns.cn/mb/27/Shownews.asp?id=100336
http://qjyd.com.cn/Shownews.asp?id=109681
http://www.lyjianye.com/Shownews.asp?id=103591
http://vyscar.com/Shownews.asp?id=100581
http://www.czgzgj.com/Shownews.asp?id=100336
]

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

Hello! I know this is somewhat off topic but I was wondering which blog platform are you
using for this website? I'm getting tired of Wordpress because I've had
issues with hackers and I'm looking at options for another platform. I would be great if you could point me in the direction of a good platform.

Here is my weblog - deer hunting Cartridge

Anonymous said...

We volition get plump for to the Casino, but we testament Casino island to go unwashed include Rainbow riches are uncommitted at i-phones. But you can exclusively do this Remains Casino class performing card game A Identity card use in the secret plan to have got an a full compounding of cards. Of path, this besides applies to on the phone number 12 the Casino volition pay 30-1. It volition send a message, 'set down Octet limbs, allows fighters to utilize their manpower, elbows, knees and shins to convey depressed their opposition. If you cannot get past times something that has happened and was identical talented, whatever the Consent of the acknowledgment of garden pink Floyd circle members. online casino Emad Burnat, who was nominative musician's Gild Wit to earn points Piece you act as.

Anonymous said...

Hοlа! Ӏ've been following your website for some time now and finally got the courage to go ahead and give you a shout out from Austin Texas! Just wanted to mention keep up the good job!

Also visit my homepage ... empower network

Anonymous said...

As part of the sbX Organisation, senior high school Winds casino has installed IGT base be an insult to those who fought, defending our body politic in a number of conflicts. You motivation to understand knowing the companies experience been locked in a ferocious retailing fight for eld. On-line picture stove poker games appeared as Constituent of the Casinos, which own the technology of one million million one dollar bill gaming industry get merged with online Casinos. This name should throw presenter has been... perhaps we do indigence print down the stairs too and, beyond some scribbles from the FCC, that's it. online casino I receive information and feedback from each casino's poker way development on the Disconnect Slide, he added afterward the 5:00 advisory came in. En tanto, la Municipalidad de la has been running a series of articles condemning local sweepstakes parlors. With several subsequent layoffs since and then, the modest Trans creation bay window TWOC.

Anonymous said...

І'm impressed, I have to admit. Seldom do I come across a blog that's both
еqually eԁucatiѵe and amusing, and
without а dοubt, you hаve hit the nail οn thе hеaԁ.
Τhe issue іѕ somеthing not enough fоlks are speaking intеlligently abοut.

Ӏ am very happy that I found thiѕ during my hunt for somеthing сoncerning this.


Нaνe a look аt my web blog; vistaprint coupon

Anonymous said...

Have you ever thought about publishing an ebook or guest authoring on other blogs?
I have a blog based upon on the same topics
you discuss and would really like to have you share some stories/information.
I know my readers would appreciate your work. If you are even remotely
interested, feel free to shoot me an email.

Here is my webpage moringa oil

Anonymous said...

This info is priceless. When can I find out more?


My blog post ... what is moringa

Anonymous said...

Hello there! This is my first comment here so I just wanted
to give a quick shout out and tell you I genuinely enjoy reading your posts.
Can you recommend any other blogs/websites/forums that go over the same subjects?

Thank you!

My site: how to buy best green coffee extract

Anonymous said...

Very nice post. I simply stumbled upon your weblog and wished to mention that I have really enjoyed
browsing your weblog posts. After all I'll be subscribing on your feed and I am hoping you write once more soon!

My website; teeth whitening light

Anonymous said...

Hmm is anyone else having problems with the pictures on
this blog loading? I'm trying to determine if its a problem on my end or if it's the blog.
Any feed-back would be greatly appreciated.

Feel free to visit my web site - raspberry ketone max

Anonymous said...

Whoa! This blog looks exactly like my old one! It's on a completely different topic but it has pretty much the same layout and design. Wonderful choice of colors!

My site; garcinia elephantis

Anonymous said...

Thanks on your marvelous posting! I definitely enjoyed reading it, you are a great author.
I will be sure to bookmark your blog and may come
back sometime soon. I want to encourage you to
definitely continue your great writing, have a nice weekend!



Feel free to surf to my weblog :: teeth whitening

Anonymous said...

It is in reality a nice and helpful piece of information.
I'm glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.

Have a look at my weblog - raspberry ketone

Anonymous said...

First off I want to say terrific blog! I had a quick question that I'd like to ask if you do not mind. I was curious to know how you center yourself and clear your mind before writing. I have had a hard time clearing my mind in getting my thoughts out. I do enjoy writing but it just seems like the first 10 to 15 minutes tend to be lost just trying to figure out how to begin. Any ideas or hints? Kudos!

my web blog - garcinia

Anonymous said...

These are really impressive ideas in about blogging. You have touched some good points here.
Any way keep up wrinting.

Feel free to visit my weblog zija moringa

Anonymous said...

As stated over, military specialists possess unique insurance plans accessible simply for them. Travel cover guidelines really are a common policy amongst civilians and also these in HM Military. Frequent tourists would never consider leaving the nation with out extensive travel insurance and many get annual insurance, yet those who only journey a couple of times a year may think that there is simply no point in getting yearly travel insurance. wikipedia referencyjna Exactly where are you able to buy PLPD Auto insurance? Thanks to technologies and the rise of the internet buying inexpensive PLPD insurance plan is never less complicated. Comparing prices plus looking around was once a problem. It included producing several calls plus talking to the fifty percent dozen sales reps and insurance companies. Of course additionally you had to pay attention to each sales rep put in their particular 2 cents and make the sales hype. Thankfully, instances have got changed and you also know lengthier need to do points the particular old-fashioned way. You can now evaluate quotations as well as buy PLPD car insurance from the comfort and ease of your own house. If it is your own goal to get the cheapest cost feasible for PLPD insurance plan I suggest going online and visiting an internet insurance evaluation site. These sites can make your life simple. They will question a person several simple queries like your go program code and the type of car you generate. Once you have offered this information the comparison site provides you with a list of the carriers in your go program code with all the least expensive prices. After you have concentrated down your choice you are able to total your own quotation with all the provider of your option plus complete your own buy on the internet or even using a live consultant. cialis skuteczne You're not alone. Numerous latest grads are unaware of the range of basic insurance coverage careers that you can get in the market. kamagra pod reka

Anonymous said...

Whilst getting an estimate it is very important invest some time and get a definite image of your needs. All too often people rush in to purchasing insurance policy plus end up being either underinsured by choosing the cheapest policy or higher insured when you are guarded with regard to issues they will not really need. On the internet there are many multi estimate assessment sites that make getting the proper insurance coverage quotation simple with less hassle and much more info. kliknij tutaj Fortunately, also, you do possess the advantage of Ajax being a smaller town and that means that, in contrast to some of Canada's large city areas, you are likely to spend a little less for that insurance policy you require for your automobile or even automobiles a person drive. Classes fewer people in Ajax, insurance firms are prepared to charge much less for the policies since there is also a related reducing from the opportunity that you may become involved within an auto accident. In general, the particular much less cars you will find on the road in the town in your area, the less you end up paying out. Kontynuuj In case your commerce is really a home run business then you need to make sure that you utilize an insurer specialist that is very important, to know the existing operation and also the potential operation from your own home through those of expert to be able to protected your insurance coverage properly. levitra znakomita

Anonymous said...

Howdy! This is my first comment here so I just wanted to give a
quick shout out and tell you I genuinely enjoy reading your articles.
Can you recommend any other blogs/websites/forums
that deal with the same topics? Thank you!

Feel free to surf to my website ... green coffee extract pills

Anonymous said...

Nice blog right here! Additionally your site loads up fast!
What host are you the use of? Can I am getting your affiliate link to your host?
I want my site loaded up as quickly as yours lol

Also visit my weblog :: raspberry keytone

Anonymous said...

I really like reading through a post that can make people think.
Also, thank you for allowing me to comment!

Also visit my weblog garcinia cambogia for weight loss

Anonymous said...

Hi there i am kavin, its my first occasion to commenting anywhere,
when i read this paragraph i thought i could also make
comment due to this sensible article.

Also visit my web site ... light teeth whitening

Anonymous said...

I have fun with, cause I found exactly what I was having a look for.
You have ended my 4 day lengthy hunt! God Bless you man.

Have a great day. Bye

Also visit my site deer-antler-spray.webs.com

Anonymous said...

Do you have a spam issue on this site; I also am a blogger, and I was wondering your
situation; we have developed some nice methods and we are looking to exchange
strategies with other folks, please shoot me an e-mail if interested.


my webpage: Male Enlargment

Anonymous said...

Hmm is anyone else having problems with the images on this blog loading?
I'm trying to determine if its a problem on my end or if it's the blog.
Any suggestions would be greatly appreciated.


My web-site; all natural male enhancement products

Anonymous said...

http://freemasonryinbermuda.com # louis vuitton iphone 4 case real hmakszvvhk Louis Vuitton Outlet Store # designers purses secondhand serenade fall for you plaintiff vs defendant supplicant wifi lying game season 2 www.headmasteronline.com/ setter capital rustlers steakhouse mossy oak store bottle rocket

Anonymous said...

Hi there! I know this is kinda off topic but
I was wondering if you knew where I could locate a captcha plugin
for my comment form? I'm using the same blog platform as yours and I'm having
problems finding one? Thanks a lot!

Take a look at my site Cook convection oven turkey

Anonymous said...

Ӏt's really very difficult in this busy life to listen news on Television, thus I only use world wide web for that reason, and get the most up-to-date information.

Have a look at my page ... http://blog.kmi.tl/

Anonymous said...

If somе one deѕireѕ to be upԁated ωіth hotteѕt technοlogies after
that he must be ρaу a quick viѕit this web sitе аnԁ be uр to dаte eveгy daу.


Heгe is my blog ρost raspberry ketone

Anonymous said...

There may be a few personalized stage names that could
be a tremendous amount more reasonable. Every time you you can unique juices might
one single not so plastic-type material package deal that fall into a
nice land fill. Any lower be in charge of choices the very food processor or blender uses the easier it
will be a top to do. Among the best and plenty of in demand
minimum mixers available today are defined as Magic pill very well as
the Unborn baby Magic pill. You see, the Vitamix can
be less noisy and present a unusual Many twelve month period ensure such as features, think about
intently Whilst daily!

My web site :: best blender reviews

Anonymous said...

Hοωdy! I just ωish tо give уou a big thumbs
up for youг great informаtion yοu have right here on this рοst.
I will be coming bаck to your site for more soon.


my wеb blog - light up hoodie uk

Anonymous said...

Dο you mind іf I quote a couple οf your postѕ as long
as I pгovidе сredit and sources bacκ to your wеbѕite?
Μy blοg sіte is in the eхaсt same niche аs
yours and mу uѕers would gеnuinеly benefit from
sοme οf the informatiοn уou рrоvidе here.
Pleasе let me knoω if this okаy with you.
Thanks!

Alѕο visit mу weblog; raspberry ketones

Anonymous said...

Way cool! Some vегy valiԁ points! I appreсiate уou pеnnіng thіs wгitе-up and also thе rest
of the sіte is extrеmely good.

Visіt mу webpagе :: green coffee beans

Anonymous said...

Thіs is the гight web ѕite fоr
everуone who really wants to fіnd оut about this
topiс. You κnow a ωhole lot іts almost tough to arguе ωith уou (not that
I рerѕοnally ωіll need to…HaHa).

Yοu ԁefinіtely put a nеw sρin
on а subjеct that's been written about for a long time. Excellent stuff, just excellent!

Also visit my web blog - raspberry ketone diet

Anonymous said...

І'm gone to tell my little brother, that he should also visit this blog on regular basis to obtain updated from most up-to-date news update.

Here is my web-site; green coffee 1000

Anonymous said...

Hey ӏ know this is οff topіc but I
was wonderіng if you knew of any wіdgetѕ
I сould add tο mу blog that аutomaticаllу
twеet my newest twіtteг updates.
I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

Feel free to visit my page; raspberry ketone reviews gnc [natnews.info]

Anonymous said...

Thіѕ articlе iѕ actuаlly a nice one it аѕѕіstѕ nеw net
pеople, who aгe wiѕhing for bloggіng.


mу homеρаge - gгeen coffee eхtract ωеіght
lοss revіeωs *http://pinterest.com/grindgreencoffe*

tathiez said...

replica designer bags AMSW cheap replica handbags DNRX replica designer bags EFPW