View previous topic :: View next topic |
Author |
Message |
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 219 Location: European sticks
|
Posted: Mon Oct 07, 2024 7:38 am Post subject: Translating Debian packages to Gentoo |
|
|
Hi All,
I have Oak-D Lite device I'd like to use on Gentoo:
https://docs.luxonis.com/hardware/products/OAK-D%20Lite
Link to dependencies:
https://raw.githubusercontent.com/luxonis/depthai-python/refs/heads/main/docs/install_dependencies.sh
I would like to write an ebuild once I get it to a working state manually but I think I might have not installed all dependencies yet.
Could use help translating those debian packages from the script above to Gentoo packages.
I've set up a python venv environment, installed depthai_viewer with pip but I'm getting an error:
(got to use python 3.12 as dependency apache-arrow is not 3.13 ready)
$ python3.12 -m depthai_viewer
[2024-10-07T07:19:00Z ERROR eframe::native::run] Exiting because of error: Wgpu(NoSuitableAdapterFound) on event Resumed
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/erg/Oak-D_Lite/lib/python3.12/site-packages/depthai_viewer/__main__.py", line 31, in <module>
main()
File "/home/erg/Oak-D_Lite/lib/python3.12/site-packages/depthai_viewer/__main__.py", line 27, in main
sys.exit(bindings.main(sys.argv, python_exe, site_packages_directory))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: WGPU error: Failed to create wgpu adapter, no suitable adapter found. -> Failed to create wgpu adapter, no suitable adapter found.
Any advice on how to approach this beyond translating packages to Gentoo ones would be super helpful. |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1670 Location: Germany
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1657 Location: South America
|
Posted: Tue Oct 08, 2024 2:07 am Post subject: Re: Translating Debian packages to Gentoo |
|
|
Let's see. As far as I can tell from https://packages.debian.org:
Code: | python3
python3-dev |
Those are dev-lang/python on Gentoo, which you will have because of Portage
Code: | python3-pip
udev
cmake
git
python3-numpy
pkg-config
libjpeg-dev
libpng-dev
libtiff-dev
libsm6
libxext6
qtchooser |
Those are, in order, dev-python/pip, sys-apps/systemd-utils[udev] (i. e. installed with the udev USE flag set) on Gentoo with OpenRC or sys-apps/systemd on Gentoo with systemd, dev-build/cmake, dev-vcs/git, dev-python/numpy, dev-util/pkgconf (but ebuilds should specify virtual/pkg-config), media-libs/libjpeg-turbo, media-libs/libpng, media-libs/tiff, x11-libs/libSM, x11-libs/libXext and dev-qt/qtchooser.
That is x11-libs/gtk+:2, i. e. the slot 2 package.
Code: | libavcodec-dev
libavformat-dev
libswscale-dev
ffmpeg |
Those are media-video/ffmpeg.
Code: | libtbb-dev
libtbbmalloc2 |
Those are dev-cpp/tbb.
Code: | python3-pyqt5
python3-pyqt5.qtquick |
Those are dev-python/PyQt5[declarative], i. e. installed with the declarative USE flag set.
Code: | qtdeclarative5-dev
qml-module-qtquick2
qml-module-qtquick-layouts
qml-module-qtquick-window2 |
Those are dev-qt/qtdeclarative:5, i. e. the slot 5 package.
Code: | qtbase5-dev
qt5-qmake
qtbase5-dev-tools |
Those are dev-qt/qtcore.
Code: | qml-module-qtquick-controls2
qml-module-qt-labs-platform |
Those are dev-qt/qtquickcontrols2.
Code: | libdc1394-dev
libgl1-mesa-dev |
And those are, in order, media-libs/libdc1394 and media-libs/mesa.
This thread probably belongs in "Unsupported Software". _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
Last edited by GDH-gentoo on Tue Oct 08, 2024 12:57 pm; edited 1 time in total |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1670 Location: Germany
|
|
Back to top |
|
|
erg_samowzbudnik Apprentice
Joined: 09 Sep 2011 Posts: 219 Location: European sticks
|
Posted: Tue Oct 08, 2024 8:40 am Post subject: |
|
|
@GDH-gentoo: Who are you, really?!? I feel so small now
This is super helpful, thank you so much! Exactly what I needed to get me started.
This is going to be slow going due to life, I'll come back with more questions once I hit another wall. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|