• We recently switched our forum platform. If you experience any issues please email support@crystalfontz.com

Cross compiling linking with ARM... puzzled Directfb

Vinnie881

New member
I am trying to get Directfb to work on a CFA-10036, so I am trying to cross compile, but for the life of me I cannot get this working.

cc fbtest.c -I/usr/dfb/include/directfb -I/usr/include -o test.o -ldirectfb -lfusion -ldirect // works no rpoblem
gcc fbtest.c -I/usr/dfb/include/directfb -I/usr/include -o test.cc -ldirectfb -lfusion -ldirect //works no problem
arm-linux-gnueabi-gcc fbtest.c -I/usr/dfb/include/directfb -I/usr/include -o test.cc -ldirectfb -lfusion -ldirect //It will not compile???

I get this

/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -ldirectfb
/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -lfusion
/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -ldirect


I am really not use to cross copiling, and I hope it is something simple, but can someone please assist.

Thanks!
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

CF Support

Administrator
I am trying to get Directfb to work on a CFA-10036, so I am trying to cross compile, but for the life of me I cannot get this working.

cc fbtest.c -I/usr/dfb/include/directfb -I/usr/include -o test.o -ldirectfb -lfusion -ldirect // works no rpoblem
gcc fbtest.c -I/usr/dfb/include/directfb -I/usr/include -o test.cc -ldirectfb -lfusion -ldirect //works no problem
arm-linux-gnueabi-gcc fbtest.c -I/usr/dfb/include/directfb -I/usr/include -o test.cc -ldirectfb -lfusion -ldirect //It will not compile???

I get this

/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -ldirectfb
/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -lfusion
/usr/lib/gcc/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -ldirect


I am really not use to cross copiling, and I hope it is something simple, but can someone please assist.

Thanks!
This may be easier achieved by selecting the directfb package within buildroot, and having the system build it for you.
 

Vinnie881

New member
This may be easier achieved by selecting the directfb package within buildroot, and having the system build it for you.
The issue is I am so unfamiliar with this that I don't even know with certainty how to use buildroot.

Can you please send me the exact commands in order to start using buildroot?

The instructions I was sent tells me this command, but it doesn't work.

git clone https://github.com/crystalfontz/buildroot
****
Cloning into 'buildroot'...
Username for 'https://github.com': Vincent_Senese@yahoo.com
Password for 'https://Vincent_Senese@yahoo.com@github.com':
fatal: https://github.com/crystalfontz/buildroot/info/refs not found: did you run git update-server-info on the server?

so I ended up specifying a branch, but I am not sure if that was the correct way and have not heard back.


All I want to be able to do is put a very simple program that is already working and outputs on a desktop linux boxes and uses C and directfb, but cross compiling has been incredibly confusing for me to get these libraries and things working...

Any help would be greatly appreciated, the simpler (i.e. dummifiied:) you can explain it the better, ideally step by step from after the github clone once that works.

So hypethetically, once I properly am able to make the buildroot from github, how would I even go about selecting and compile a directfb package that will work on the CFA-10036 device (Is there an interface? I know how basic and naive this question may be, but I have spent so many hours on this with no luck that I would really appreciate just step by step on this)?

Thanks
 
Top