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!
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.