Thanks for the response, Srinivas! I actually did find the thread you referenced below and tried that as well to no avail.
Here is my final command looks like (I also use tslib): arm-linux-gcc -o $1 $1.c -I/mnt/usb/usr/local/include/directfb -D_REENTRANT -static /mnt/usb/usr/local/lib/directfb-1.2-0/interfaces/IDirectFBFont/libidirectfbfont_default.o /mnt/usb/usr/local/lib/directfb-1.2-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.o -lfreetype /mnt/usb/usr/local/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.o /mnt/usb/usr/local/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.o -lpng -lz -lm /mnt/usb/usr/local/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.o -ljpeg /mnt/usb/usr/local/lib/directfb-1.2-0/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.o /mnt/usb/usr/local/lib/directfb-1.2-0/inputdrivers/libdirectfb_tslib.o -lts -ldl /mnt/usb/usr/local/lib/directfb-1.2-0/inputdrivers/libdirectfb_keyboard.o /mnt/usb/usr/local/lib/directfb-1.2-0/inputdrivers/libdirectfb_linux_input.o /mnt/usb/usr/local/lib/directfb-1.2-0/systems/libdirectfb_fbdev.o /mnt/usb/usr/local/lib/directfb-1.2-0/wm/libdirectfbwm_default.o -L/mnt/usb/usr/local/lib -ldirectfb -lfusion -ldirect -lpthread It has pretty much everything I should need. The order is generated by directfb-config script. Also, looking at the initialization code I'm not sure how any of this could work (since it is only looking for .so modules). Could you please tell me which version of DFB you use for this? Thanks, Vijay Srinivas Rao M Hamse wrote: > Vijay, > > Check your link order, For it to be statically working correctly, the > link order should be fine. > I got it working recently. Check the following post for reference > http://mail.directfb.org/pipermail/directfb-dev/2008-October/004614.html > > Srini... > > > On Tue, Oct 14, 2008 at 3:12 PM, Vijay <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, > > I'm trying to do a static build of the library for arm-linux. DirectFB > (1.2.5) compiles fine, then the example applications also compile fine > with it. However, when I run any example app, it fails complaining > something like this: > (*) DirectFB/Core: Single Application Core. (2008-10-14 08:20) > (!) DirectFB/core/system: No system found! > > Looking closely at src/core/system.c and lib/direct/modules.c, it > looks > like the only way system modules can be loaded is when they are built > dynamically. In fact, the method direct_modules_explore_directory in > lib/direct/modules.c only has code to look for modules when > DYNAMIC_LINKING is defined and it only looks for .so modules. Has > anyone > solved these problems? > > Btw, I am using directfb-config to get the right flags and everything > does compile fine. It seems like the runtime support for static builds > just isn't there. > > Any help is appreciated. > Thanks, > Vijay > _______________________________________________ > directfb-dev mailing list > directfb-dev@directfb.org <mailto:directfb-dev@directfb.org> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > > > > > -- > Srinivas Rao M Hamse <http://msrinirao.blogspot.com> > _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev