Nheko-Reborn / nheko

Desktop client for Matrix using Qt and C++20.
https://nheko-reborn.github.io/
GNU General Public License v3.0
1.93k stars 201 forks source link

Arch Linux update AUR #282

Closed LibreHacker closed 4 years ago

LibreHacker commented 4 years ago

Try build Nheko with https://aur.archlinux.org/packages/nheko-git/ and VOIP not working.

Please fix it, if you can.

LibreHacker commented 4 years ago

@redsky17

redsky17 commented 4 years ago

Thanks for letting me know. I'll take a look at it. Also, you can comment directly on the AUR page and I'll get an email about it

redsky17 commented 4 years ago

I added the gstreamer dependency to the PKGBUILD and the .SRCINFO files. Please let me know if it works for you (I was able to build and launch).

LibreHacker commented 4 years ago

Sadly, but seem its not fix problem...

redsky17 commented 4 years ago

I added missing gstreamer plugins that trilene told me about. Try again please.

LibreHacker commented 4 years ago

No, its not working again.

deepbluev7 commented 4 years ago

What exactly is the issue you are having? Is the call button missing or do calls just not work?

LibreHacker commented 4 years ago

Call button missing and nothing see like calling. I can't test calls...

In chat see placed a voice call. ended a voice call.

deepbluev7 commented 4 years ago

Yep, that's a dependency issue, thanks for confirming that.

LibreHacker commented 4 years ago
-- Checking for modules 'gstreamer-sdp-1.0>=1.14;gstreamer-webrtc-1.0>=1.14'
--   Package 'gstreamer-sdp-1.0', required by 'virtual:world', not found
--   Package 'gstreamer-webrtc-1.0', required by 'virtual:world', not found
trilene commented 4 years ago

gstreamer-sdp-1.0 is provided by 'gst-plugins-base' gstreamer-webrtc-1.0 is provided by 'gst-plugins-bad' These are needed at build time along with 'gstreamer' 'gst-plugins-good' is also needed but only at runtime

LibreHacker commented 4 years ago

gstreamer-sdp-1.0 is provided by 'gst-plugins-base' gstreamer-webrtc-1.0 is provided by 'gst-plugins-bad' These are needed at build time along with 'gstreamer' 'gst-plugins-good' is also needed but only at runtime

All packages installed, but AUR build give "not found"

trilene commented 4 years ago

What does pkg-config output?

$ pkg-config --cflags --libs gstreamer-sdp-1.0 gstreamer-webrtc-1.0 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread -lgstsdp-1.0 -lgstwebrtc-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0

LibreHacker commented 4 years ago

-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -pthread -lgstsdp-1.0 -lgstrtp-1.0 -lgstwebrtc-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0

redsky17 commented 4 years ago

It seems there was some issue with the cmake configure step in the build() section of the PKGBUILD that was causing pkg-config lookup for gstreamer-sdp-1.0 and gstreamer-webrtc-1.0 to fail. I updated the configure step and now it seems to be working correctly (I placed a voice call w/ @nico a few minutes ago using the AUR build).

Considering I changed the configure step, please make sure you clean build when you update, and try again!

LibreHacker commented 4 years ago

It seems there was some issue with the cmake configure step in the build() section of the PKGBUILD that was causing pkg-config lookup for gstreamer-sdp-1.0 and gstreamer-webrtc-1.0 to fail. I updated the configure step and now it seems to be working correctly (I placed a voice call w/ @nico a few minutes ago using the AUR build).

Considering I changed the configure step, please make sure you clean build when you update, and try again!

CMake Warning at build/_deps/matrixclient-src/CMakeLists.txt:102 (find_package):
  By not providing "FindOlm.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Olm", but
  CMake did not find one.

  Could not find a package configuration file provided by "Olm" (requested
  version 3) with any of the following names:

    OlmConfig.cmake
    olm-config.cmake

  Add the installation prefix of "Olm" to CMAKE_PREFIX_PATH or set "Olm_DIR"
  to a directory containing one of the above files.  If "Olm" provides a
  separate development package or SDK, be sure it has been installed.
-- The following REQUIRED packages have not been found:

 * Olm (required version >= 3), An implementation of the Double Ratchet cryptographic ratchet, <https://git.matrix.org/git/olm/about/>

CMake Error at /usr/share/cmake-3.18/Modules/FeatureSummary.cmake:457 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  build/_deps/matrixclient-src/CMakeLists.txt:245 (feature_summary)
LibreHacker commented 4 years ago

Add to depends: libolm, spdlog, tweeny (AUR), lmdbxx (AUR)

LibreHacker commented 4 years ago

Look like tweeny and lmdbxx need only for build.

But new problem: messages not send. Message can receive from Element and older version Nheko.

Element calling to Nheko working. Nheko to Element and Nheko don't.

Its given on accept calling from Nheko.

[ui] [warning] WebRTC: no TURN server provided
[ui] [error] WebRTC: GstWebRTCICEConnectionState -> Failed
LibreHacker commented 4 years ago

Try clear cache Nheko, first message after be send, but call and others messages not...

[qml] [warning] QObject::killTimer: Timers cannot be stopped from another thread (:0, )
[qml] [warning] QObject::startTimer: Timers cannot be started from another thread (:0, )
[qml] [warning] propsReply "Method \"GetAll\" with signature \"s\" on interface \"org.freedesktop.DBus.Properties\" doesn't exist\n" (:0, )
[qml] [warning] nmReply "Method \"GetDevices\" with signature \"\" on interface \"org.freedesktop.NetworkManager\" doesn't exist\n" (:0, )           
[qml] [warning] "Object path cannot be empty" (:0, )
LibreHacker commented 4 years ago

I'm change lmdbxx (AUR) for https://github.com/hoytech/lmdbxx

given Cache_p.h:339:53: error: ‘val’ is not a member of ‘lmdb’

https://github.com/drycpp/lmdbxx/pull/20

redsky17 commented 4 years ago

I added the dependencies you mentioned to the pkgbuild / .srcinfo files. Please check again. As far as issues relating to gstreamer support are concerned, those should get separate issues (and also, double check your configuration of your TURN server and whatnot).

redsky17 commented 4 years ago

@LibreHacker is this working for you now?