Json/Json.h cannot open

300 views
Skip to first unread message

JPL

unread,
Aug 27, 2018, 9:58:17 AM8/27/18
to discuss-webrtc
Hello everyone,

have a quick question. I'm trying to build Peerconnection_client in VS2017. I'm using the files from example, but when I try to build it the Message. 
C1083 Cannot pen include file 'json/json.h': No such file or directory

After a bit of searching I add the includepath in my file to third_party/jsoncpp/source/include when I try to build that I get problem with Linker.
Someone here with the same problem or someone that can help me to fix this quick? (The peerconnection_server runs perfectly)

Cheers Jan-Phillip

李晓帆

unread,
Aug 28, 2018, 2:13:21 AM8/28/18
to discuss...@googlegroups.com
Hi,

Maybe you need deps += ["//third_party/jsoncpp"] in your BUILD.gn file.

JPL <jan-phil...@outlook.de> 于2018年8月27日周一 下午9:58写道:
--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/b116dc9c-3635-48a4-9d81-8305a040eb49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

JPL

unread,
Aug 28, 2018, 2:23:47 AM8/28/18
to discuss-webrtc
Hey Wesley,

My approach was as follows to keep it running:
gn gen out/release --args="is_debug=false target_winuwp_version=\"10\" target_cpu=\"x64\" use_rtti=true is_clang=false src_build_json=true" --ide="vs"
Change in third_party/jsoncpp/BUILD.gn edit source_set("jsoncpp") with "static_library("jsoncpp")
Change in src/rtc_base/BUILD.gn rtc_source_set("rtc_json" with "rtc_static_library("rtc_json")
Last but not least Ad LIBs 
LIBS += Strmiids.lib webrtc.lib rtc_json.lib jsoncpp.lib

May this help someone else.

Cheers,
Jan-Phillip

Ilya Malyavskiy

unread,
Aug 28, 2018, 12:29:08 PM8/28/18
to discuss-webrtc
Why don't you use the --ide="vs2017" key for gn to get sln and vcxproj files for entire webrtc? This will save your time and allow to debug and even change and compile sources right from the msvs2017.

JPL

unread,
Aug 28, 2018, 3:52:36 PM8/28/18
to discuss-webrtc
Hey Malyavskiy,

I will try this tomorrow. But I create my own project with qt (pri and pro Files)

Cheers
Jan-Phillip
Reply all
Reply to author
Forward
0 new messages