Hi! I’m trying to build in a raspberry pi and I literally copied and pasted the whole Setting up the Build Environment (Linux/Ubuntu) — Dev documentation page but I cant make sim_vehicle.py work. When I’m in the ardupilot/ArduCopter directory there is no sim_vehicle.py. I installed the tools like a million times and I can see that there is a sim_vehicle.py file in Tools but it does not work in ardupilot/ArduCopter. Altough I could make it work by copying the path( /home/pi/ardupilot/Tools/autotest/sim_vehicle.py ) and typing the frame type and others. What do you think the problem is ?
You should have the path in your .profile
As written in wiki you need to logout/login to make it active
How do I save the path in my .profile I do . ~/.profile and it doesn’t show anything. I logout and log in as you said and it still does not work
pi@raspberrypi:~ $ git clone GitHub - ArduPilot/ardupilot: ArduPlane, ArduCopter, ArduRover, ArduSub source
fatal: destination path ‘ardupilot’ already exists and is not an empty directory.
pi@raspberrypi:~ $ cd ardupilot/
pi@raspberrypi:~/ardupilot $ git submodule update --init --recursive
pi@raspberrypi:~/ardupilot $ Tools/environment_install/install-prereqs-ubuntu.sh -y
---------- Tools/environment_install/install-prereqs-ubuntu.sh start ----------
- ‘[’ 1000 == 0 ‘]’
- OPT=/opt
- ARDUPILOT_TOOLS=Tools/autotest
- ASSUME_YES=false
- QUIET=false
- sep=’##############################################’
- OPTIND=1
- getopts yq opt
- case “$opt” in
- ASSUME_YES=true
- getopts yq opt
- APT_GET=‘sudo apt-get’
- true
- APT_GET=‘sudo apt-get --assume-yes’
- false
- sudo apt-get --assume-yes update
Hit:1 Index of /debian bullseye InRelease
Hit:2 Index of /repo/debian stable-raspbianbuster InRelease
Hit:3 Index of /raspbian bullseye InRelease
Reading package lists… Done - package_is_installed lsb-release
- dpkg-query -W ‘-f=${Status}’ lsb-release
- grep -c ‘ok installed’
1
++ lsb_release -c -s - RELEASE_CODENAME=bullseye
- PYTHON_V=python
- PIP=pip2
- ‘[’ bullseye == xenial ‘]’
- ‘[’ bullseye == disco ‘]’
- ‘[’ bullseye == eoan ‘]’
- ‘[’ bullseye == focal ‘]’
- ‘[’ bullseye == ulyssa ‘]’
- ‘[’ bullseye == groovy ‘]’
- ‘[’ bullseye == hirsute ‘]’
- ‘[’ bullseye == bullseye ‘]’
- SITLFML_VERSION=2.5
- SITLCFML_VERSION=2.5
- PYTHON_V=python3
- PIP=pip3
- ARM_PKG_CONFIG_NOT_PRESENT=0
++ apt-cache search -n ‘^pkg-config-arm-linux-gnueabihf’ - ‘[’ -z ‘’ ‘]’
++ dpkg-query --search pkg-config-arm-linux-gnueabihf
++ grep -c dpkg-query: - ARM_PKG_CONFIG_NOT_PRESENT=1
- ‘[’ 1 -eq 1 ‘]’
- INSTALL_PKG_CONFIG=
- sudo apt-get --assume-yes install pkg-config
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
pkg-config is already the newest version (0.29.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. - ‘[’ -f /usr/share/pkg-config-crosswrapper ‘]’
- sudo ln -s /usr/share/pkg-config-crosswrapper /usr/bin/arm-linux-gnueabihf-pkg-config
ln: failed to create symbolic link ‘/usr/bin/arm-linux-gnueabihf-pkg-config’: File exists
pi@raspberrypi:~/ardupilot $ . ~/.profile
After that I log in and log out @ppoirier still does not work
.profile is updated as part of the install shell script
Just look at it , type cat .profile in home directory and you should have a path to Tools
Thanks! I worked it out