Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
a4a0ccf7
Unverified
Commit
a4a0ccf7
authored
6 years ago
by
Daniel Agar
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
initial dev env setup scripts for Ubuntu and OSX (#8818)
parent
b03cfd9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Tools/setup/OSX.sh
+14
-0
14 additions, 0 deletions
Tools/setup/OSX.sh
Tools/setup/requirements.txt
+10
-0
10 additions, 0 deletions
Tools/setup/requirements.txt
Tools/setup/ubuntu.sh
+53
-0
53 additions, 0 deletions
Tools/setup/ubuntu.sh
with
77 additions
and
0 deletions
Tools/setup/OSX.sh
0 → 100755
+
14
−
0
View file @
a4a0ccf7
#! /usr/bin/env bash
# script directory
DIR
=
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
brew tap PX4/px4
brew
install
px4-dev
# python dependencies
sudo
easy_install pip
pip
install
-r
${
DIR
}
/requirements.txt
# Optional, but recommended additional simulation tools:
brew
install
px4-sim
This diff is collapsed.
Click to expand it.
Tools/setup/requirements.txt
0 → 100644
+
10
−
0
View file @
a4a0ccf7
argparse>=1.2
empy>=3.3
jinja2>=2.8
numpy>=1.13
pandas>=0.21
pyserial>=3.0
pyulog>=0.5.0
setuptools>=39.2.0
toml>=0.9
wheel>=0.31.1
This diff is collapsed.
Click to expand it.
Tools/setup/ubuntu.sh
0 → 100755
+
53
−
0
View file @
a4a0ccf7
#! /usr/bin/env bash
# script directory
DIR
=
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
# check ubuntu version
# instructions for 16.04, 18.04
# otherwise warn and point to docker?
UBUNTU_RELEASE
=
`
lsb_release
-rs
`
if
[[
"
${
UBUNTU_RELEASE
}
"
==
"14.04"
]]
then
echo
"Ubuntu 14.04 unsupported, see docker px4io/px4-dev-base"
exit
1
elif
[[
"
${
UBUNTU_RELEASE
}
"
==
"16.04"
]]
then
echo
"Ubuntu 16.04"
elif
[[
"
${
UBUNTU_RELEASE
}
"
==
"18.04"
]]
then
echo
"Ubuntu 18.04"
echo
"WARNING, instructions only tested on Ubuntu 16.04"
fi
export
DEBIAN_FRONTEND
=
noninteractive
sudo
apt-get update
-yy
--quiet
sudo
apt-get
-yy
--quiet
--no-install-recommends
install
\
bzip2
\
ca-certificates
\
ccache
\
cmake
\
g++
\
gcc
\
git
\
lcov
\
make
\
ninja-build
\
python-pip
rsync
\
unzip
\
wget
\
wget
\
xsltproc
\
zip
# python dependencies
python
-m
pip
install
--user
--upgrade
pip setuptools wheel
python
-m
pip
install
--user
-r
${
DIR
}
/requirements.txt
# java (jmavsim or fastrtps)
# TODO: only install when necessary
sudo
apt-get
-y
--quiet
--no-install-recommends
install
\
default-jre-headless
\
default-jdk-headless
\
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment