zf8848 / libjingle

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

problem with pango library when compiling libjingle 0.5.8 #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm new user, so please forgive me any mistakes.

I tried to compile libjigle with GTK+2-2.18.9;

When using pango 1.22:
[...]
scons: Building targets ...
scons: `all_libraries' is up to date.
________Linking build/dbg/obj/login
________Linking build/dbg/obj/call
build/dbg/lib/libvideorenderer.a(gtkvideorenderer.o): In function 
`GtkVideoRenderer':
/root/libjingle-0.5.8/talk/session/phone/gtkvideorenderer.cc:41: undefined 
reference to `g_thread_init'
collect2: ld returned 1 exit status
scons: *** [build/dbg/obj/call] Error 1
scons: building terminated because of 

When using pango 1.28:
scons: Building targets ...
________Compiling build/dbg/obj/session/phone/gtkvideorenderer.o
________Creating library build/dbg/obj/libvideorenderer.a
________Indexing build/dbg/obj/libvideorenderer.a
Install file: "build/dbg/obj/libvideorenderer.a" as 
"build/dbg/lib/libvideorenderer.a"
________Linking build/dbg/obj/login
/usr/lib/libpangocairo-1.0.so.0: undefined reference to `g_malloc_n'
/usr/lib/libpango-1.0.so.0: undefined reference to `g_realloc_n'
/usr/lib/libpango-1.0.so.0: undefined reference to `g_malloc0_n'
collect2: ld returned 1 exit status
scons: *** [build/dbg/obj/login] Error 1
scons: building terminated because of errors.

I had two other versions of pango, but i always had one of above problems;

I'm working on Slackware Linux 13.0 32bit;

Thanks,
David

Original issue reported on code.google.com by dawid.ja...@gmail.com on 13 Jul 2011 at 1:32

GoogleCodeExporter commented 9 years ago
For GTK, I installed libgtk2.0-dev. Try it.

Original comment by diego.cd...@gmail.com on 14 Jul 2011 at 11:38

GoogleCodeExporter commented 9 years ago
g_thread_init before gthread-2.0,you mush add gthread-2.0 in pkg-config  to 
build it.
modify libjingle.scons 
talk.Library(env, name = "videorenderer",
             lin_srcs = [
               "session/phone/gtkvideorenderer.cc",
             ],
             lin_packages = [
               "gtk+-2.0",
               "gthread-2.0", #-->add
             ],
)

Original comment by lendylongli@gmail.com on 18 Nov 2012 at 12:31

GoogleCodeExporter commented 9 years ago

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