embeded/raspberry pi2015. 8. 18. 20:58

엌ㅋ 발견

이미지를 구워서 편하게 하자.img ㅋㅋㅋㅋ


계정은

root / debian


구동된게 없으니 메모리가 남아돈다. ㄷㄷ

top - 14:06:38 up 3 min,  2 users,  load average: 0.14, 0.07, 0.03

Tasks:  93 total,   1 running,  92 sleeping,   0 stopped,   0 zombie

%Cpu(s):  0.0 us,  0.5 sy,  0.0 ni, 99.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

KiB Mem:    947424 total,    55364 used,   892060 free,     3864 buffers

KiB Swap:        0 total,        0 used,        0 free.    23760 cached Mem 


순수한(?) debian jessie 배포판이니(라즈베리용)

weston 패키지를 설치해주어야 한다.


# apt-get install weston

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  colord colord-data dconf-gsettings-backend dconf-service fontconfig

  fontconfig-config fonts-dejavu-core libavahi-client3 libavahi-common-data

  libavahi-common3 libcairo2 libcolord2 libcolorhug2 libdatrie1 libdconf1

  libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl1-mesa

  libegl1-mesa-drivers libelf1 libevdev2 libexif12 libfile-copy-recursive-perl

  libfontconfig1 libfreetype6 libgbm1 libgd3 libgl1-mesa-dri libglapi-mesa

  libgles2-mesa libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3

  libgudev-1.0-0 libgusb2 libharfbuzz0b libieee1284-3 libinput5 libjbig0

  libjpeg62-turbo liblcms2-2 libllvm3.5 libltdl7 libmtdev1 libopenvg1-mesa

  libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0

  libpixman-1-0 libpng12-0 libpolkit-agent-1-0 libpolkit-backend-1-0

  libpolkit-gobject-1-0 libsane libsane-common libsane-extras

  libsane-extras-common libsqlite3-0 libthai-data libthai0 libtiff5

  libtxc-dxtn-s2tc0 libusb-1.0-0 libv4l-0 libv4lconvert0 libvpx1

  libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa

  libwayland-server0 libx11-xcb1 libxcb-composite0 libxcb-dri2-0

  libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-xfixes0 libxcb-xkb1

  libxcursor1 libxfixes3 libxkbcommon0 libxpm4 libxrender1 policykit-1

  sane-utils update-inetd xkb-data

Suggested packages:

  libgd-tools gphoto2 gtkam liblcms2-utils avahi-daemon hplip hpoj unpaper

The following NEW packages will be installed:

  colord colord-data dconf-gsettings-backend dconf-service fontconfig

  fontconfig-config fonts-dejavu-core libavahi-client3 libavahi-common-data

  libavahi-common3 libcairo2 libcolord2 libcolorhug2 libdatrie1 libdconf1

  libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl1-mesa

  libegl1-mesa-drivers libelf1 libevdev2 libexif12 libfile-copy-recursive-perl

  libfontconfig1 libfreetype6 libgbm1 libgd3 libgl1-mesa-dri libglapi-mesa

  libgles2-mesa libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3

  libgudev-1.0-0 libgusb2 libharfbuzz0b libieee1284-3 libinput5 libjbig0

  libjpeg62-turbo liblcms2-2 libllvm3.5 libltdl7 libmtdev1 libopenvg1-mesa

  libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0

  libpixman-1-0 libpng12-0 libpolkit-agent-1-0 libpolkit-backend-1-0

  libpolkit-gobject-1-0 libsane libsane-common libsane-extras

  libsane-extras-common libsqlite3-0 libthai-data libthai0 libtiff5

  libtxc-dxtn-s2tc0 libusb-1.0-0 libv4l-0 libv4lconvert0 libvpx1

  libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa

  libwayland-server0 libx11-xcb1 libxcb-composite0 libxcb-dri2-0

  libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-xfixes0 libxcb-xkb1

  libxcursor1 libxfixes3 libxkbcommon0 libxpm4 libxrender1 policykit-1

  sane-utils update-inetd weston xkb-data

0 upgraded, 92 newly installed, 0 to remove and 0 not upgraded.

Need to get 29.7 MB of archives.

After this operation, 90.8 MB of additional disk space will be used.

Do you want to continue? [Y/n] 


[링크 : https://images.collabora.co.uk/rpi2/]

    [링크 : https://www.collabora.com/about-us/blog/2015/02/03/debian-jessie-on-raspberry-pi-2/]


근데.. 실행이 안되네...

root@jessie-rpi:~# weston

Date: 2015-08-18 UTC

[14:23:33.989] weston 1.6.0

               http://wayland.freedesktop.org/

               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.0

               Build: 1.5.93-5-g2858cc2 configure.ac: bump version to 1.6.0 (2014-09-19 13:40:14 +0300)

[14:23:33.990] OS: Linux, 3.18.0-trunk-rpi2, #1 SMP PREEMPT Debian 3.18.5-1~exp1.co1 (2015-02-02), armv7l

[14:23:33.990] Starting with no config file.

[14:23:33.991] Loading module '/usr/lib/arm-linux-gnueabihf/weston/x11-backend.so'

[14:23:34.006] initializing x11 backend

PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused

[14:23:36.012] fatal: failed to create compositor 



---


빌드 해야하나 -_-


deb http://raspberrypi.collabora.com wheezy rpi

$ sudo apt-get update

$ sudo apt-get install weston 


$ sudo apt-get install build-essential automake libtool bison flex \

    xutils-dev libcairo2-dev libffi-dev libmtdev-dev libjpeg-dev \

    libudev-dev libxcb-xfixes0-dev libxcursor-dev libraspberrypi-dev \

    libxkbcommon-dev libxcb-composite0-dev libpam-dev

[링크 : http://wayland.freedesktop.org/raspberrypi.html]

[링크 : https://www.raspberrypi.org/blog/wayland-preview/]


W: Duplicate sources.list entry http://raspberrypi.collabora.com/ wheezy/rpi armhf Packages (/var/lib/apt/lists/raspberrypi.collabora.com_dists_wheezy_rpi_binary-armhf_Packages)

W: apt-get update를 실행하면 이 문제를 바로잡을 수도 있습니다. 

안되잖아!!!!


$ git clone git://git.collabora.co.uk/git/user/pq/weston

$ cd weston

$ git checkout origin/raspberrypi-dispmanx-wip


# echo deb http://raspberrypi.collabora.com wheezy rpi >> /etc/apt/sources.list

# apt-get update

# apt-get install weston 

[링크 : https://fooishbar.org/tell-me-about/wayland-on-raspberry-pi/]


사이트 가서 뒤져보면 경로가 좀 달라진거 같기도 하고..

그냥 오래된거라 그런가?(위에 문서들은 2013년.. 지금은 2015년..)

[링크 : http://raspberrypi.collabora.com/]

[링크 : https://git.collabora.com/cgit/user/pq/weston.git/]



어? 받아지네

$ git clone git://git.collabora.co.uk/git/user/pq/weston

Cloning into 'weston'...

remote: Counting objects: 27675, done.

remote: Compressing objects: 100% (8281/8281), done.

remote: Total 27675 (delta 21719), reused 24816 (delta 19354)

Receiving objects: 100% (27675/27675), 6.70 MiB | 1.10 MiB/s, done.

Resolving deltas: 100% (21719/21719), done.


$ du -h weston
12M     weston 


의외로.. 용량이 저렴하다?

아으.. 귀찮아 ㅠㅠ 라이브러리 헤더 ㅠㅠ

어디 빌드된거 없나 ㅠㅠ


$ ./autogen.sh

autoreconf: Entering directory `.'

autoreconf: configure.ac: not using Gettext

autoreconf: running: aclocal --force -I m4

autoreconf: configure.ac: tracing

autoreconf: configure.ac: creating directory build-aux

autoreconf: running: libtoolize --copy --force

libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.

libtoolize: copying file `build-aux/ltmain.sh'

libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.

libtoolize: copying file `m4/libtool.m4'

libtoolize: copying file `m4/ltoptions.m4'

libtoolize: copying file `m4/ltsugar.m4'

libtoolize: copying file `m4/ltversion.m4'

libtoolize: copying file `m4/lt~obsolete.m4'

autoreconf: running: /usr/bin/autoconf --force

autoreconf: running: /usr/bin/autoheader --force

autoreconf: running: automake --add-missing --copy --force-missing

configure.ac:36: installing `build-aux/config.guess'

configure.ac:36: installing `build-aux/config.sub'

configure.ac:26: installing `build-aux/install-sh'

configure.ac:26: installing `build-aux/missing'

Makefile.am: installing `build-aux/depcomp'

autoreconf: Leaving directory `.'

checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking for special C compiler options needed for large files... no

checking for _FILE_OFFSET_BITS value needed for large files... 64

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... no

checking for mawk... mawk

checking whether make sets $(MAKE)... yes

checking for style of include used by make... GNU

checking dependency style of gcc... gcc3

checking whether make supports nested variables... yes

checking for gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking for a sed that does not truncate output... /bin/sed

checking build system type... armv7l-unknown-linux-gnueabihf

checking host system type... armv7l-unknown-linux-gnueabihf

checking how to print strings... printf

checking for a sed that does not truncate output... (cached) /bin/sed

checking for fgrep... /bin/grep -F

checking for ld used by gcc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B

checking the name lister (/usr/bin/nm -B) interface... BSD nm

checking whether ln -s works... yes

checking the maximum length of command line arguments... 1572864

checking whether the shell understands some XSI constructs... yes

checking whether the shell understands "+="... yes

checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop

checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop

checking for /usr/bin/ld option to reload object files... -r

checking for objdump... objdump

checking how to recognize dependent libraries... pass_all

checking for dlltool... no

checking how to associate runtime and link libraries... printf %s\n

checking for ar... ar

checking for archiver @FILE support... @

checking for strip... strip

checking for ranlib... ranlib

checking command to parse /usr/bin/nm -B output from gcc object... ok

checking for sysroot... no

checking for mt... mt

checking if mt is a manifest tool... no

checking for dlfcn.h... yes

checking for objdir... .libs

checking if gcc supports -fno-rtti -fno-exceptions... no

checking for gcc option to produce PIC... -fPIC -DPIC

checking if gcc PIC flag -fPIC -DPIC works... yes

checking if gcc static flag -static works... yes

checking if gcc supports -c -o file.o... yes

checking if gcc supports -c -o file.o... (cached) yes

checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

checking for pkg-config... /usr/bin/pkg-config

checking pkg-config is at least version 0.9.0... yes

checking for dlopen... no

checking for dlopen in -ldl... yes

checking whether SFD_CLOEXEC is declared... yes

checking whether TFD_CLOEXEC is declared... yes

checking whether CLOCK_MONOTONIC is declared... yes

checking execinfo.h usability... yes

checking execinfo.h presence... yes

checking for execinfo.h... yes

checking for mkostemp... yes

checking for strchrnul... yes

checking for initgroups... yes

checking for posix_fallocate... yes

checking for EGL... no

configure: error: Package requirements (egl >= 7.10 glesv2) were not met:


No package 'egl' found

No package 'glesv2' found


Consider adjusting the PKG_CONFIG_PATH environment variable if you

installed software in a non-standard prefix.


Alternatively, you may set the environment variables EGL_CFLAGS

and EGL_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details. 



'embeded > raspberry pi' 카테고리의 다른 글

wayland 설정  (0) 2015.08.19
라즈베리 파이 2 / wayland 도전.. ㅠㅠ  (0) 2015.08.18
라즈베리 파이 evdev ?  (0) 2015.08.17
라즈베리 파이 MMAL / openMAX  (0) 2015.08.17
라즈베리 부트 시퀀스  (0) 2015.08.17
Posted by 구차니