NMT:directfb: Difference between revisions

From Lundman Wiki
No edit summary
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
4. Configure as follows, you might need to disable some other libraries if you don't want to cross compile things you have installed (change --build as necessary)
4. Configure as follows, you might need to disable some other libraries if you don't want to cross compile things you have installed (change --build as necessary)


./configure --target=mipsel-linux-uclibc --host=mipsel-linux-uclibc --enable-x11=no --enable-png=no build=i386
./configure --target=mipsel-linux-uclibc --host=mipsel-linux-uclibc --enable-x11=no --enable-png=no --with-gfxdrivers=none --build=i386


5. Make the target
5. Make the target
Line 21: Line 21:
make LDFLAGS=-Wl,--dynamic-linker,/lib/ld-uClibc.so.0
make LDFLAGS=-Wl,--dynamic-linker,/lib/ld-uClibc.so.0


This fails but I noticed that the apps in tools built which is what I want
This might fail but I noticed that the apps in tools built which is what I want


6.The tool apps are in tools/.libs
6.The tool apps are in tools/.libs
Line 29: Line 29:
dfbinfo: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), not stripped
dfbinfo: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), not stripped


8. Do not test or run dfbinfo from you NMT and if you don't run it at NTSC SD resolution this what you wouldn't use
8. Do not test or run dfbinfo from your NMT and at NTSC SD resolution this what you would not use


/ # /sharename/dfbinfo --dfb:fbdev=/dev/em8xxx0,mode=720x480
/ # /sharename/dfbinfo --dfb:fbdev=/dev/em8xxx0,mode=720x480
9. Here is a sample app base on the DirectFB tutorials
[[NMT:directfb-sample|directfb-sample]]
Question, if you had chosen --enable-x11=yes instead of --enable-x11=no, what possibilities would then become available on the NMT ?
What about:
Xfbdev mythbackend:/mythfrontend
or is this bullshit ?

Latest revision as of 09:34, 18 October 2008

Here are the steps I did to compile some apps with directfb support. I'm sure it can be streamlined.

Remember do not try to run these apps on your NMT device

1. Download DirectFB 1.0.1 from directfb.org

http://directfb.org/downloads/Core/DirectFB-1.0.1.tar.gz

2. Extract archive and enter the folder

3. Path to use the cross tool

PATH=/usr/local/mips/mipsel-linux-uclibc/bin/:$PATH

4. Configure as follows, you might need to disable some other libraries if you don't want to cross compile things you have installed (change --build as necessary)

./configure --target=mipsel-linux-uclibc --host=mipsel-linux-uclibc --enable-x11=no --enable-png=no --with-gfxdrivers=none --build=i386

5. Make the target

make LDFLAGS=-Wl,--dynamic-linker,/lib/ld-uClibc.so.0

This might fail but I noticed that the apps in tools built which is what I want

6.The tool apps are in tools/.libs

7.run "file dfbinfo" to check your cross

dfbinfo: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), not stripped

8. Do not test or run dfbinfo from your NMT and at NTSC SD resolution this what you would not use

/ # /sharename/dfbinfo --dfb:fbdev=/dev/em8xxx0,mode=720x480

9. Here is a sample app base on the DirectFB tutorials

directfb-sample

Question, if you had chosen --enable-x11=yes instead of --enable-x11=no, what possibilities would then become available on the NMT ?

What about: Xfbdev mythbackend:/mythfrontend

or is this bullshit ?