Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openrtsp 2023.06.16 build issue #45

Open
chenrui333 opened this issue Jun 17, 2023 · 8 comments
Open

openrtsp 2023.06.16 build issue #45

chenrui333 opened this issue Jun 17, 2023 · 8 comments

Comments

@chenrui333
Copy link

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log
  BasicTaskScheduler.cpp: In member function ‘virtual void BasicTaskScheduler::SingleStep(unsigned int)’:
  BasicTaskScheduler.cpp:200:42: error: ‘struct std::atomic_flag’ has no member named ‘test’
    200 |         if (fTriggersAwaitingHandling[i].test()) {
        |                                          ^~~~
  make[1]: *** [Makefile:41: BasicTaskScheduler.o] Error 1

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/5287551081/jobs/9568349761
relates to Homebrew/homebrew-core#133924

@pepeRossRobotics
Copy link

Same issue here

@jahwanoh
Copy link

Same issue

@pepeRossRobotics
Copy link

A project that I follow fixed it in her
mpromonet/v4l2rtspserver@1ee9496

@kang-hyuck
Copy link

The current repository source is the 06.14 version, but I downloaded the 06.20 version source from the live555 official website and confirmed the same build error.

If you are 06.20 version, the problem is:

test variable in atomic_flag is a feature supported by c++20.
If your compiler fully supports c++20, you can just use the -std=c++20 or -std=c++2a option to solve the problem.
However, this may not work if your compiler does not fully support c++20.

If that's the case, just build by adding the -DNO_STD_LIB option. I solved the problem this way.

@luo980
Copy link

luo980 commented Jul 20, 2023

The current repository source is the 06.14 version, but I downloaded the 06.20 version source from the live555 official website and confirmed the same build error.

If you are 06.20 version, the problem is:

test variable in atomic_flag is a feature supported by c++20. If your compiler fully supports c++20, you can just use the -std=c++20 or -std=c++2a option to solve the problem. However, this may not work if your compiler does not fully support c++20.

If that's the case, just build by adding the -DNO_STD_LIB option. I solved the problem this way.

* _NO_STD_LIB_ macro was added in **06.16 version** and more details can be found here:
  http://www.live555.com/liveMedia/public/changelog.txt

This works, just edit the config.platform file to add -std=c++2a to CPLUSCPLUS_FLAGS solves problem.

@august295
Copy link

The current repository source is the 06.14 version, but I downloaded the 06.20 version source from the live555 official website and confirmed the same build error.

If you are 06.20 version, the problem is:

test variable in atomic_flag is a feature supported by c++20. If your compiler fully supports c++20, you can just use the -std=c++20 or -std=c++2a option to solve the problem. However, this may not work if your compiler does not fully support c++20.

If that's the case, just build by adding the -DNO_STD_LIB option. I solved the problem this way.

thank you, my env is Ubuntu20.04 and live.2023.07.24.tar.gz, so i edit the config.linux-64bit, Added -DNO_STD_LIB at the end of the first line, Modify to COMPILE_OPTS = $(INCLUDES) -m64 -fPIC -I/usr/local/include -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DNO_STD_LIB

@yucai233
Copy link

which config file belong to raspberry 3b+?

@barracuda156
Copy link

Yes, passing -std=c++20 fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants