erichocean / libjingle

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

[ver. 0.5.2] Symbol(s) not found, when using libjingle under macosx with xcode #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile libjingle
2. Create a new project in xcode
3. add libjingle as framework
4. add libjingle source dir into header search path
5. copy login sample from libjingle source dir
6. build & go

What is the expected output? What do you see instead?
expect: Build successful
actual:  Symbol(s) not found
                *   "typeinfo for talk_base::Thread", referenced from:
                     typeinfo for XmppThreadin xmppthread.o
                *  "typeinfo for buzz::SaslMechanism", referenced from:
                     typeinfo for buzz::SaslCookieMechanismin xmppauth.o
                     typeinfo for buzz::SaslPlainMechanismin xmppauth.o
                *   "typeinfo for talk_base::TaskRunner", referenced from:
                     typeinfo for XmppPumpin xmpppump.o
                *  "typeinfo for talk_base::MessageHandler", referenced from:
                     typeinfo for XmppPumpin xmpppump.o
                     typeinfo for XmppThreadin xmppthread.o

What version of the product are you using? On what operating system?
linbjingle 0.5.2
OS: MacOSX 10.6
IDE:XCode

Please provide any additional information below.

Original issue reported on code.google.com by stellit....@gmail.com on 4 Mar 2011 at 8:11

GoogleCodeExporter commented 9 years ago
having the same issue... those classes really should be compiled in, don't get 
it.

Original comment by steip...@gmail.com on 3 Jul 2011 at 10:31

GoogleCodeExporter commented 9 years ago
After hours of searching, i finally discovered the solution. 

In mac_env.Append add to CCFLAGS '-frtti' to enable RTTI (Run Time Type Info).

Original comment by steip...@gmail.com on 3 Jul 2011 at 1:15

GoogleCodeExporter commented 9 years ago

Original comment by jun...@google.com on 17 Nov 2011 at 12:28

GoogleCodeExporter commented 9 years ago
Thanks for the helpful solution. on OSX Lion I had issues with -frtti CCFLAG,
"-frtti" is valid for C++/ObjC++ but not for C

But by adding a CXXFLAGS section and adding the flag there I was able to get 
libjingle to compile.

Original comment by n...@firespotter.com on 27 Mar 2012 at 11:06