Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Translating Debian packages to Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 219
Location: European sticks

PostPosted: Mon Oct 07, 2024 7:38 am    Post subject: Translating Debian packages to Gentoo Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1670
Location: Germany

PostPosted: Mon Oct 07, 2024 8:29 am    Post subject: Reply with quote

I can give you only some hints to follow:
https://forums.gentoo.org/viewtopic-t-917816-start-0.html
https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1657
Location: South America

PostPosted: Tue Oct 08, 2024 2:07 am    Post subject: Re: Translating Debian packages to Gentoo Reply with quote

erg_samowzbudnik wrote:
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.

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, media-libs/libjpeg-turbo, media-libs/libpng, media-libs/tiff, x11-libs/libSM, x11-libs/libXext and dev-qt/qtchooser.

Code:
    libgtk2.0-dev

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 :)
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1670
Location: Germany

PostPosted: Tue Oct 08, 2024 6:16 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 219
Location: European sticks

PostPosted: Tue Oct 08, 2024 8:40 am    Post subject: Reply with quote

@GDH-gentoo: Who are you, really?!? I feel so small now :lol:
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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