- Repo sudah terinstall. Cek dengan
repo version
. Kalau error, bisa lihat tutorial di sini sudo apt-get update
- Git terinstall. Cek dengan
git
- Ukuran swap sudah diperbesar (optional). Tutorial ada disini
- Pastikan ada di home:
cd ~
- Buat folder
parrot-groundsdk
- Dalam folder
parrot-groundsdk
, jalankanrepo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
- Kalau butuh git config email dan name, ikutin aja cara yang ada di layar. Biasanya
git config --global user.name "namamu"
ataugit config --global user.email "emailmu"
. Lalu jalankan lagirepo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
- Setelah repo init beres, jalankan
repo sync
- Install dependencies
./products/olympe/linux/env/postinst
. PASTIKAN TAHAPAN INI TIDAK ADA ERROR, KALAU ADA ERROR, CEK TROUBLESHOOT DIBAWAH - Edit file
parrot-groundsdk/build/alchemy/toolchains/cpu.mk
, paling atas tambahkan
a. Jika menggunakan Raspi 3 kebawah
ifeq ("$(TARGET_CPU)",“pi3”)
TARGET_GLOBAL_CFLAGS += -march=armv7-a
TARGET_FLOAT_ABI ?= hard
endif
b. Jika menggunakan Raspi 4
ifeq ("$(TARGET_CPU)",“pi3”)
TARGET_GLOBAL_CFLAGS += -march=armv8-a+crc+simd
TARGET_FLOAT_ABI ?= hard
endif
- Edit file
parrot-groundsdk/products/olympe/linux/config/product.mk
, paling atas tambahkan
TARGET_DEFAULT_ARM_MODE := arm
TARGET_GLOBAL_CFLAGS_arm := -mfloat-abi=hard
TARGET_CPU = pi3
- Build Olympe 🚀
./build.sh -p olympe-linux -A all final -j
. - Accept semua Terms and Condition
- Kalau build ada error, cek troubleshoot dulu
- Build dibilang berhasil kalau sudah ikutin step semua diatas, dan udah seperti screenshot dibawah
- Setting environment path buat Olympe. Tambahkan line
export OLYMPE_ENV="./parrot-groundsdk/products/olympe/linux/env/shell "
bagian PALING BAWAH pada file~/.bashrc
- Jalankan
source ~/.bashrc
- Pastikan ada di home, lalu jalankan
source $OLYMPE_ENV
untuk masuk ke Python environment punya Olympe - Jalankan
python -c 'import olympe; print("Installation OK")'
. Kalau muncul "Installation OK", berarti anda berhasil 🚀💕💋. Kalau error, coba cek Google cara install nya. Umumnya error yang terjadi ituno module named xxx
, jadi bisa cari di Google yaak
- Error install postinst Cython: ganti
cython
menjadicython3
pada file./products/olympe/linux/env/postinst
, jalankan kembali postinst - Error build libclang: https://forum.developer.parrot.com/t/olympe-1-01-on-raspberry-pi-zero-and-pi3-a/9487, jalankan lagi build
- Error build aneh setelah coba jalanin build berkali-kali → rebuild hehe 😊. Cek cara rebuild
- Pastikan dalam folder
parrot-groundsdk
, jalaninrm -rf out/
- Pastikan tahapan langkah nomor 6-8 amanos
- Gas build Olympe 🚀
./build.sh -p olympe-linux -A all final -j
Kalau ada troubleshoot atau error lain, kabarin