Hi! I have installed Directfb-0.9.20 using Scratchbox v1 for ARM. I am having some problems with static compilation. I tried to run a program taken from directfb.org after installing directfb. I have only used "directfb.h" in the program and called "DirectFBInit" and "DirectFBCreate" functions.
I have exported : - [sbox-ARM: ~] > export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ [sbox-ARM: ~] > export LD_LIBRARY_PATH=/usr/local/lib/ After this when I use : - [sbox-ARM: ~] > gcc -Wall `pkg-config --cflags --libs directfb` -o line line.c [sbox-ARM: ~] > everything is running fine but my program doesn't run. When I try static compilation : - [sbox-ARM: ~] > gcc -Wall -static `pkg-config --cflags --libs directfb` -o line line.c /tmp/cc0ALYEH.o(.text+0x28): In function `main': line.c: undefined reference to `DirectFBInit' /tmp/cc0ALYEH.o(.text+0x30):line.c: undefined reference to `DirectFBCreate' collect2: ld returned 1 exit status [sbox-ARM: ~] > is the output. Is there anything else I should export? If this is a linker error, what should I do? Thanks, Arun Prakash Jana _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users