Comments (3)
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.
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.
I'm glad you got it working :)
from nymphcast.
Related Issues (20)
- raspberrypi nymphcast_server[9460]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory HOT 5
- Integration with Home Assistant HOT 1
- Client app in Kirigami HOT 1
- Firefox addon
- Integration with Plasma Bigscreen HOT 5
- Flatpak package
- Need help getting started HOT 4
- Failure to install Android APK "App not installed as package appears to be invalid" HOT 4
- Playing status is not synced over clients on launch HOT 7
- Groups are not listed under "Group remotes" and thus can not be removed or renamed HOT 1
- Unable to play to group because of "Please check that all remotes in the group are online" error HOT 8
- NymphCast-MediaServer no longer build on Arch Linux HOT 3
- NymphCastPlayer no longer build on Arch Linux HOT 4
- Feature Request :-) HOT 2
- [Feature request] Add a PipeWire client so system audio can be casted to a receiver HOT 3
- Raspberry Pi Server: Audio works through the receiver, but doesn't output video HOT 7
- Calling media status callback failed: Provided handle was not found HOT 1
- Q: Could Nymphcast be integrated with "MatterCast"? HOT 1
- [REQUEST] NymphCast `Music Provider` and `Player Provider` for "Music Assistant" (a.k.a. MA) for streaming high-quality audio directly to and from MA-streaming interoperability/integration software?
- uninstall? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nymphcast.