Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24.04 Support #23126

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Ubuntu 24.04 Support #23126

wants to merge 2 commits into from

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented May 13, 2024

Solved Problem

Ubuntu 24.04 stable came out and we already have the first developer @haumarco using it on a new laptop. Some things need to be adapted.

Issues

Changelog Entry

Ubuntu 24.04 support of toolchain
Documentation: Make sure it's reflected on the development environment page.

Test coverage

With this hacky draft I could successfully build make px4_sitl and make px4_fmu-v5x. I haven't tested more. Let's cooperate to work through the items and do more testing.

@saosebastiao
Copy link

saosebastiao commented May 15, 2024

The basic flow for a python virtual environment using venv is to create a directory for your environment using python -m venv /path/to/myenv. Most projects will just name this directory venv/, and it is conventional to add this directory to .gitignore, as it will contain platform-specific code.

The virtual environment is activated by calling source venv/bin/activate, which updates your local shell's PATH references so that the virtual environment's dependencies appear like they're global. After activating the virtual environment, dependencies can be added using normal pip commands:

python3 -m pip install -r path/to/requirements.txt` 

Then when you want to leave the virtual environment, you have to call deactivate, which was added to your path in the initial activation.

I have something of a working branch with this modification for macos (the branch has a lot of other issues), discussed here:
#23073

@julianoes
Copy link
Contributor

@saosebastiao I agree. Switching dependencies to a venv is long overdue. (And we should also install the arm compiler only locally and source it in the same way, and not mess with the users PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants