mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-23 00:53:43 +08:00
Build openpilot on mac in CI (#1792)
* build on mac in CI
* coreutils
* python stuff
* pipenv
* newer clang
* init pyenv
* verbose
* init pyenv
* install eigen
* ffmpeg
* sdl
* libav
* libtool
* glfw
* add pipfile as cache key
* test cache
* fix cache path
* brew link
* update tools readme
* don't cache on pipfile
* skip python install if installed
* unlink
* simpler cachingm
* here's your key
* cache pip too
* cache pyenv
old-commit-hash: c450110f96
This commit is contained in:
+3
-11
@@ -24,23 +24,15 @@ Table of Contents
|
||||
Requirements
|
||||
============
|
||||
|
||||
openpilot tools and the following setup steps are developed and tested on Ubuntu 16.04, MacOS 10.14.2 and Python 3.7.3.
|
||||
openpilot tools and the following setup steps are developed and tested on Ubuntu 16.04, MacOS 10.14.2 and Python 3.8.2.
|
||||
|
||||
Setup
|
||||
============
|
||||
1. Run ubuntu_setup.sh, make sure everything completed correctly
|
||||
1. Run `ubuntu_setup.sh` or `mac_setup.sh`, make sure everything completed correctly
|
||||
|
||||
2. Compile openpilot by running ```scons``` in the openpilot directory
|
||||
|
||||
3. Add some folders to root
|
||||
```bash
|
||||
sudo mkdir /data
|
||||
sudo mkdir /data/params
|
||||
sudo chown $USER /data/params
|
||||
```
|
||||
|
||||
|
||||
4. Try out some tools!
|
||||
3. Try out some tools!
|
||||
|
||||
|
||||
Tool examples
|
||||
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# install brew
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
|
||||
brew install capnp \
|
||||
czmq \
|
||||
coreutils \
|
||||
eigen \
|
||||
ffmpeg \
|
||||
glfw \
|
||||
libarchive \
|
||||
libtool \
|
||||
llvm \
|
||||
pyenv \
|
||||
zeromq
|
||||
|
||||
# install python
|
||||
pyenv install -s 3.8.2
|
||||
pyenv global 3.8.2
|
||||
pyenv rehash
|
||||
eval "$(pyenv init -)"
|
||||
|
||||
pip install pipenv==2018.11.26
|
||||
pipenv install --system --deploy
|
||||
|
||||
Reference in New Issue
Block a user