Comments (11)
G'day, I just followed the instructions on this too (my they assume you know a lot about docker) - running inside a Ubuntu 16.04 VM on Windows.
When you say that the makefile directory was present - you mean that you can see it within docker?
I entered near-identical instructions - the main difference being use of sudo and also specified the source tree:
xhost +
sudo docker run -it --privileged \
-v ~/src/Firmware:/src/firmware/:rw \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=:0 \
-p 14556:14556/udp \
--name=px4_ros_sim px4io/px4-dev-ros:2017-05-31 bash
When I try build anything I don't get missing Makefile errors ...
make posix_sitl_default gazebo
Instead I get permission denied errors when make tries to create the build directories (followed by recipe fails). Any ideas on that?
from px4-devguide.
PS Just some notes on docs for when/if I come to document this:
- "Pull one of the tagged images if you're after a container that just works" - how do I get a list of tagged images? Link to an example list
- The list of containers in our docs does not match github - ie hierarchy here
- In particular, our docs refer to px4io/px4-dev , but heirarchy does not list this ... e.g. it has px4-dev-nuttx
- A real example using the normal ~/src/Firmware/ cloning/installation would not hurt. Even a bash script to do everything/set this up.
- For Linux the docker instructions say that you have to use
sudo
for all instructions from host. Need to make that clear.
from px4-devguide.
When you say that the makefile directory was present - you mean that you can see it within docker?
Yes. If I am within the docker container px4_ros_sim and go to the directory /src/firmware
then I basically can see the normal px4 Firmware directory (including the Makefiel). But I cannot build anything...
Not sure why you get permission denied or even why you should be root.
from px4-devguide.
Not sure why you get permission denied or even why you should be root.
From docker install guide: "You need to use sudo to run Docker commands. Continue to Linux postinstall to allow non-privileged users to run Docker commands and for other optional configuration steps."
Either way, clearly docs broken.
from px4-devguide.
but make
is not a docker command
from px4-devguide.
Sorry, I was unclear. I ran docker itself using sudo (i.e. sudo docker run -it ...
- your example doesn't. I think may try to add a group as per docs and see if that changes effect of permissions
from px4-devguide.
true: this is needed
https://docs.docker.com/engine/installation/linux/linux-postinstall/
from px4-devguide.
Actually it wasn't enough - I still got permission errors. I've just used chmod to give full access to my current user over the host folder (not clear why they didn't have it). Everything building now. Things would probably go smoother if I was better at linux.
from px4-devguide.
Sorry, didn't mean to close! Also, I don't appear to have got closer to helping you.
from px4-devguide.
@hamishwillee
with sudo docker run ...
I also get the permission denied error
from px4-devguide.
@Stifael Don't know if you saw, but Daniel's scripts for CI might be helpful: PX4/PX4-containers#65 (comment)
from px4-devguide.
Related Issues (20)
- Multi-Vehicle Sim with JMAVSim: First Vehicle not linking HOT 2
- Mixer generation from geometries HOT 1
- MicroRTPS Throughput Test & Manually Generate Client and Agent Code not actual HOT 1
- ubuntu_sim_common_deps.sh downloads html instead of .tar.gz when installing FastRTPS 1.7.1 and FastCDR-1.0.8 HOT 4
- RTPS/ROS2 Interface page typo HOT 3
- ubuntu_sim_ros_melodic.sh errors with 'Could not find a package configuration file provided by "geographic_msgs"' and "ImportError: No module named future" HOT 1
- Ubuntu 16.04 no longer supported? HOT 1
- Doc Bug: Flight Controller Porting Guide · PX4 v1.9.0 Developer Guide HOT 1
- Doc Bug: Flight Controller Porting Guide · PX4 v1.9.0 Developer Guide HOT 1
- Update MC positon control diagram with FF
- update LANGS.md to show Korean translation
- Doc Bug: Ubuntu/Debian Linux · PX4 Developer Guide HOT 8
- PX4/JMAVSIM Build Error (return value 512) HOT 2
- PX4 doesn't start completely HOT 7
- running offb_node.cpp HOT 4
- Link refers to the wrong place. HOT 1
- ROS Script ubuntu_sim_ros_melodic.sh doesn't compatible to ubuntu 20.04 HOT 3
- Add a new airframe: Servos positioning HOT 4
- Collision prevention not working on PX4 V5nano board HOT 6
- Damaged power port on Pixhawk 1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from px4-devguide.