tech/linux

21/06/21 Groomide - kivy helloworld app build 환경 설정

tech-lover 2021. 6. 21. 17:37

sudo apt install git

git clone https://github.com/kivy/buildozer.git

cd buildozer

sudo apt install dialog

sudo apt install apt-utils -y

sudo apt-get install -y python3-setuptools sudo python3 setup.py install

cd ..

git clone https://github.com/Dirk-Sandberg/Kivy...

cd KivyHelloWorld

sudo apt update

sudo apt-get update

 

서명 오류 날 경우

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 터니널에 표시된 PUBKEY 입력

 

 

 

 

sudo apt update

sudo apt-get update

 

* 패스 설정

vi ~/.bashrc 

export PATH=~/.local/bin/:$PATH

. ~/.bashrc

 

pip install --upgrade pip

pip3 install --user --upgrade cython virtualenv

 

sudo apt-get install cython

sudo apt install -y git zip unzip openjdk-8-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev

 

sudo apt-get install build-essential curl file

sudo apt-get install autotools-dev

 

sudo apt-get install -y lld

sudo apt-get install autoconf

 

pip3 install colorama appdirs sh jinja2 six

 

* buildozer.spec 파일 수정하기

buildozer init

buildozer android debug

 

3. APK 파일을 폰으로 옮겨서 설치하기

 

source : https://www.youtube.com/watch?v=Pi510YawopE