CESNET / UltraGrid

UltraGrid low-latency audio and video network transmission system
http://www.ultragrid.cz
Other
492 stars 53 forks source link

Compiling Nat-helper fails #249

Closed maybites closed 1 year ago

maybites commented 1 year ago

Hi

following the instruction of the readme file I get the following error:

root@telemersion:/opt/telemersive-tests/UltraGrid/nat-helper/build[master ?]# cmake ..
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/telemersive-tests/UltraGrid/nat-helper/build
root@telemersion:/opt/telemersive-tests/UltraGrid/nat-helper/build[master ?]# make
Scanning dependencies of target nat-helper
[ 16%] Building CXX object CMakeFiles/nat-helper.dir/main.cpp.o
In file included from /opt/telemersive-tests/UltraGrid/nat-helper/main.cpp:39:
/opt/telemersive-tests/UltraGrid/nat-helper/nat-helper.hpp:40:10: fatal error: asio.hpp: No such file or directory
   40 | #include <asio.hpp>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/nat-helper.dir/build.make:82: CMakeFiles/nat-helper.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/nat-helper.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

it seems to miss the asio library..

mpiatka commented 1 year ago

Hi,

it seems to miss the asio library..

Yes, that seems to be the case. You need to have the development package for asio installed to build this. On Ubunu/Debian the package is called libasio-dev and on fedora/RHEL it should be called asio-devel.

maybites commented 1 year ago

thanks, that did it:

apt install libasio-dev

might be worth to add to the readme..