Git Product home page Git Product logo

Comments (3)

MayaPosch avatar MayaPosch commented on August 20, 2024

Hello, and welcome :)

The issue is that the compiler cannot find the <filesystem> header, which is used for filesystem-related functionality. This is a C++17 feature.

It appears that Ubuntu 18:04 uses GCC 7.4 by default: https://packages.ubuntu.com/bionic/g++

GCC 8 was the first to provide <filesystem> https://en.cppreference.com/w/cpp/compiler_support

Some people are installing GCC 9 on Ubuntu 18.04: https://askubuntu.com/questions/1140183/install-gcc-9-on-ubuntu-18-04

The easiest way to solve this issue would be to update to a newer GCC version. It appears that GCC 8 is directly available, as the g++-8 package:

sudo apt-get update
sudo apt-get install gcc-8 g++-8
gcc-X --version

(Via: https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu)

Hope this helps! :)

from nymphcast.

BatBat81 avatar BatBat81 commented on August 20, 2024

Great. That solved the issue. I run it using gcc-8 and g++-8.

I managed to fix another issue due to ubuntu 18.04.

g++ -c -o obj/ffplay/stream_handler.o ffplay/stream_handler.cpp -ffunction-sections -fdata-sections -g3 -O0 -I . -I ffplay -I angelscript/angelscript/include -I angelscript/add_on -I angelscript/json `sdl2-config --cflags` -std=c++17
In file included from ffplay/types.h:38,
                 from ffplay/frame_queue.h:7,
                 from ffplay/stream_handler.cpp:3:
ffplay/cmdutils.h:640:34: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
     snprintf(name, sizeof(name), "0x%"PRIx64, ch_layout);
                                  ^
ffplay/stream_handler.cpp: In function 'int is_realtime(AVFormatContext*)':
ffplay/stream_handler.cpp:357:33: error: 'AVFormatContext' {aka 'struct AVFormatContext'} has no member named 'url'
     if(s->pb && (   !strncmp(s->url, "rtp:", 4)
                                 ^~~
ffplay/stream_handler.cpp:358:33: error: 'AVFormatContext' {aka 'struct AVFormatContext'} has no member named 'url'
                  || !strncmp(s->url, "udp:", 4)
                                 ^~~
ffplay/stream_handler.cpp: In static member function 'static int StreamHandler::read_thread(void*)':
ffplay/stream_handler.cpp:686:61: error: 'AVFormatContext' {aka 'struct AVFormatContext'} has no member named 'url'
                        "%s: error while seeking\n", is->ic->url);
                                                             ^~~
Makefile:75: recipe for target 'obj/ffplay/stream_handler.o' failed
make: *** [obj/ffplay/stream_handler.o] Error 1

It is due to the official libAV for Ubuntu 18.04 seems to be v3. But I find a rep with the ffmpeg v4.

ppa:jonathonf/ffmpeg-4

Then, I was able to finish the installation. :)

So, now I will play a little bit with NymphCast. Thanks.

from nymphcast.

MayaPosch avatar MayaPosch commented on August 20, 2024

I'm glad you got it working :)

from nymphcast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.