thewierdnut / asha_pipewire_sink

Asha audio protocol implementation for linux.
The Unlicense
28 stars 3 forks source link

g_timeout_add_once was not declared in this scope #2

Closed fritzthekid closed 5 months ago

fritzthekid commented 5 months ago

thank you for doing this stuff. This might be very helpful. I have a simple compile question:

[36%] Building CXX object CMakeFiles/asha_pipewire_sink.dir/asha/Asha.cxx.o
/xxx/asha_pipewire_sink/asha/Asha.cxx:105:7: error: ‘g_timeout_add_once’ was not declared in this scope; did you mean ‘g_timeout_add_full’?
  105 |       g_timeout_add_once(DEFER_INTERVAL_MS, [](void* user_data) {
      |       ^~~~~~~~~~~~~~~~~~

(same issue line 117.) Probably, I simply did something stupid. (cmake worked find - therefore I assume all packages were available.)

Platform: Ubuntu 22.04.4
cmake version: 3.22.1
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
build-essential ist schon die neueste Version (12.9ubuntu3).
cmake ist schon die neueste Version (3.22.1-1ubuntu1.22.04.2).
libglib2.0-dev ist schon die neueste Version (2.72.4-0ubuntu2.3).
libpipewire-0.3-dev ist schon die neueste Version (0.3.48-1ubuntu3).
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libfuse2
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
thewierdnut commented 5 months ago

What version of glib do you have?

$ pkg-config --modversion glib-2.0
2.74.6

edit:

libglib2.0-dev ist schon die neueste Version (2.72.4-0ubuntu2.3).

I think this is saying the version of glib you have is 2.72... that missing function appears to be added in 2.74. I'll switch to an alternative.

thewierdnut commented 5 months ago

I pushed a version that uses an older api. Try it now.

fritzthekid commented 5 months ago

Hello,

I used the wrong e-mail Address - excuse me for that.

about:

/> What version of glib do you have?/

|/> $ pkg-config --modversion glib-2.0 > 2.74.6/ |

I get 2.72.4

furthermore:


Von: Eduard Moser @. Gesendet: Dienstag, 4. Juni 2024 um 17:18 An: thewierdnut @.> Betreff: [thewierdnut/asha_pipewire_sink] Question about asha.cxx (Issue #2)

thank you for the fast update, now I got 68%.

Next issue is:

[ 72%] Building CXX object CMakeFiles/asha_pipewire_sink.dir/pw/Stream.cxx.o /home/eduard/work/tmp/asha_pipewire_sink/pw/Stream.cxx:8:10: fatal error: spa/param/audio/raw-utils.h: Datei oder Verzeichnis nicht gefunden     8 | #include <spa/param/audio/raw-utils.h>       |          ^~~~~~~~~ compilation terminated.

Regards, Eduard


Von: thewierdnut @. Gesendet: Dienstag, 4. Juni 2024 um 16:58 An: thewierdnut/asha_pipewire_sink @.> Cc: Eduard Moser @.>, Author @.> Betreff: [thewierdnut/asha_pipewire_sink] Question about asha.cxx (Issue #2)

I pushed a version that uses an older api. Try it now.

— Reply to this email directly, view it on GitHub https://github.com/thewierdnut/asha_pipewire_sink/issues/2#issuecomment-2147754010, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP7XAEXUTA2IS2SIY7VUBKLZFXIYJAVCNFSM6AAAAABIYUUWEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXG42TIMBRGA. You are receiving this because you authored the thread.Message ID: @.***>

-- Wilhelm-Blos-Straße 35 71636 Ludwigsburg https://keys.openpgp.org/search?q=eduard.moser%40gmx.de

thewierdnut commented 5 months ago

I think I fixed that header. Try it again.

fritzthekid commented 5 months ago

The above answer (from me) was totally confusing. That works already since yesterday. Thank you for fixing it that fast.

fritzthekid commented 5 months ago

Thank you again. > [100%] Built target encode_test

thewierdnut commented 5 months ago

lol encode_test is a piece of garbage I forgot to remove :D