[Live-devel] building on raspberrypi Bookworm

Brian Koblenz brian.koblenz at irricloud.com
Wed May 29 16:55:49 PDT 2024


I am trying to create an environment on the latest debian os (Lite).
I last did this a few years ago and it is not one of my favorite
things.

This time around, I have forgotten all I learned about  the live555
stuff and am unsuccessfully trying to (naively) build
live555ProxyServer.

fwiw, I have added (to config.linux) -DALLOW_SERVER_PORT_REUSE=1 as a
COMPILER_OPT

I have a couple of issues:
a) there are a few places where the compiler complains about
unexpected indentation.  These certainly look suspicious and could be
eliminated by adding the relevant {}.  I am not (yet) too concerned
about these, but I include a couple of examples below

b) The BasicTaskScheduler.cpp is missing a member function.  See below.

In general, I know this software is carefully crafted and well
maintained so I suspect I am just out to lunch in some basic way.  Or
maybe my debian bookworm installation needs something important???

-brian


c++ -c -Iinclude -I../UsageEnvironment/include -I../groupsock/include
-I/usr/local/include -I. -O2 -DSOCKLEN_T=socklen_t
-D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
-DALLOW_SERVER_PORT_REUSE=1  -Wall -DBSD=1   BasicTaskScheduler.cpp
BasicTaskScheduler.cpp: In member function ‘virtual void
BasicTaskScheduler::SingleStep(unsigned int)’:
BasicTaskScheduler.cpp:191:40: error: ‘struct std::atomic_flag’ has no
member named ‘test’
  191 |       if (fTriggersAwaitingHandling[i].test()) {
      |                                        ^~~~
gmake[1]: *** [Makefile:41: BasicTaskScheduler.o] Error 1
gmake[1]: Leaving directory '/home/pi/live/BasicUsageEnvironment'

Examples of unexpected indentation exist in RTCP.cpp and VorbisAudioRTPSink.cpp

RTCP.cpp: In member function ‘void
RTCPInstance::processIncomingReport(unsigned int, const
sockaddr_storage&, int, unsigned char)’:
RTCP.cpp:568:7: warning: this ‘if’ clause does not guard...
[-Wmisleading-indentation]
  568 |       if (length < 4) break; length -= 4;
      |       ^~
RTCP.cpp:568:30: note: ...this statement, but the latter is
misleadingly indented as if it were guarded by the ‘if’
  568 |       if (length < 4) break; length -= 4;
      |                              ^~~~~~
RTCP.cpp:586:11: warning: this ‘if’ clause does not guard...
[-Wmisleading-indentation]
  586 |           if (length < 20) break; length -= 20;
      |           ^~
RTCP.cpp:586:35: note: ...this statement, but the latter is
misleadingly indented as if it were guarded by the ‘if’
  586 |           if (length < 20) break; length -= 20;



More information about the live-devel mailing list