DirectFB: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 2: Line 2:
|-
|-
!Download Source:
!Download Source:
| http://www.directfb.org/downloads/Core/DirectFB-{{Directfb-Version}}.tar.gz
| http://www.directfb.org/downloads/Core/DirectFB-{{Directfb-Version2}}/DirectFB-{{Directfb-Version}}.tar.gz
|}
|}


Line 12: Line 12:


=== Required ===
=== Required ===
* [[X Window System]]
* [[FreeType]]
* [[FreeType]]
* [[SDL]]
* [[Libjpeg]]
* [[libpng]]


=== Recommended ===
=== Recommended ===
* [[SDL]]
* [[libvncserver]]
* [[libvncserver]]


== Configuration Information ==
=== Optional ===
 
* [[X Window System]]
{|
|-
|''--with-gfxdrivers=list:'' Choose your video driver in the list (ati128, cle266, cyber5k, i810, i830, mach64, matrox, neomagic, nsc, nvidia, radeon, savage, sis315, tdfx, unichrome)
|-
|''--enable-X11:'' Add X11 support
|}


== Non-Multilib ==
== Non-Multilib ==
Line 32: Line 27:
Compile the package:
Compile the package:


  ./configure --prefix=/usr --disable-dependency-tracking --enable-zlib &&
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
sed -i 's/X11R6/X11R7/g' systems/x11/Makefile &&
  ./configure --prefix=/usr --disable-mmx --disable-sse &&
  make
  make


Line 41: Line 36:


== Multilib ==
== Multilib ==
change <YOURVIDEODRIVERS> to one or more from:
ati128, cle266, cyber5k, davinci, i810, i830, mach64, matrox,
neomagic, nsc, nvidia, omap, radeon, savage, sh7722,
sis315, tdfx, unichrome, vmware
change <YOURINPUTDRIVERS> to one or more from:
  dbox2remote, dreamboxremote, dynapro, elo-input, gunze, h3600_ts,
  joystick, keyboard, linuxinput, lirc, mutouch, penmount, ps2mouse,
  serialmouse, sonypijogdial, tslib, ucb1x00, wm97xx
without spaces between values i.e. '--with-inputdrivers=keyboard,ps2mouse'


=== 32Bit ===
=== 32Bit ===
Line 58: Line 41:
Compile the package:
Compile the package:


  USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} CC="gcc ${BUILD32}" \
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
    CXX="g++ ${BUILD32}" ./configure --prefix=/usr --libdir=/usr/lib \
USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} CC="gcc ${BUILD32}" \
    --disable-dependency-tracking --enable-zlib --enable-X11 \
    CXX="g++ ${BUILD32}" ./configure --prefix=/usr \
    --target=${CLFS_TARGET32} --enable-sysfs --enable-multi \
    --disable-mmx --disable-sse &&
    --with-gfxdrivers=<YOURVIDEODRIVERS> \
make
    --with-inputdrivers=<YOURINPUTDRIVERS>


Install the package:
Install the package:


  make install
  make install &&
mv -v /usr/bin/directfb-config{,-32}


=== N32 ===
=== N32 ===
Line 73: Line 56:
Compile the package:
Compile the package:


  To do...
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
sed -i "s@-L${XORG_PREFIX}/lib@-L${XORG_PREFIX}/lib32@g" configure &&
USE_ARCH=N32 PKG_CONFIG_PATH=${PKG_CONFIG_PATHN32} CC="gcc ${BUILDN32}" \
    CXX="g++ ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
    --disable-mmx --disable-sse &&
make


Install the package:
Install the package:


  make install
  make install &&
mv -v /usr/bin/directfb-config{,-n32}


=== 64Bit ===
=== 64Bit ===
Line 83: Line 72:
Compile the package:
Compile the package:


  USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} CC="gcc ${BUILD64}" \
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
    CXX="g++ ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib \
sed -i "s@-L${XORG_PREFIX}/lib@-L${XORG_PREFIX}/lib64@g" configure &&
    --disable-dependency-tracking --enable-zlib --enable-X11 \
USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} CC="gcc ${BUILD64}" \
    --enable-sysfs --enable-multi \
    CXX="g++ ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
    --with-gfxdrivers=<YOURVIDEODRIVERS> \
    --disable-mmx --disable-sse &&
    --with-inputdrivers=<YOURINPUTDRIVERS>
make


Install the package:
Install the package:


  make install
  make install &&
mv -v /usr/bin/directfb-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/directfb-config


== Contents ==
== Contents ==
Line 107: Line 98:
|libdirect.{la,so}, libfusion.{la,so}, libdirectfb.{la,so}, libdirectfb_fbdev.{la,so}
|libdirect.{la,so}, libfusion.{la,so}, libdirectfb.{la,so}, libdirectfb_fbdev.{la,so}
|}
|}
[[Category:Graphics Libraries]]

Latest revision as of 11:37, 7 September 2009

Download Source: http://www.directfb.org/downloads/Core/DirectFB-1.4/DirectFB-1.4.3.tar.gz

Introduction to DirectFB

DirectFB is a graphics library which was designed with embedded systems in mind. It offers maximum hardware accelerated performance at a minimum of resource usage and overhead.

Project Homepage: http://www.directfb.org/

Dependencies

Required

Optional

Non-Multilib

Compile the package:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
./configure --prefix=/usr --disable-mmx --disable-sse &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} CC="gcc ${BUILD32}" \
    CXX="g++ ${BUILD32}" ./configure --prefix=/usr \
    --disable-mmx --disable-sse &&
make

Install the package:

make install &&
mv -v /usr/bin/directfb-config{,-32}

N32

Compile the package:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
sed -i "s@-L${XORG_PREFIX}/lib@-L${XORG_PREFIX}/lib32@g" configure &&
USE_ARCH=N32 PKG_CONFIG_PATH=${PKG_CONFIG_PATHN32} CC="gcc ${BUILDN32}" \
    CXX="g++ ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
    --disable-mmx --disable-sse &&
make

Install the package:

make install &&
mv -v /usr/bin/directfb-config{,-n32}

64Bit

Compile the package:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *) &&
sed -i "s@-L${XORG_PREFIX}/lib@-L${XORG_PREFIX}/lib64@g" configure &&
USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} CC="gcc ${BUILD64}" \
    CXX="g++ ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
    --disable-mmx --disable-sse &&
make

Install the package:

make install &&
mv -v /usr/bin/directfb-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/directfb-config

Contents

Installed Directories: /usr/share/directfb-1.4.3, /usr/include/directfb, /usr/include/directfb-internal, /usr/lib/directfb-1.4.3
Installed Programs: directfb-csource, dfbdump, dfbg, dfbinfo, dfbinput, dfblayer, dfbscreen, dfbsummon, dfbpenmount, mkdfiff, mkdgiff
Installed Libraries: libdirect.{la,so}, libfusion.{la,so}, libdirectfb.{la,so}, libdirectfb_fbdev.{la,so}