pombreda / libjingle

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

Compile libjingle v0.5 for MacOS with SCONS and swtoolkit #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to compile the iLibJingle project by using scons has given me a 
strange error I can't seem to understand. It seems to point to the fact that 
OpenSSL isn't being linked properly... is there a search path I need to add to 
the scons file for it to see the OpenSSL frameworks?

Here is the output of the build:

TheGateKeeper:talk 9r0ximi7y$ hammer.sh
scons: Reading SConscript files ...
/Users/9r0ximi7y/Desktop/VideoChat_Folder/VideoChat/VideoChat_libjingle_v0.6.2/s
wtoolkit/site_scons/site_tools/component_targets_msvs.py:34: 
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

scons: warning: The build_dir keyword has been deprecated; use the variant_dir 
keyword instead.
File 
"/Users/9r0ximi7y/Desktop/VideoChat_Folder/VideoChat/VideoChat_libjingle_v0.6.2/
swtoolkit/site_scons/site_init.py", line 203, in BuildEnvironmentSConscripts
scons: done reading SConscript files.
scons: Building targets ...
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlrole.o
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmltok.o
________Creating library build/dbg/obj/libexpat.a
________Indexing build/dbg/obj/libexpat.a
Install file: "build/dbg/obj/libexpat.a" as "build/dbg/lib/libexpat.a"
________Compiling build/dbg/obj/third_party/srtp/crypto/cipher/aes.o
________Compiling build/dbg/obj/third_party/srtp/crypto/cipher/aes_cbc.o
________Compiling build/dbg/obj/third_party/srtp/crypto/cipher/aes_icm.o
________Compiling build/dbg/obj/third_party/srtp/crypto/cipher/cipher.o
________Compiling build/dbg/obj/third_party/srtp/crypto/cipher/null_cipher.o
________Compiling build/dbg/obj/third_party/srtp/crypto/hash/auth.o
________Compiling build/dbg/obj/third_party/srtp/crypto/hash/hmac.o
________Compiling build/dbg/obj/third_party/srtp/crypto/hash/null_auth.o
________Compiling build/dbg/obj/third_party/srtp/crypto/hash/sha1.o
________Compiling build/dbg/obj/third_party/srtp/crypto/replay/rdb.o
________Compiling build/dbg/obj/third_party/srtp/crypto/replay/rdbx.o
________Compiling build/dbg/obj/third_party/srtp/crypto/replay/ut_sim.o
________Compiling build/dbg/obj/third_party/srtp/crypto/math/datatypes.o
________Compiling build/dbg/obj/third_party/srtp/crypto/math/stat.o
________Compiling build/dbg/obj/third_party/srtp/crypto/kernel/alloc.o
________Compiling build/dbg/obj/third_party/srtp/crypto/kernel/crypto_kernel.o
________Compiling build/dbg/obj/third_party/srtp/crypto/kernel/err.o
________Compiling build/dbg/obj/third_party/srtp/crypto/kernel/key.o
________Compiling build/dbg/obj/third_party/srtp/crypto/rng/ctr_prng.o
________Compiling build/dbg/obj/third_party/srtp/crypto/rng/rand_source.o
________Compiling build/dbg/obj/third_party/srtp/srtp/srtp.o
________Creating library build/dbg/obj/libsrtp.a
________Indexing build/dbg/obj/libsrtp.a
Install file: "build/dbg/obj/libsrtp.a" as "build/dbg/lib/libsrtp.a"
________Compiling build/dbg/obj/base/asyncfile.o
________Compiling build/dbg/obj/base/asynchttprequest.o
________Compiling build/dbg/obj/base/asyncpacketsocket.o
________Compiling build/dbg/obj/base/asyncsocket.o
________Compiling build/dbg/obj/base/asynctcpsocket.o
________Compiling build/dbg/obj/base/asyncudpsocket.o
________Compiling build/dbg/obj/base/autodetectproxy.o
________Compiling build/dbg/obj/base/base64.o
________Compiling build/dbg/obj/base/bytebuffer.o
________Compiling build/dbg/obj/base/checks.o
________Compiling build/dbg/obj/base/common.o
________Compiling build/dbg/obj/base/diskcache.o
________Compiling build/dbg/obj/base/event.o
________Compiling build/dbg/obj/base/fileutils.o
________Compiling build/dbg/obj/base/firewallsocketserver.o
________Compiling build/dbg/obj/base/flags.o
________Compiling build/dbg/obj/base/helpers.o
________Compiling build/dbg/obj/base/host.o
________Compiling build/dbg/obj/base/httpbase.o
________Compiling build/dbg/obj/base/httpclient.o
________Compiling build/dbg/obj/base/httpcommon.o
________Compiling build/dbg/obj/base/httprequest.o
________Compiling build/dbg/obj/base/logging.o
________Compiling build/dbg/obj/base/md5c.o
________Compiling build/dbg/obj/base/messagehandler.o
________Compiling build/dbg/obj/base/messagequeue.o
________Compiling build/dbg/obj/base/nethelpers.o
________Compiling build/dbg/obj/base/network.o
________Compiling build/dbg/obj/base/openssladapter.o
base/openssladapter.cc:7:25: error: openssl/bio.h: No such file or directory
base/openssladapter.cc:8:28: error: openssl/crypto.h: No such file or directory
base/openssladapter.cc:9:25: error: openssl/err.h: No such file or directory
base/openssladapter.cc:10:30: error: openssl/opensslv.h: No such file or 
directory
base/openssladapter.cc:11:26: error: openssl/rand.h: No such file or directory
base/openssladapter.cc:12:25: error: openssl/ssl.h: No such file or directory
base/openssladapter.cc:13:28: error: openssl/x509v3.h: No such file or directory
base/openssladapter.cc:52: error: 'BIO' was not declared in this scope
base/openssladapter.cc:52: error: 'h' was not declared in this scope
base/openssladapter.cc:52: error: expected primary-expression before 'const'
base/openssladapter.cc:52: error: expected primary-expression before 'int'
base/openssladapter.cc:52: error: initializer expression list treated as 
compound expression
base/openssladapter.cc:53: error: 'BIO' was not declared in this scope
base/openssladapter.cc:53: error: 'h' was not declared in this scope
base/openssladapter.cc:53: error: expected primary-expression before 'char'
base/openssladapter.cc:53: error: expected primary-expression before 'int'
base/openssladapter.cc:53: error: initializer expression list treated as 
compound expression
base/openssladapter.cc:54: error: 'BIO' was not declared in this scope
base/openssladapter.cc:54: error: 'h' was not declared in this scope
base/openssladapter.cc:54: error: expected primary-expression before 'const'
base/openssladapter.cc:54: error: initializer expression list treated as 
compound expression
base/openssladapter.cc:55: error: 'BIO' was not declared in this scope
base/openssladapter.cc:55: error: 'h' was not declared in this scope
base/openssladapter.cc:55: error: expected primary-expression before 'int'
base/openssladapter.cc:55: error: expected primary-expression before 'long'
base/openssladapter.cc:55: error: expected primary-expression before 'void'
base/openssladapter.cc:55: error: initializer expression list treated as 
compound expression
base/openssladapter.cc:56: error: 'BIO' was not declared in this scope
base/openssladapter.cc:56: error: 'h' was not declared in this scope
base/openssladapter.cc:57: error: 'BIO' was not declared in this scope
base/openssladapter.cc:57: error: 'data' was not declared in this scope
base/openssladapter.cc:59: error: 'BIO_METHOD' does not name a type
base/openssladapter.cc:72: error: expected constructor, destructor, or type 
conversion before '*' token
base/openssladapter.cc:74: error: expected constructor, destructor, or type 
conversion before '*' token
cc1plus: warnings being treated as errors
base/openssladapter.cc:52: warning: 'socket_write' defined but not used
base/openssladapter.cc:53: warning: 'socket_read' defined but not used
base/openssladapter.cc:54: warning: 'socket_puts' defined but not used
base/openssladapter.cc:55: warning: 'socket_ctrl' defined but not used
base/openssladapter.cc:56: warning: 'socket_new' defined but not used
base/openssladapter.cc:57: warning: 'socket_free' defined but not used
scons: *** [build/dbg/obj/base/openssladapter.o] Error 1
scons: building terminated because of errors.
TheGateKeeper:talk 9r0ximi7y$ 

What is the expected output? What do you see instead?
I am just trying to get the basic sample to run Under MacOSX SnowLeopard

Original issue reported on code.google.com by Rudy.Mayo@gmail.com on 28 Oct 2011 at 11:00

GoogleCodeExporter commented 9 years ago
Did you follow instruction in the README file? 

Original comment by jun...@google.com on 31 Oct 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Assume the issue has been resolved.

Original comment by jun...@google.com on 23 Nov 2011 at 10:46