Install libnice issue

130 views
Skip to first unread message

Mehdi jafari

unread,
Feb 19, 2023, 8:03:28 AM2/19/23
to meetecho-janus
Hi All,
In my country I can not access to "https://gitlab.freedesktop.org/libnice/libnice"
So I clone libnice from https://github.com/libnice/libnice, then run this bash:

#!/bin/bash
# install_libnice.sh
git clone https://github.com/libnice/libnice
cd libnice
./autogen.sh
./configure --prefix=/usr
make && sudo make install

The result is:
Cloning into 'libnice'...
remote: Enumerating objects: 16240, done.
remote: Counting objects: 100% (777/777), done.
remote: Compressing objects: 100% (324/324), done.
remote: Total 16240 (delta 511), reused 683 (delta 437), pack-reused 15463
Receiving objects: 100% (16240/16240), 4.01 MiB | 1.42 MiB/s, done.
Resolving deltas: 100% (12309/12309), done.
install_libnice.sh: line 6: ./autogen.sh: No such file or directory
install_libnice.sh: line 7: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

I'm not very familiar with Linux
Please help me thanks.

Jonathan Müller

unread,
Feb 22, 2023, 11:17:58 AM2/22/23
to meetecho-janus
As of right now (Mi 22 Feb 2023 17:13:58 CET), both repos https://github.com/libnice/libnice and https://gitlab.freedesktop.org/libnice/libnice will give you exactly the same result after a checkout: the latest commit is 63f4962c11312fb1088a7a726592fe6aa5f8022f "Use ifr_ifindex on Linux", so this is not the issue.

The problem is that you are not using the right build instructions. You are trying to use ./autogen.sh, but this script does not exist in the repo.
Instead, follow the instructions in the README file:

        Build instructions
        ------------------
        libnice uses the Meson Build System: https://mesonbuild.com
       
        To build on Linux and Mac, you only need to type the usual commands :
       
          meson builddir
          ninja -C builddir
          ninja -C builddir test (or "meson test -C builddir" for more control)
          sudo ninja -C builddir install
       
        See https://mesonbuild.com/Quick-guide.html#compiling-a-meson-project
        for more details and how to install the Meson build system.

So, you need first to install ninja and meson on your system, and then run these commands. That should work.

Mehdi jafari

unread,
Mar 1, 2023, 1:44:33 AM3/1/23
to meetecho-janus
Thank you very much Jonathan, I'll test this approach.
Reply all
Reply to author
Forward
0 new messages