--
---
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/3405b179-40a3-45be-a9f4-5e71822dfa54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[jay: webrtc]$echo $GYP_DEFINES
target_arch=ia32 clang=0 host_clang=0 werror=
However, while linking a simple Hello World program with rtc::InitializeSSL(NULL) and rtc::CloseSSL() APIs i get
these unresolved symbols -
[jay: Test]$make
g++ -DWEBRTC_POSIX -I. -I/home/jayasimh/webrtc/src -I/home/jayasimh/webrtc/src/webrtc -std=c++11 libwebrtc.a -o simpleTest test.cpp
/tmp/cck0ohlE.o: In function `main':
test.cpp:(.text+0x5b): undefined reference to `rtc::InitializeSSL(bool (*)(void*))'
test.cpp:(.text+0xaa): undefined reference to `rtc::CleanupSSL()'
/tmp/cck0ohlE.o: In function `bool rtc::FromString<int>(std::string const&, int*)':
test.cpp:(.text+0x114): undefined reference to `rtc::FatalMessage::FatalMessage(char const*, int)'
test.cpp:(.text+0x195): undefined reference to `rtc::FatalMessage::~FatalMessage()'
test.cpp:(.text+0x217): undefined reference to `rtc::FatalMessage::~FatalMessage()'
/tmp/cck0ohlE.o: In function `bool rtc::ToString<double>(double const&, std::string*)':
test.cpp:(.text+0x283): undefined reference to `rtc::FatalMessage::FatalMessage(char const*, int)'
test.cpp:(.text+0x304): undefined reference to `rtc::FatalMessage::~FatalMessage()'
test.cpp:(.text+0x3cb): undefined reference to `rtc::FatalMessage::~FatalMessage()'
/tmp/cck0ohlE.o: In function `bool rtc::ToString<int>(int const&, std::string*)':
test.cpp:(.text+0x446): undefined reference to `rtc::FatalMessage::FatalMessage(char const*, int)'
test.cpp:(.text+0x4c7): undefined reference to `rtc::FatalMessage::~FatalMessage()'
test.cpp:(.text+0x582): undefined reference to `rtc::FatalMessage::~FatalMessage()'
/tmp/cck0ohlE.o: In function `bool rtc::ToString<bool>(bool const&, std::string*)':
test.cpp:(.text+0x5fd): undefined reference to `rtc::FatalMessage::FatalMessage(char const*, int)'
test.cpp:(.text+0x67e): undefined reference to `rtc::FatalMessage::~FatalMessage()'
test.cpp:(.text+0x73d): undefined reference to `rtc::FatalMessage::~FatalMessage()'
collect2: error: ld returned 1 exit status
make: *** [simpleTest] Error 1
[jay: Test]$
[jay: Test]$cat test.cpp
#include <iostream>
#include <unistd.h>
#include "talk/app/webrtc/peerconnectioninterface.h"
#include "talk/app/webrtc/jsep.h"
#include "talk/app/webrtc/datachannelinterface.h"
#include "talk/app/webrtc/test/fakeconstraints.h"
#include "talk/app/webrtc/test/mockpeerconnectionobservers.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/ssladapter.h"
#include "webrtc/base/sslstreamadapter.h"
#include "webrtc/base/thread.h"
#include "webrtc/base/common.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/base/ssladapter.h"
using rtc::scoped_ptr;
using rtc::scoped_refptr;
using webrtc::MediaStreamInterface;
using webrtc::CreatePeerConnectionFactory;
using webrtc::DataChannelInterface;
using webrtc::MockDataChannelObserver;
using webrtc::PeerConnectionFactoryInterface;
using webrtc::PeerConnectionInterface;
using webrtc::PeerConnectionObserver;
using webrtc::PortAllocatorFactoryInterface;
using webrtc::VideoSourceInterface;
using webrtc::VideoTrackInterface;
int main()
{
fprintf(stderr,"Hello World\n");
fprintf(stderr,"Initializing SSL\n");
rtc::InitializeSSL(NULL);
fprintf(stderr,"Initialized SSL\n");
fprintf(stderr,"Closing SSL\n");
rtc::CleanupSSL();
fprintf(stderr,"Closed SSL\n");
return 0;
}
Any ideas how can i tackle this issue?
thanks,
Jayasimha
[jay: Test]$makelibtool --mode=link g++ -DWEBRTC_POSIX -I. -I/gwebrtc/libwebrtc-ia32/include -std=c++11 webrtc/src/out/Debug/obj/webrtc/libwebrtc.a webrtc/src/out/Debug/obj/webrtc/libwebrtc_common.a webrtc/src/out/Debug/obj/webrtc/base/librtc_base.a webrtc/src/out/Debug/obj/webrtc/base/librtc_base_approved.a webrtc/src/out/Debug/obj/chromium/src/third_party/boringssl/libboringssl.a -lpthread -lm -o simpleTest test.cpp
libtool: link: g++ -DWEBRTC_POSIX -I. -I/gwebrtc/libwebrtc-ia32/include -std=c++11 -o simpleTest test.cpp webrtc/src/out/Debug/obj/webrtc/libwebrtc.a webrtc/src/out/Debug/obj/webrtc/libwebrtc_common.a webrtc/src/out/Debug/obj/webrtc/base/librtc_base.a webrtc/src/out/Debug/obj/webrtc/base/librtc_base_approved.a webrtc/src/out/Debug/obj/chromium/src/third_party/boringssl/libboringssl.a -lpthread -lm