Open Saentist opened 1 year ago
g++ -c -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -Wshadow -pthread -O2 -s -DNDEBUG -DHAS_NP_FUNCTIONS src/Version.cpp -o obj/Version.o g++: error: unrecognized command line option ‘-std=c++17’ make: *** [obj/Version.o] Error 1
make non-c++17
patch -p1 < backports/173.diff patching file Makefile Hunk #1 FAILED at 11. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej patching file checks/auto_tuple.cpp patching file checks/string_view.cpp patching file nonstd/string_view patching file nonstd/string_view.hpp patching file src/HeaderVector.cpp patching file src/HttpcServer.cpp patching file src/StreamManager.cpp Hunk #1 FAILED at 139. 1 out of 2 hunks FAILED -- saving rejects to file src/StreamManager.cpp.rej patching file src/TransportParamVector.cpp patching file src/input/dvb/delivery/DiSEqcSwitch.cpp patching file src/mpegts/NIT.cpp Hunk #1 succeeded at 294 (offset 34 lines). patching file src/mpegts/PAT.cpp Hunk #1 FAILED at 82. 1 out of 1 hunk FAILED -- saving rejects to file src/mpegts/PAT.cpp.rej patching file src/upnp/ssdp/Server.cpp Hunk #1 succeeded at 231 (offset 4 lines). make: *** [non-c++17] Error 1
I removed -std=c++17 but new problem come
-std=c++17
g++ -c -I src -Werror=vla -Wall -Wextra -Winit-self -Wshadow -pthread -O2 -s -DNDEBUG -DHAS_NP_FUNCTIONS src/Version.cpp -o obj/Version.o g++ -c -I src -Werror=vla -Wall -Wextra -Winit-self -Wshadow -pthread -O2 -s -DNDEBUG -DHAS_NP_FUNCTIONS src/InterfaceAttr.cpp -o obj/InterfaceAttr.o In file included from src/Log.h:23:0, from src/InterfaceAttr.cpp:22: src/StringConverter.h:27:23: fatal error: string_view: No such file or directory #include <string_view> ^ compilation terminated. make: *** [obj/InterfaceAttr.o] Error 1
Any suggestions?
Hi @Saentist
Yes to compile SatPI you need to have at least GCC version 8.3.
the Backport is probably not up to date and can not be patched against the current code
make non-c++17
I removed
-std=c++17
but new problem comeAny suggestions?