Raspberry Pi - Qt5 설치

OS/Raspberry Pi 2018.04.04 23:09 Posted by 파란크리스마스

출처

Qt5 설치

$ sudo apt-get update
$ sudo apt-get install qt5-default qtbase5-dev qtdeclarative5-dev qt5-qmake qtcreator libqt5gui5  qtscript5-dev qtmultimedia5-dev libqt5multimedia5-plugins qtquickcontrols2-5-dev libqt5network5 cmake build-essential 
$ sudo apt-get install libqt5svg5-dev

oscpack 라이브러리

oscpack 라이브러리 다운로드

$ git clone https://github.com/dimitry-ishenko-casparcg/oscpack.git
Cloning into 'oscpack'...
remote: Counting objects: 511, done.
remote: Total 511 (delta 0), reused 0 (delta 0), pack-reused 511
Receiving objects: 100% (511/511), 110.97 KiB | 0 bytes/s, done.
Resolving deltas: 100% (377/377), done.

oscpack 라이브러리 설치

$ cd oscpack
$ make
$ sudo make install
install -c -D -m 755 liboscpack.so.1.1.0 //usr/local/lib/liboscpack.so.1.1.0
ln -s -f liboscpack.so.1.1.0 //usr/local/lib/liboscpack.so
mkdir -p //usr/local/include/ip //usr/local/include/osc
install -c -D -m 644 ip/*.h //usr/local/include/ip
install -c -D -m 644 osc/*.h //usr/local/include/osc
SUCCESS! oscpack has been installed in //usr/local/lib and //usr/local/include/ospack/

QT예제 - timer 프로그램

timer 프로그램 컴파일

$ git clone https://github.com/dimitry-ishenko-casparcg/timer.git
$ cd timer
$ qmake
$ ls
Makefile  README.md  res  screenshot.png  src  timer.pro
$ make

timer 프로그램 실행

$ ./timer



 

티스토리 툴바