Hi, when your directfb successfully compiled, you get an executable named directfb-config under your bin-installation directory (optionally prefixed with $target, e.g.: /usr/bin/powerpc-linux-directfb-config). Simply use this small program to evaluate the settings you need , to statically link your application ;-)
example: > powerpc-linux-directfb-config --libs --graphics=which_ever_matches --input=linux_input --font=ft2 --system=whatever_you_need outputs: -static /usr/lib/directfb-1.2-0/wm/libdirectfbwm_default.o /usr/lib/directfb-1.2-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.o -lfreetype /usr/lib/directfb-1.2-0/inputdrivers/libdirectfb_linux_input.o /usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_which_ever_matches.o /usr/lib/directfb-1.2-0/systems/libdirectfb_whatever_you_need.o -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -lz which_ever_matches, whatever_you_need as a placeholder for your requirements ;-) Kind Regards, Peter Kemmer Srinivas Rao M Hamse schrieb: > Hi Yanshi, > > This one is my previous problem. I had given it a try sometimes back. > But i need some hard crux solution to compile a directfb example > application statically. My intention is to generate a single binary > which can run on a target platform. My Compilation goes successfully > but when i run i get the same old error message: > > # ./df_input & > > > =======================| DirectFB 1.2.0 |======================= > (c) 2001-2007 The DirectFB Organization (directfb.org > <http://directfb.org>) > (c) 2000-2004 Convergence (integrated media) GmbH > ------------------------------------------------------------ > > (*) DirectFB/Core: Single Application Core. (2008-10-08 07:16) [ DEBUG ] > (!) DirectFB/core/system: No system found! > df_input.c <294>: > (#) DirectFBError [DirectFBCreate( &dfb )]: No (suitable) > implementation found! > > > > Has anyone given it a try. Can you share with me the Makfile for > statically linking my app with directfb ? > > regards, > Srinivas Rao. M > > > > > 2008/1/19 闫石 <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > > Hi Srinivas, > I think your configure option is ok. when configure command end,it > will print > Build options > Misc options > Building Core Systems > Building WM Modules > etc. > You can check it out, whether fit your need ? > Otherwise ,you system must have a framebuffer device. > if you need fuction like playing avi etc, install > DirectFB-extra-1.x.x. > Best Regards > > ---------------------------------------------- > Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > ---------------------------------------------- > > ------------------------------------------------------------------------ > *发件人:* Srinivas Rao M Hamse [mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>] > *发送时间:* 2008年1月18日 18:29 > *收件人:* 闫石; [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>; directfb-dev@directfb.org > <mailto:directfb-dev@directfb.org> > *主题:* Re: 答复: [directfb-dev] "No system found!" Error while > running Staticallycompiled dfbinfo application > > Hi Yanshi, > Thanks for replying, This DirectFBCreate Function is very much > linked in to the system. See the output of nm: > > [EMAIL PROTECTED] bin]$ pwd > /home/srinirao/directfb/bin > [EMAIL PROTECTED] bin]$ nm dfbinfo |grep DirectFBCreate > 0000b04c T DirectFBCreate > > > Am i missing some configuration that needed to be done for setting > up systems for directfb ? > I am using the following configure optinions: > > export LDFLAGS="-L/home/srinirao/davinci/freetype_eq/ > -L/home/srinirao/libpng/lib -L/home/srinirao/zlib/lib > -L/home/srinirao/davinci/freetype_eq" && export > CPPFLAGS="-I/home/srinirao/libpng/include > -I/home/srinirao/zlib/include > -I/home/srinirao/davinci/freetype_eq/include" && ./configure > --host=arm-linux --prefix=/home/srinirao/directfb --enable-fbdev > --enable-devmem --disable-x11 --with-inputdrivers=keyboard > --with-gfxdrivers=none --disable-video4linux2 --disable-sysfs > --disable-multi --disable-sdl --disable-video4linux > --datadir=/home/srinirao/directfb/usr/lib --with-png=yes > --with-freetype=yes --disable-debug --disable-debug-support > --enable-static --disable-shared --enable-debug > > What do you mean system here, is that i have to compile fbdev > statically ? > > > regards, > Srinivas Rao. M > > > > 2008/1/18 闫石 < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: > > Hi > Maybe you forgot some library while statically compile > dfbinfo. DirectFBCreate fuction is defined in libdirectfb.la > <http://libdirectfb.la>. > Best Regards > > ---------------------------------------------- > Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > ---------------------------------------------- > > > ------------------------------------------------------------------------ > *发件人:* [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > [mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>] *代表 *Srinivas > Rao M Hamse > *发送时间:* 2008年1月18日 17:42 > *收件人:* [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>; > directfb-dev@directfb.org <mailto:directfb-dev@directfb.org> > *主题:* [directfb-dev] "No system found!" Error while running > Staticallycompiled dfbinfo application > > Hi all, > I have statically compile directfb library. When i run the > binary dfbinfo on target, i get the following error message. > However if i run the same application after linking > dynamically with directfb libraries, it works fine. > > Please help me to figure out, If i am missing something here ? > > > # ./dfbinfo --dfb:system=devmem --dfb:video-phys=0x83000000 > --dfb:video-length=691200 > > =======================| DirectFB 1.1.1 |======================= > (c) 2001-2007 The DirectFB Organization (directfb.org > <http://directfb.org>) > (c) 2000-2004 Convergence (integrated media) GmbH > ------------------------------------------------------------ > > (*) DirectFB/Core: Single Application Core. (2008-01-18 05:45) > [ DEBUG ] > (!) DirectFB/core/system: No system found! > (#) DirectFBError [DirectFBCreate() failed]: No (suitable) > implementation found! > # > > > > regards, > > -- > Srinivas Rao M Hamse <http://msrinirao.blogspot.com> > > > > > > > -- > Srinivas Rao M Hamse > > > > > -- > Srinivas Rao M Hamse > > ------------------------------------------------------------------------ > > _______________________________________________ > directfb-dev mailing list > directfb-dev@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > -- ________________________________________________________________________ Peter Kemmer inmedia IT GmbH Sitz der Gesellschaft: Gersheim Im Kra"mersfeld 15 Gescha"ftsführer: Klaus-Peter Kemmer 66453 Gersheim Amtsgericht Homburg HRB 3627 Tel.: +49 6843 901799 USt-IdNr. DE191686571 mobile: +49 172 68 47 045 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev