WebRtc.NET icon indicating copy to clipboard operation
WebRtc.NET copied to clipboard

Latest source cannot be compiled

Open aniongithub opened this issue 7 years ago • 5 comments

Opening the solution with VS2015 and trying to build Debug/Release x64 gives me these errors:

2> Generating Code... 2>LINK : fatal error LNK1104: cannot open file 'liblept168.lib' 3>------ Rebuild All started: Project: WebRtc.NET.Demo, Configuration: Debug x64 ------ 3>CSC : error CS0006: Metadata file 'C:\Projects\WebRtc.NET\WebRtc.NET\Debug_x64\WebRtc.NET.dll' could not be found

Full log below: 1>------ Rebuild All started: Project: WebRtc.NET.Utils, Configuration: Debug Any CPU ------ 1> WebRtc.NET.Utils -> C:\Projects\WebRtc.NET\WebRtc.NET.Utils\bin\Debug\WebRtc.NET.Utils.dll 2>------ Rebuild All started: Project: WebRtc.NET, Configuration: Debug x64 ------ 2> stdafx.cpp 2> conductor.cc 2>C:\Projects\WebRtc.NET\WebRtc.NET\include\webrtc/base/window.h(87): warning C4312: 'reinterpret_cast': conversion from 'int' to 'rtc::DesktopId::DesktopT' of greater size 2>src\conductor.cc(479): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data 2> defaults.cc 2>C:\Projects\WebRtc.NET\WebRtc.NET\include\webrtc/base/window.h(87): warning C4312: 'reinterpret_cast': conversion from 'int' to 'rtc::DesktopId::DesktopT' of greater size 2> vp8_impl.cc 2>src\internals\vp8_impl.cc(224): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data 2>src\internals\vp8_impl.cc(224): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data 2>src\internals\vp8_impl.cc(294): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data 2>src\internals\vp8_impl.cc(570): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data 2>src\internals\vp8_impl.cc(694): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data 2>src\internals\vp8_impl.cc(758): warning C4244: 'initializing': conversion from 'float' to 'uint32_t', possible loss of data 2>src\internals\vp8_impl.cc(879): warning C4244: 'argument': conversion from 'const uint64_t' to 'int', possible loss of data 2>src\internals\vp8_impl.cc(900): warning C4244: 'initializing': conversion from 'const uint64_t' to 'int', possible loss of data 2>src\internals\vp8_impl.cc(1106): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data 2>src\internals\vp8_impl.cc(1324): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data 2> yuvframegenerator.cc 2> main.cc 2> Generating Code... 2> managed.cpp 2>C:\Projects\WebRtc.NET\WebRtc.NET\include\webrtc/base/window.h(87): warning C4312: 'reinterpret_cast': conversion from 'int' to 'rtc::DesktopId::DesktopT' of greater size 2> TJpeg.cpp 2>c:\projects\webrtc.net\webrtc.net\include\leptonica\pix.h(241): warning C4305: 'initializing': truncation from 'double' to 'l_float32' 2>c:\projects\webrtc.net\webrtc.net\include\leptonica\pix.h(243): warning C4305: 'initializing': truncation from 'double' to 'l_float32' 2>src\TJpeg.cpp(23): warning C4244: '=': conversion from 'l_int32' to 'l_float32', possible loss of data 2>src\TJpeg.cpp(749): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data 2>src\TJpeg.cpp(786): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data 2>src\TJpeg.cpp(954): warning C4305: 'argument': truncation from 'double' to 'l_float32' 2> Generating Code... 2>LINK : fatal error LNK1104: cannot open file 'liblept168.lib' 3>------ Rebuild All started: Project: WebRtc.NET.Demo, Configuration: Debug x64 ------ 3>CSC : error CS0006: Metadata file 'C:\Projects\WebRtc.NET\WebRtc.NET\Debug_x64\WebRtc.NET.dll' could not be found ========== Rebuild All: 1 succeeded, 2 failed, 0 skipped ==========

aniongithub avatar Jun 28 '17 23:06 aniongithub

All 7z files need to be unzipped in $(SolutionDir)\WebRtc.NET\WebRtc.NET

I'll submit a pull request that adds a pre-build step to unzip these files if they aren't unzipped yet.

aniongithub avatar Jun 29 '17 17:06 aniongithub

..consider using staging, master code is obsolete

radioman avatar Jun 29 '17 18:06 radioman

Staging also needs me to do a ton of things

  • Disable precompiled headers
  • Missing webrtc-all.lib for Debug x64 and all configurations except Release | x64 (can't build Debug x64)
  • Add openssl include dir "include\third_party\boringssl\src\

aniongithub avatar Jun 29 '17 18:06 aniongithub

Hi , As suggested above i am using staging code base. I am not able to compile the code and getting


Severity Code Description Project File Line Suppression State Error LNK1104 cannot open file 'liblept168.lib'


error in the WebRtcNative project.

I have unzipped 7z files in the WebRtcNative Project. what can i do to resolve this error ?

Thanks

Peyush-Pushkar avatar Aug 24 '17 13:08 Peyush-Pushkar

In addition to the comment from @aniongithub:

In current staging I needed to

  • Unzip all the 7z-archives in WebRtcNative directory
  • Disable precompiled headers for WebRtcNative project
  • Switch over to Release x64

Just wanted to give a more recent answer on the current status

monsdar avatar Feb 28 '18 08:02 monsdar