title: Cross-Compile SDL2 with DirectFB and add to a Buildroot root filesystem
body: <p>I am trying to create a root filesystem which includes SDL2 on DirectFB for an embedded linux 2.6.37 system (igepv2 board with TI DM3730 chip using OMAP).  I am using</p>
  <ul>
  <li>Crosstool NG</li>
  <li>Buildroot</li>
  </ul>
  <p>Buildroot with DirectFB works fine - I can run the df_andi test. Unfortunately Buildroot-2015.08.1 supports only SDL1.2 so I am trying to cross-compile SDL2 from source and add it to the buildroot-created root filesystem.... as follows:</p>
  <blockquote>
  <p>LDFLAGS=-L/home/peter/igep2015/9Buildroot/buildroot-2015.08.1/output/staging/usr/lib
  CPPFLAGS=-I/home/peter/igep2015/9Buildroot/buildroot-2015.08.1/output/staging/usr/include</p>
  <p>DIRECTFBCONFIG=/home/peter/igep2015/9Buildroot/buildroot-2015.08.1/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/bin</p>
  <p>export CC=arm-linux-gcc</p>
  <p>./configure  --prefix=/usr --host=arm-linux --without-x --disable-pulseaudio --disable-esd --disable-video-x11 --disable-x11-shared --disable-video-x11-xcursor --disable-video-x11-xinerama --disable-video-x11-xinput  --disable-video-x11-xrandr   --disable-video-x11-scrnsaver --disable-video-x11-xshape --disable-video-x11-vm  --disable-video-opengl --enable-video-opengles   --disable-haptic   --enable-fusionsound  --enable-video-dummy --enable-video-directfb  --disable-directfb-shared</p>
  </blockquote>
  <p>which yields the following configuration summary with no usable video driver....</p>
  <p>SDL2 Configure Summary:<br />
  Building Shared Libraries<br />
  Building Static Libraries Enabled modules : atomic audio video render events joystick power filesystem threads timers file loadso cpuinfo assembly<br />
  Assembly Math :<br />
  Audio drivers   : disk dummy oss<br />
  Video drivers   : dummy<br />
  Input drivers   : linuxev linuxkd<br />
  Using libudev   : YES<br />
  Using dbus : YES</p>
  <p>The SDL2 config.log file shows SDL ./configure is not finding directfb<br />
  configure:20558: checking for directfb-config<br />
  configure:20592: result: no<br />
  configure:20604: checking for pkg-config<br />
  configure:20622: found /usr/bin/pkg-config<br />
  configure:20635: result: /usr/bin/pkg-config<br />
  configure:20678: checking for DirectFB 1.0.0 support<br />
  configure:20680: result: no</p>
  <p>I checked my path DIRECTFBCONFIG and it contains directfb-config.   Any suggestions on what I am missing?</p>
  <p>Thanks in advance for your help!</p>