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

Failed to build on Ubuntu 14.04 #196

Open
Saentist opened this issue May 14, 2023 · 1 comment
Open

Failed to build on Ubuntu 14.04 #196

Saentist opened this issue May 14, 2023 · 1 comment

Comments

@Saentist
Copy link

Saentist commented May 14, 2023

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

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?

@Barracuda09
Copy link
Owner

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

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

2 participants