0. 사전 준비사항
가. VirtualBox에 Ubuntu 18.04 설치
나. $ sudo apt install build-essential
1. DirectFB 준비
가. $ git clone https://github.com/Distrotech/DirectFB.git
1) git 없을 경우
가) $ sudo apt install git
나. $ git checkout DIRECTFB_1_6_3
1) git checkout를 누르고 더블 탭을 하면 태그목록이 뜸
다. $ ./autogen.sh
1) 일부 프로그램이 없을 경우
가) $ sudo apt install libtool autoconf automake
2) flux 에러 생길 경우
가) $ git clone https://github.com/Distrotech/flux.git
나) $ ./autogen.sh
(1) AC_MSG에러 생길 경우
(가) $ sudo apt install pkg-config
다) $ ./configure
라) $ make
마) $ sudo make install
라. $ ./configure --with-tests
1) --with-tests 예제 파일을 생성함
바. $ make
사. $ sudo make install
아. $ dfbtest_fillrect
1) 공유라이브러리 로딩에러시
가) $ sudo ldconfig
2) /dev/fb0 에러 발생시
가) $ sudo usermod -a -G video 사용자계정
나) 로그아웃을 했다가 다시 로그인을 해야지 적용됨
3) /dev/tty0 에러 발생시
가) 홈디렉토리에 설정파일 생성
나) $ vi ~/.directfbrc
1) mode=800x600
(가) 화면 크기
2) system=x11
(나) X윈도우 환경으로 출력
4) 프로그램 실행은 되지만 화면 출력은 안될 경우
가) $ sudo apt install libgles2-mesa-dev
나) $ ./configure --with-gfxdrivers='gles2'
다) $ make
라) $ sudo make install