티스토리 뷰

OS/Raspberry Pi

Raspberry Pi 4 : CodeTyphon 설치

파란크리스마스 2020. 12. 27. 18:37
728x90

출처

"sudo" 루트 권한 부여

pi@raspberrypi:~$ sudo vi /etc/sudoers

pi	ALL=(ALL) NOPASSWD: ALL

CodeTyphon 압축 해제

pi@raspberrypi:~$ cd Downloads/
pi@raspberrypi:~/Downloads$ unzip CodeTyphonIns.zip

Qt 버전 확인

pi@raspberrypi:~$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/arm-linux-gnueabihf/qt4/bin"
QTLIBDIR="/usr/lib/arm-linux-gnueabihf"
pi@raspberrypi:~$ qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib/arm-linux-gnueabihf

Qt4pas 라이브러리 설치 (Option : CodeTyphon 설치시 11) -- Platform (widget) Setup 에서 실행)

qt4-qmake 설치

pi@raspberrypi:~$ sudo apt install qt4-qmake qt4-dev-tools libqtwebkit-dev

ln_Typhon1_QT4pas_Build.sh 수정

pi@raspberrypi:~/Downloads$ cd CodeTyphonIns/installbin/ScriptsLin
pi@raspberrypi:~/Downloads/CodeTyphonIns/installbin/ScriptsLin$ vi ln_Typhon1_QT4pas_Build.sh

i386-linux-gnu를 arm-linux-gnueabihf 수정

# ---- these settings are for Ubuntu Linux -------
      if [ $vBits = 32 ] ;
       then
#        vQMake=/usr/lib/i386-linux-gnu/qt4/bin/qmake
        vQMake=/usr/lib/arm-linux-gnueabihf/qt4/bin/qmake
       else
        vQMake=/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
       fi

qt4pas.7z 압축을 풀어서 i386-linux 폴더를 arm-linux 복사하고 다시 압축

수동 컴파일 및 설치

pi@raspberrypi:~/Downloads/CodeTyphonIns/installbin/ScriptsLin$ ./ln_Typhon1_QT4pas_Build.sh
 
 ... 생략 ...
 
ln -s libQt4Pas.so.5.2.8 libQt4Pas.so
ln -s libQt4Pas.so.5.2.8 libQt4Pas.so.5
ln -s libQt4Pas.so.5.2.8 libQt4Pas.so.5.2
install -m 755 -p "libQt4Pas.so.5.2.8" "/usr/lib/arm-linux-gnueabihf/libQt4Pas.so.5.2.8"
strip --strip-unneeded "/usr/lib/arm-linux-gnueabihf/libQt4Pas.so.5.2.8"
ln -f -s "libQt4Pas.so.5.2.8" "/usr/lib/arm-linux-gnueabihf/libQt4Pas.so"
ln -f -s "libQt4Pas.so.5.2.8" "/usr/lib/arm-linux-gnueabihf/libQt4Pas.so.5"
ln -f -s "libQt4Pas.so.5.2.8" "/usr/lib/arm-linux-gnueabihf/libQt4Pas.so.5.2"
   
---------------------------------------
[INFO]: QT4pas Libraries finish Build OK for arm-linux
   
   
---------------------------------------------------------
    Make QT4Pas Libraries Links
---------------------------------------------------------
   
[INFO] Make QT4pas links to /usr/lib/arm-linux-gnueabihf/ for arm-linux finish OK

CodeTyphon 설치 스크립트 실행

pi@raspberrypi:~/Downloads$ cd CodeTyphonIns/
pi@raspberrypi:~/Downloads/CodeTyphonIns$ ./install.sh

0번 선택


====================================================
             CodeTyphon Studio 
            Version 7.30 (GEN 7)
  Installation for Linux-Solaris-Openindiana-MacOS
          FreeBSD-NetBSD-OpenBSD-DragonFly
====================================================
 
   0) Install CodeTyphon Studio
 
   9) Exit
 
>>> Select an action (press 0..9 key): 0

11번 선택

====================================================
  CodeTyphon Studio 7.20 Setup for Linux32
   Settings: Platform=qt4  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 11

2번 QT4 선택

====================================================
     CodeTyphon Studio Unix Platform (widget) Setup
        Current Platform: qt4
====================================================
   
Warning: Install System Libraries after every Platform change
   
   1) GTK2           (Default)
   2) QT4
   3) QT5
   4) GTK3           (Experimental)
   5) FpGUI          (Experimental)
   6) CustomDrawn    (Experimental)
   
   9) Back to Main Setup
   
>>> Select a platform (press 0..9 key): 2

12번 선택

====================================================
  CodeTyphon Studio 7.20 Setup for Linux32
   Settings: Platform=qt4  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 12

1번 선택

====================================================
    CodeTyphon Studio Multi-Architecture Setup
      Current Multiarch Mode: 0
====================================================
   
   0) NO  Multi-Architecture Mode (Multiarch=0)
   
   1) Use Multi-Architecture Mode (Multiarch=1)
   
   
   9) Back to Main Setup
   
>>> Select Mode (press 0..9 key): 1

0번 선택 ( 0) Install System Libraries )

====================================================
  CodeTyphon Studio 7.20 Setup for Linux32
   Settings: Platform=qt4  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 0

8번 선택 ( 8) Remove and Build ALL )

====================================================
  CodeTyphon Studio 7.20 Setup for Linux32
   Settings: Platform=qt4  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 8

9번 선택 ( 9) EXIT )

====================================================
  CodeTyphon Studio 6.70 Setup for Linux64
   Settings: Platform=gtk2  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 9

실행

런타임라이브러리 설치 (개발환경이 없는 곳에서 실행)

qt4pas_aarch64-linux.tar.gz
다운로드

pi@raspberrypi:~$ ./project1 
./project1: error while loading shared libraries: libQt4Pas.so.5: cannot open shared object file: No such file or directory
pi@raspberrypi:~$ sudo install -m 755 -p "libQt4Pas.so" "/usr/lib/arm-linux-gnueabihf/libQt4Pas.so.5"
pi@raspberrypi:~$ ./project1 
./project1: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory
pi@raspberrypi:~$ sudo apt install libqtwebkit4
댓글
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
글 보관함