spoiledsport / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Error while compiling ligjingle on windows 7 #365

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I followed the README. Installed all the 3rd party packages involved. 
Ran the this commands 

hammer.bat --jobs=6 --verbose --mode=all all_programs

What is the expected output? What do you see instead?

I get this error:

cl /Fobuild\dbg\obj\session\phone\videoadapter.obj /c 
session\phone\videoadapter.cc /TP /ZI /Od /MTd /RTC1 /nologo /W3 
/Fdbuild\dbg\obj\session\phone\
videoadapter.obj.pdb /WX /Zc:forScope /EHs-c- /GR- /Gy /wd4996 /w14701 /w14702 
/w14706 /w14709 /w14063 /w14064 /w14057 /w14263 /w14266 /w14296 /w14355
 /DLOGGING=1 /DFEATURE_ENABLE_SSL /DFEATURE_ENABLE_VOICEMAIL /DFEATURE_ENABLE_PSTN /DHAVE_SRTP /D_ATL_CSTRING_EXPLICIT_CONSTRUCTORS /D_CRT_SECURE_NO_W
ARNINGS /D_SCL_SECURE_NO_WARNINGS /D_USE_32BIT_TIME_T /D_UNICODE /DUNICODE 
/D_HAS_EXCEPTIONS=0 /DWIN32 /DWINVER=0x0500 /D_WIN32_WINNT=0x0501 /D_WIN32_
IE=0x0501 /DNTDDI_VERSION=NTDDI_WINXP /D_WINDOWS /D_DEBUG 
/DFEATURE_ENABLE_VOICEMAIL /DEXPAT_RELATIVE_PATH /DGTEST_RELATIVE_PATH 
/DSRTP_RELATIVE_PATH
/DXML_STATIC /D_LIB /Ibuild\dbg\obj /I. /IC:\code /IC:\wtl_71\include 
/IC:\include /Ibuild\dbg\obj\third_party\libudev /Ithird_party\libudev /Ibuild\d
bg\obj\third_party\expat-2.0.1\lib /Ithird_party\expat-2.0.1\lib 
/Ibuild\dbg\obj\third_party\gtest\include /Ithird_party\gtest\include 
/Ibuild\dbg\obj
\third_party\srtp\include /Ithird_party\srtp\include 
/Ibuild\dbg\obj\third_party\srtp\crypto\include 
/Ithird_party\srtp\crypto\include /Ibuild\dbg\obj
\third_party\openssl\include /Ithird_party\openssl\include
videoadapter.cc
c:\code\talk\third_party\srtp\crypto\include\config.h(188) : error C2371: 
'int8_t' : redefinition; different basic types
        c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdint.h(17) : see declaration of 'int8_t'
c:\code\talk\third_party\srtp\crypto\include\config.h(188) : error C2371: 
'int8_t' : redefinition; different basic types
        c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdint.h(17) : see declaration of 'int8_t'
scons: *** [build\dbg\obj\session\phone\srtpfilter.obj] Error 2

scons: building terminated because of errors.

What version of the product are you using? On what operating system?

OS: Windows 7 
python 2.7.3
scons 2.1.0
Visual C++ 2010 Express

Thanks! 

Original issue reported on code.google.com by praveenk...@gmail.com on 27 Jun 2012 at 9:43

GoogleCodeExporter commented 9 years ago
Update: I am able to compile the p2p module but not everything. Also, the error 
is in the config.h file which was replaced by the config.hw file according to 
the readme. 

  * Third, on Windows, copy config.h
    copy talk\third_party\srtp\config.hw talk\third_party\srtp\crypto\include\config.h

Is anyone aware of issue that may result with doing this?

Original comment by praveenk...@gmail.com on 29 Jun 2012 at 6:37

GoogleCodeExporter commented 9 years ago
I just commented like this (even after copying that config.hw to config.h): 

//typedef __int8        int8_t;

Now it showing following issues (let me see if I will fix the issue, I will 
post here ) :

>jingle.lib(channel.obj) : error LNK2019: unresolved external symbol "public: 
bool __thiscall cricket::SsrcMuxFilter::AddStream(struct cricket::StreamParams 
const &)" (?AddStream@SsrcMuxFilter@cricket@@QAE_NABUStreamParams@2@@Z) 
referenced in function "protected: bool __thiscall 
cricket::BaseChannel::AddRecvStream_w(struct cricket::StreamParams const &)" 
(?AddRecvStream_w@BaseChannel@cricket@@IAE_NABUStreamParams@2@@Z)
2>jingle.lib(channel.obj) : error LNK2019: unresolved external symbol "public: 
bool __thiscall cricket::SsrcMuxFilter::RemoveStream(unsigned int)" 
(?RemoveStream@SsrcMuxFilter@cricket@@QAE_NI@Z) referenced in function 
"protected: bool __thiscall cricket::BaseChannel::RemoveRecvStream_w(unsigned 
int)" (?RemoveRecvStream_w@BaseChannel@cricket@@IAE_NI@Z)
2>jingle.lib(channel.obj) : error LNK2019: unresolved external symbol "bool 
__cdecl cricket::RemoveStreamBySsrc(class std::vector<struct 
cricket::StreamParams,class std::allocator<struct cricket::StreamParams> > 
*,unsigned int)" 
(?RemoveStreamBySsrc@cricket@@YA_NPAV?$vector@UStreamParams@cricket@@V?$allocato
r@UStreamParams@cricket@@@std@@@std@@I@Z) referenced in function "protected: 
bool __thiscallcricket::BaseChannel::UpdateLocalStreams_w(class 
std::vector<struct cricket::StreamParams,class std::allocator<struct 
cricket::StreamParams> > const &,enum cricket::ContentAction)" 
(?UpdateLocalStreams_w@BaseChannel@cricket@@IAE_NABV?$vector@UStreamParams@crick
et@@V?$allocator@UStreamParams@cricket@@@std@@@std@@W4ContentAction@2@@Z)
2>jingle.lib(devicemanager.obj) : error LNK2001: unresolved external symbol 
"private: static char const * const 
cricket::FileVideoCapturer::kVideoFileDeviceName" 
(?kVideoFileDeviceName@FileVideoCapturer@cricket@@0PBDB)
2>jingle.lib(p2ptransportchannel.obj) : error LNK2019: unresolved external 
symbol "public: class cricket::PortAllocatorSession * __thiscall 
cricket::PortAllocator::CreateSession(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &)" 
(?CreateSession@PortAllocator@cricket@@QAEPAVPortAllocatorSession@2@ABV?$basic_s
tring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z) referenced in 
function "public: virtual void __thiscall 
cricket::P2PTransportChannel::OnSignalingReady(void)" 
(?OnSignalingReady@P2PTransportChannel@cricket@@UAEXXZ)
2>D:\mylibjingle\Debug\mylibjingle.exe : fatal error LNK1120: 31 unresolved 
externals

Original comment by sumit1...@gmail.com on 20 Jul 2012 at 6:21

GoogleCodeExporter commented 9 years ago
Successfully compiled libjingle 0.6.14 by following the above link : 
http://code.google.com/p/libjingle/issues/detail?id=242 [Used Visual Studio 
2010 Professional].

If encounter any issue :

    Open individual solutions file e.g. mylibjingle.sln,login.vcxproj, jingle.vcxproj and refer the list of source files.

    Compare this list with the libjingle.scons file e.g. To build jingle library it require set of files as mentioned in libjingle.scons files, and to build on windows it require to prepare similar visual studio project file.

    e.g : while building pcp_main.cc , it throw the linker issue related to : InternetQueryOption
        Solution : added on top of pcp_main.h and it worked.

Original comment by sumit1...@gmail.com on 20 Jul 2012 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by juberti@google.com on 31 May 2013 at 8:39