DirectFB configure 할 때 커널 위치 지정해 주는법 질문입니다.

poplinux의 이미지

DirectFB-1.0.1 을 컴파일 중입니다.

input device 를 linux-input 으로 지정한 상태입니다.

다음과 같이 configure 를 잡고 컴파일을 하면 struct input-absinfo 쪽에서 문제가 생깁니다. 상황으로 봐서 커널 헤더 디렉토리를 제대로 참조를 못하는 것으로 생각이 됩니다.

 arm-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -I../../systems -D_REENTRANT -O3 -ffast-math -pipe -I/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/../../output//include/ -I/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/../kernel/include -D_GNU_SOURCE -Werror-implicit-function-declaration -c linux_input.c -Wp,-MD,.deps/linux_input.TPlo  -fPIC -DPIC -o .libs/linux_input.o
In file included from /home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/../kernel/include/linux/keyboard.h:4,
                 from linux_input.c:77:
/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/../kernel/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/local/hybus-arm-linux-R1.1/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/waitflags.h:26: warning: this is the location of the previous definition
/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/../kernel/include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/local/hybus-arm-linux-R1.1/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/waitflags.h:27: warning: this is the location of the previous definition
linux_input.c: In function `linux_input_EventThread':
linux_input.c:784: parse error before `struct'
linux_input.c:786: `absinfo' undeclared (first use in this function)
linux_input.c:786: (Each undeclared identifier is reported only once
linux_input.c:786: for each function it appears in.)
make[3]: *** [linux_input.lo] 오류 1
make[3]: Leaving directory `/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/inputdrivers/linux_input'
make[2]: *** [all-recursive] 오류 1
make[2]: Leaving directory `/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1/inputdrivers'
make[1]: *** [all-recursive] 오류 1
make[1]: Leaving directory `/home/poplinux/work/gtkdfb/work/DirectFB-1.0.1'
make: *** [all] 오류 2

configure 는 다음과 같이 스크립스트를 짜서 진행했습니다.

#!/bin/sh
 
echo "========================================"  
echo "        make Direct FB library"  
echo "========================================"  
 
. common.sh
 
cd ../DirectFB-1.0.1
PREFIX=${PWD}/../../output/
 
KERNEL_INC=${PWD}/../kernel/include
 
LD_LIBRARY_PATH=$PREFIX/lib/:$LD_LIBRARY_PATH
 
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
 
export PKG_CONFIG_PATH LD_LIBRARY_PATH
 
/usr/bin/pkg-config --libs --cflags freetype2 libpng
 
./configure --target=arm-linux --host=arm-linux --build=i686-linux --prefix=$PREFIX \
 --enable-freetype --enable-sdl=no --disable-debug --with-gfxdrivers=none \
 --with-inputdrivers=tslib --with-inputdrivers=keyboard,linuxinput \
 --enable-osx=no --enable-x11=no --enable-vnc=no --enable-zlib \
 --disable-joystick --disable-cdrom --enable-shared --with-tests \
 CFLAGS="-I$PREFIX/include/ -I$KERNEL_INC" LDFLAGS=-L$PREFIX/lib/ \
 LIBS=-ljpeg
 
 
# prepare compile
make clean
 
make
make install

조언 부탁드립니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.