Commit Graph

51 Commits

Author SHA1 Message Date
MT e80d78969d ubuntu_setup.sh: support 22.04 LTS (#24312)
* Build on 22.04 lts

- Removed python-dev from install_ubuntu_common_requirements()
- Added case ubuntu 22.04
- Added install_ubuntu_21.10_requirements()
- Modified install_ubuntu_latest_requirements() to include python3-dev instead of python-dev

* remove 21.10

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2a64f7b5638d4acf0dff3a84e842e78a89537d77
2022-04-25 14:06:30 -07:00
Willem Melching 772f394423 Revert "collect C++ code coverage (#23619)"
This reverts commit a97b2e613b275f407576ddb3d7a3bd52b05f612a.

old-commit-hash: a62e9140908f40f6966d977373e9d458bd9a53d2
2022-01-26 10:59:21 +01:00
Willem Melching 6c89b62dd9 collect C++ code coverage (#23619)
* collect cpp coverage

* install llvm

* compile with coverage

* cd to root

* remove broken gcda files

* remove newline

* delete more stuff

* script to collect coverage

* Update tools/collect_coverage.sh

* actually delete
old-commit-hash: 698ab6ac97bef2a00e0a6fa8111a5a0556a064d2
2022-01-25 23:15:24 +01:00
Adeeb Shihadeh 1ea1b9072a smaller docker image (#23469)
* save 2gb

* not used

* more cleanup

* little more

* wget too big

* follow

* needed for sim
old-commit-hash: fa3055f280ca56ce4563108a85e6ca6e121310c5
2022-01-10 11:43:18 -08:00
Andrew 192978753d mac: fix setup and re-enable CI (#23365)
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi

* add wget

* explicit python3. dont do onnx just yet

* resource compiler

* replace acados Darwin lib w universal2 libs

* relock Pipfile using linux machine

* Update update_requirements.sh

brackets

* Update update_requirements.sh

oops

* ci: re-enable mac build

* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script

* oops

* only mac

* k im lazy. does ci like this??

* huh??

* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo

* python version

* how did the builds not use swig?
* better reinstall check

* sometimes mac clang complain abt error limit

* ci: build OP in venv

* ci: bump to Big Sur
* retry? idk why it failed @ acados link

* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change

* update macOS README

* uh, maybe?

* k nvm

* ci: ok this is strange. might be scons bug?

* fix conflicts: bump

* just add cppcheck for pre-commit stuff

* agane

* cleanup

* try that

* fix path

* no pyenv update on mac

* source

* fix rpath prefix?

* no examples

* fix exit

* let's get this cached

* add virtualenvs to cache

* why did we cache that

* let's see what's big

* more

* always ruyn

* cache scons cache

* better cache key

* fix for partial hit

* why so long

Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
old-commit-hash: 66644217100f17e0a0c4f95f86aed2fd8c09c28c
2022-01-07 15:15:18 -08:00
Adeeb Shihadeh 02f1866b61 CI: use ubuntu_setup.sh (#23349)
* CI: use ubuntu_setup.sh

* works?

* need to fix paths

* set paths

* no batman for now

* pyenv version

* rehash after install packages

* unify python install

* revert that

* fix pyenv path

* no pipenv

* flip that

* fix rehash

* skip that

* revert panda
old-commit-hash: 066e3e3626f56d8f86c120defe4181eaed0182f4
2022-01-02 14:47:16 -08:00
Adeeb Shihadeh 55e0fb4a55 fix setup scripts if git isn't installed
old-commit-hash: 7cd6a88638be390e0a7a13210e837afc36e1c18c
2021-12-31 19:29:38 -08:00
Adeeb Shihadeh c9b2b90681 ubuntu_setup.sh: add option to continue on unsupported os
old-commit-hash: 0674726cf4e0dfffc30d4596e2c650821b792588
2021-11-16 14:30:51 -08:00
lipniak 9fcb713e9c tools/setup: do not change global state (#22735)
* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1d55f2f23e31dd64568d729ef33325cf229fdf51
2021-10-31 16:37:07 +01:00
lipniak dc816fc35c tools: add info on common issues (#22709)
* tools/README.md: add more information

1. Add info about OpenCL drivers
2. Add info about pipenv environment

* ubuntu_setup.sh: add clinfo

Adds the clinfo command so you can verify your OpenCL installation.

* tools/README.md: add info on GUI WSL
old-commit-hash: e68849cfc8e612eeadca316070e5f49464b98831
2021-10-29 11:19:43 +02:00
Andrew 1e04063b9b tools/setup: add missing package for plotjuggler (#22713)
old-commit-hash: 999b2ee5cc5af8f356a76b0cb240a3bfffa7b30c
2021-10-27 10:56:41 -07:00
lipniak d2d94f2fd4 ubuntu_setup.sh: add 21.10 support and change packages (#22628)
old-commit-hash: 38420a1bef9419fffe778ab737d69eb143337762
2021-10-22 15:45:20 -07:00
Adeeb Shihadeh 6b8ea0b86a tools/setup: install git-lfs from standard apt source
old-commit-hash: 76a87514975283722172c30d53e581c2f6815026
2021-10-19 22:37:08 -07:00
Minjie Xu 8120ce0a98 tools/setup: use OP_ROOT in cd (#22600)
old-commit-hash: a9672eabf490b2088fe32e2ef8e09e18ff41e1b1
2021-10-18 10:51:20 -07:00
Lasse Skov aade2e1025 tools: use .python-version in setup scripts (#22511)
* Updated tools installer to us.python-e version file

* Updated tools installer to use .python-version file

* fix path

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 25def3cc34708aa42859bf6362ba35cefafd61d4
2021-10-10 16:03:56 -07:00
orphen 44440909dd Fix path issues in ubuntu_setup.sh and openpilot_env.sh (#21380)
* fix: fix pathing issues in ubuntu_setup.sh and openpilot_env.sh

Fixes:
- enter git tree before trying git operations in ubuntu_setup.sh
- extend PYTHONPATH instead of overwriting it in openpilot_env.sh
- fix pyenv pathing with workaround in openpilot_env.sh

This also adds a newline before .bashrc extensions to visually separate
the additions from existing content.

* Update tools/ubuntu_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6d3c587564afe404031a7a14fc8b3431e1abb9bd
2021-06-23 13:31:28 -07:00
Willem Melching efa94a89ff Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86aefbe7667f0693402c1883d286ce331e9d6215
2021-05-17 14:57:07 +02:00
Nicklas Boman 5ffdb65c6c Removed libmysqldb-dev. dont need to add scons, some QT -dev added, python3-dev is not neededand readline-dev to apt install. Added path to .pyenv/shims and .pyenv/bin for the setupscript to find where pip and pyenv is installed. Also made the setup end like the mac_setup script (#20860)
old-commit-hash: 0f43e7e0896adcedd096f40e94adf19cf9621182
2021-05-09 13:34:55 -07:00
Adeeb Shihadeh 1ae061b09c update ubuntu setup
old-commit-hash: 6e360c08dfa2327877c85dd356499e66acfac133
2021-04-03 13:42:05 -07:00
Willem Melching 350b6b09cf Add qml-module-qtquick2 to package list
old-commit-hash: 58a17fb3c80b19ca955afcafcedc9af3f309c95f
2021-03-29 13:57:05 +02:00
iejMac 7780426434 improving tools readme (#20305)
* rough draft

* plotjuggler and carla description

* testing someting

* this is cool

* very short replay and debug desc

* small change

* small change 2

* better word

* low quality mode

* better word

* fixes

* changes

* minor fixes

* ubuntu_setup fix + README changes

* Update tools/README.md

* Update README.md

* Update README.md

* Update README.md

* changes

* Update tools/sim/README.md

* final changes

* final change

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c4031750f366905371565e3f9c80033534040647
2021-03-11 15:28:37 -08:00
Adeeb Shihadeh 8ec4fa1002 update to python 3.8.5 (#20217)
old-commit-hash: 2034a047507c9eb69dd431d6527fff0af6157c62
2021-03-09 13:38:22 -08:00
grekiki 60de719638 update libs (#20009)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4a509982a785085c5ec3b91e06fa846b1ea8ecbe
2021-02-03 17:09:49 +01:00
grekiki 4603a9b9d3 Fix Wifi UI not working on PC (#2597)
old-commit-hash: 3a7fcc62fb5bdadab0122625114d5b5e99a3e47e
2020-11-22 00:10:00 +01:00
doktorsleepelss 444080d1b6 Upgrade pip in ubuntu setup (#2573)
old-commit-hash: e1bda99acbf7f471ec94d76fb6b12f9d488e99bf
2020-11-19 14:54:26 -08:00
Adeeb Shihadeh 2e5247056a ubuntu 16.04 -> 20.04 (#2378)
old-commit-hash: 719c5e3598846a6f3fa08c85bb811d197e0c6d0a
2020-10-29 16:51:09 -07:00
Adeeb Shihadeh 8f9f31778d get rid of rest of czmq
old-commit-hash: f571b7c751847fbf6f28006fc4c4d57e640636d5
2020-10-27 19:07:56 -07:00
Greg Hogan f1835a740a more pipenv version updates
old-commit-hash: be2b093d6ea74a9d6b6eb5a4b7858b0889bb29c9
2020-09-15 18:25:16 -07:00
Vivek Aithal db0a4ef2dc dockerize carla + openpilot (#2011)
* dockerize carla + openpilot

* separate dockerfile

* bring back CI dockerfile

* cleanup bridge

* add op docker build and start script

* build container in CI

* fix camerad hack

* remove most magic numbers from bridge.py

* openpilot-sim docker build and run scripts

* fix dmonitoring hacks

* revert controlsd hacks

* clean up build scripts

* singular

* fix path

* fix image name

* modify sim readme

* sim readme and start script changes

* dockerfile with working opengl

* working opengl + passing panda build_st in docker

* fix bug in sim docker file

* bugfix sim docker file

* bugfix all op-sim docker issues

* modify readme + run script

* IT DRIVES

* clean this up

* more cleanup

* cleanup docker stuff

* more cleanup

* start with openpilot-base

* install carla python package

* Script is not in lib

* chmod

* everything should be running in docker now, the code may not be nice though

* works locally...

* rhdChecked is deprecated

* Checkout using git lfs when building sim container

* try to pass the tests

* pull latest docker

* gps should not throw an error on openpilot launch in bridge.py

* fixed a coding style error

* Only start ubloxd in car

* fixed more style problems

* revert typo

* Use enviromental variable to prevent errors in a simulator

* Remove unused import

* Attempt to fix missing enviromental variable

* fix typo

* less work for users, auto tmux engagement

* less work for users, auto tmux engagement

* fix check for nvidia

* clean up nvidia check

* remove typo, shorted dockerfile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
old-commit-hash: c5dfbe7a72c6f31a0aa3a32b6df3f81409b40faf
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh 0ae5e7403e QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: acd1bde496904fbc0d97f4d89e630358c4d11f7f
2020-09-09 19:04:28 +02:00
Willem Melching 55c441b6dd Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
old-commit-hash: 5782efe3ae7882a6a8eee0086b9c612c1d276814
2020-08-26 17:09:23 +02:00
Willem Melching 473fb11d34 Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e115c514521c7705112bd0cb2e4bf865b536501a
2020-08-20 17:16:44 +02:00
Michael Honan df26e99856 Setup script improvements to MacOS / Ubuntu (#2012)
* Setup script improvements to MacOS / Ubuntu

scons isn't actually required from brew install

pyenv init on all envs

added installation to .zshrc on macos with better dir logic

Using git to detect project root for ubuntu bashrc install

Check shell and determine correct RC file

Update tools/mac_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Sourcing RC file only if it's found

Removed unnecessary source of rc file

Submodules should never have been bumped...

Output the $RC_FILE when successfully installed

pyenv init every time, and skip RC install on CI

Confused bash conditionals, opposite of what I meant

* Was missing libusb on a fresh MacOS 10.15.6 install

Co-authored-by: Michael Honan <michaelhonan@Michaels-MacBook-Pro.local>
old-commit-hash: 4a9228fcc776d898287ebc015cab0a11fd3cdc64
2020-08-14 18:03:55 -07:00
Willem Melching b831619ec6 use pipenv for dev dependencies
old-commit-hash: 72cc0fc801fc4df60cc23e6818580a91e76f4f18
2020-06-05 14:03:54 -07:00
xx979xx d7e94a1704 add pygmae dependencies (#1573)
https://www.pygame.org/wiki/CompileUbuntu#Python%203.x%20into%20virtual%20environment
old-commit-hash: 6596dd62ae0a4111066537cb93bce520b05441b3
2020-05-27 12:24:04 -07:00
Ewout ter Hoeven d302078e30 Pip: Move from tensorflow-gpu to tensorflow package (#1530)
* Pip: Move from tensorflow-gpu to tensorflow package

Since tensorflow 2.1 the regular tensorflow package contains GPU support and replaces the tensorflow-gpu package, which will be depreceated at some point.

* Readme: Update Tensorflow version

* Update Pipfile.lock

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 3f8afe593f14a4a6f94ddb9c2f1aed1419d2f69a
2020-05-20 13:17:54 -07:00
Noel Schenk 0f610ac909 tensorflow-gpu==2.1 update (#1525)
not available on current used python version
old-commit-hash: ce8b629fb0fc989d99fa38f49eb96e552dc6e728
2020-05-16 21:59:28 -07:00
Willem Melching 8505259e41 Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
2020-05-12 18:50:07 -07:00
George Hotz a89ff6873e remove unused overpy, bump ubuntu_setup to 3.8.2
old-commit-hash: 0a6d9a7bbd4c63a3c121c52436428eb513c00429
2020-04-28 15:23:39 -07:00
Harald Schafer fe5d6177f0 not a good name
old-commit-hash: 24ae93f9656f3c8b769cd143b9117ce194173800
2020-04-23 12:29:06 -07:00
Ewout ter Hoeven 60c147478c Docs/tools: Update Tensorflow to 2.1 in readme and build script (#1286)
Update to Tensorflow 2.1 in a few forgotten places after 65f5e31:
tools\ubuntu_setup.sh
tools\webcam\README.md
old-commit-hash: d8a414834dcedbf68044c6ffdcc562a668241bb9
2020-03-28 12:10:43 -07:00
littlemountainman af2a48f249 Make Nui tests work. Framereader moved to tools/clib (#1185)
* add more deps

* setup is now working,removing brackets

* Fixing tests in nui

* make it eveno

* readme markdown and town not needed since set via client

* adding explanations for sim in readme

* make it markdown buildable

* revert changes in setup

* work now

old-commit-hash: a32fe80d392027290bdf3be35269dcc42d9cd5fe
2020-03-01 10:50:03 -08:00
George Hotz 2d34a9e640 setup ubuntu improvements
old-commit-hash: 3693aa56a7e135fb1ecf25190b158d0f450c6a55
2020-02-29 14:50:51 -08:00
George Hotz 50096ddbc8 commit external/capnp and don't build it
old-commit-hash: e10f3302906c9bf1bfc378eb087d4204edaa9708
2020-02-29 14:36:54 -08:00
Comma User 36f80cbf96 it's a real script now
old-commit-hash: 756a6d6ed895fbfd65236d24409f44e15bf360e8
2020-02-29 01:42:38 -08:00
Comma User 92dc82102c fix for loggerd
old-commit-hash: a89a9a8a4a5b3f316ee69f76c95c2c6baba3b353
2020-02-28 20:22:47 -08:00
Comma User c982e18146 ubuntu setup
old-commit-hash: 59b63d1950275d55253821f69590a95e1388bd9d
2020-02-28 20:18:02 -08:00
Comma User 3fc08e4232 fix sim
old-commit-hash: 1457001c2d74f89cd19ca380b4e7515a311f82b0
2020-02-28 19:58:05 -08:00
Comma User 375bea8b82 more ubuntu setup
old-commit-hash: 79a5183496aff08e7c14b8d64597517079634717
2020-02-28 19:44:59 -08:00
Comma User 0dd285c7fa more ubuntu setup
old-commit-hash: 6a0cbf45d4fecae16c071b01fa7f726deca7c88c
2020-02-28 19:36:29 -08:00