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

compile newest webrtc #126

Closed
pcgpcgpcg opened this issue Jun 18, 2018 · 1 comment
Closed

compile newest webrtc #126

pcgpcgpcg opened this issue Jun 18, 2018 · 1 comment

Comments

@pcgpcgpcg
Copy link

newest webrtc use abseil, when compile webrtc-streamer.
make error:
g++ -o src/rtspaudiocapturer.o -c src/rtspaudiocapturer.cpp -Wall -pthread -g -std=c++11 -Iinc --sysroot=/ -DWEBRTC_POSIX -fno-rtti -DHAVE_JPEG -I /home/pcg/webrtc-checkout/src -I /home/pcg/webrtc-checkout/src/third_party/jsoncpp/source/include -I /home/pcg/webrtc-checkout/src/third_party/libyuv/include -DNDEBUG=1 -DHAVE_ALSA -I //usr/include -DHAVE_LIVE555 -I live555helper/inc -I //usr/include/liveMedia -I //usr/include/groupsock -I //usr/include/UsageEnvironment -I //usr/include/BasicUsageEnvironment/ -I civetweb/include -I h264bitstream -DVERSION=""v0.0.10-26-g0842280 webrtc@00c7183 live555helper@4472593 civetweb@v1.10-149-g5f92d24 h264bitstream@0.2.0""
In file included from /home/pcg/webrtc-checkout/src/api/mediastreaminterface.h:25:,
from /home/pcg/webrtc-checkout/src/pc/localaudiosource.h:14,
from inc/rtspaudiocapturer.h:17,
from src/rtspaudiocapturer.cpp:11:
/home/pcg/webrtc-checkout/src/api/optional.h:15:33: fatal error: absl/types/optional.h: No such file or directory
compilation terminated.
Makefile:109: recipe for target 'src/rtspaudiocapturer.o' failed
make: *** [src/rtspaudiocapturer.o] Error 1

@pcgpcgpcg
Copy link
Author

solved! just add this in makefile:
CFLAGS += -I $(WEBRTCROOT)/src -I $(WEBRTCROOT)/src/third_party/jsoncpp/source/include -I $(WEBRTCROOT)/src/third_party/libyuv/include -I $(WEBRTCROOT)/src/third_party/abseil-cpp

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

1 participant