본문 바로가기
임베디드 컴퓨팅/Raspberry Pi

라즈베리파이 라즈비안 userland 어플리케이션 빌드하기

by makepluscode 2022. 3. 13.
반응형

Raspberry Pi userland application build

라즈베리파이 어플리케이션 빌드하기

라즈베리파이 유저랜드 어플리케이션

라즈비안 이미지에 recommended software 가 포함되어있지 않은 경우, 멀티미디어와 카메라 관련 어플리캐이션는 별도로 빌드해서 추가해야한다. 이 글에서는 라즈베리파이 어플리케이션 빌드를 설명한다.

라즈베리파이 유저랜드 어플리케이션 설치하기

apt-get 명령어를 통해 빌드에 필요한 패키지를 설치한다.

$ sudo apt install build-essential pkg-config cmake

tmp 디렉토리로 이동하여 userland git 를 복제한다.

$ cd /tmp/
$ git clone https://github.com/raspberrypi/userland

userland 디렉토리로 이동하여 buildme 스크립트로 빌드한다.

$ cd userland
$ ./buildme

빌드가 정상적으로 끝나고, build/bin 에서 빌드된 어플리케이션들을 확인 할 수 있다.

pi@raspberrypi:/tmp/userland/build/bin $ ls
brcmjpeg_test                 containers_stream_client  dtmerge                   mmal_vc_diag  raspiyuv    vidtex
containers_check_frame_int    containers_stream_server  dtoverlay                 mmalcam       tvservice
containers_datagram_receiver  containers_test           mmal_example_basic_1      mmalplay      vcgencmd
containers_datagram_sender    containers_test_bits      mmal_example_basic_2      raspistill    vchiq_test
containers_dump_pktfile       containers_test_uri       mmal_example_connections  raspivid      vcmailbox
containers_rtp_decoder        containers_uri_pipe       mmal_example_graph        raspividyuv   vcsmem
반응형

참고자료

아래 git 저장소에는 Raspberry Pi에서 사용되는 ARM 사이드 라이브러리의 소스 코드가 포함되어있다. EGL, mmal, GLESv2, vcos, openmaxil, vchiq_arm, bcm_host, WFC, OpenVG에 인터페이스할 ARM 어플리케이션을 위한 소스코드 이다.

https://github.com/raspberrypi/userland

 

GitHub - raspberrypi/userland: Source code for ARM side libraries for interfacing to Raspberry Pi GPU.

Source code for ARM side libraries for interfacing to Raspberry Pi GPU. - GitHub - raspberrypi/userland: Source code for ARM side libraries for interfacing to Raspberry Pi GPU.

github.com

 

반응형