티스토리 뷰

OS/Raspberry Pi

Raspberry Pi - Qt5 설치

파란크리스마스 2018. 4. 4. 23:09
728x90

출처

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

댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함