Score:0

Trying to compile with make but missing functions like offsetof

us flag

So im trying to create an SRT server to test things out with livestreams etc and i found srt-live-server and cloned that from github. I already installed SRT and compiled and make'd installed that. and downgraded to openssl 1.1.1 as srt require that. But when download the srt-live-server and trying to make it im getting all sorts of error compileing it like

slscore/common.hpp:120:1: warning: ‘typedef’ was ignored in this declaration Blockquote

And

slscore/conf.hpp:72:12: warning: ‘offsetof’ within non-standard-layout type ‘sls_conf_relay_t’ is conditionally-supported [-Winvalid-offsetof]

I figured it might have todo with the G++ compiler or GCC compiler. But i have no clue why and how to correct this to a lower version to get it compile. As it seems the system has a newer compiler ofcourse but the make file cant use that.

Hope anyone can help shred some light on how to correct og what i need to install the example GCC-6/G++-6 package or where ever the g++/gcc version might be is

Node the makefile runs this line to execute: g++ -c -g slscore/SLSMapPublisher.cpp -o obj/SLSMapPublisher.o and then the errors arise.

hr flag
I was able to build it (apparently successfully - `./bin/slc` executes and returns a usage message) on Ubuntu 22.04 with the default gcc/g++ 11.3.0 after installing the libsrt-openssl-dev package (from the universe repository). No downgrading of compilers OR openssl seems to be necessary.
Melonendk avatar
us flag
Without any error outputs ? Just weird it wont let me... like im getting spammed with errors like above not small but A LOT and i simply followed srt setup with make install and dependencies they have showed on github. and then srt live server cloned and just used make - i still get build successfull so unless they are just warnings... ?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.