AnsweredAssumed Answered

Problem compiling DirectFB program

Question asked by rubick64 on Dec 1, 2011
Latest reply on Dec 4, 2011 by rubick64

Hi, i wanted to compile some simple demo for DirectFB using this command:

 

bfin-linux-uclibc-gcc main.c -o main -I ~/include/directfb/ -L /home/ondra/blackfin/uClinux/blackfin-linux-dist/romfs/usr/lib/ -ldirectfb

 

but i got error:

/home/ondra/blackfin/toolchain/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find -ldirectfb
collect2: ld returned 1 exit status

 

I guess it's a linker problem. But in /home/ondra/blackfin/uClinux/blackfin-linux-dist/romfs/usr/lib/ i have this:

drwxr-xr-x 6 ondra users   4096 Dec  1 18:23 directfb-1.4-0
-rwxr-xr-x 1 ondra users  74284 Dec  1 18:23 libdirect-1.4.so.0
-rwxr-xr-x 1 ondra users 462444 Dec  1 18:23 libdirectfb-1.4.so.0
-rwxr-xr-x 1 ondra users 381732 Dec  1 18:23 libfreetype.so.6
-rwxr-xr-x 1 ondra users  28928 Dec  1 18:23 libfusion-1.4.so.0
-rwxr-xr-x 1 ondra users 165500 Dec  1 18:23 libjpeg.so.7
-rwxr-xr-x 1 ondra users  88728 Dec  1 18:23 liblzo2.so.2
-rwxr-xr-x 1 ondra users 122604 Dec  1 18:23 libpng12.so.0
-rwxr-xr-x 1 ondra users 133252 Dec  1 18:23 libpng.so.3

 

So where is problem?

Outcomes