Nickx27 / libjingle

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

Compiling Libjingle on a x86_64 machine #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download libjingle 0.5 on a x86_64 (mine is a Intel core2)
2. follow the README instruction up to 2.1.(2) and everything goes ok
3. run $path_to_swtoolkit/hammer.sh

What is the expected output? What do you see instead?
The expected output would be to build correctly libjungle.
Instead, I get the following:
scons: Building targets ...
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o
In file included from /usr/include/features.h:378,
                 from /usr/include/string.h:26,
                 from third_party/expat-2.0.1/lib/xmlparse.c:6:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
scons: *** [build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
Product: libjungle 0.5
OS: Ubuntu 10.04 (lucyd lynx)

Please provide any additional information below.
/usr/include/gnu/stubs.h correctly exists but as I have a 64bit machine I have 
stubs-64.h. Hence the __WORDSIZE should be equal to 64 in order for stubs.h to 
point to the correct file. How can I achieve this?

thanks

Original issue reported on code.google.com by Rossi.Claudio.82@gmail.com on 21 Oct 2010 at 9:26

GoogleCodeExporter commented 9 years ago
-m32 was hardcoded into main.scons.  I changed that and I'm able to build just 
fine.  Please see the attached patch.

Original comment by rob.whee...@gmail.com on 5 Nov 2010 at 6:15

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 74 has been merged into this issue.

Original comment by pthatc...@google.com on 6 Nov 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Taking this issue and working on the fix.

Original comment by jun...@google.com on 16 Nov 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Basically, you need to add the following line:

 TARGET_ARCH = 'x86',

into the following section of the main.scons file:

win_env = root_env.Clone(
  ....
  TARGET_ARCH = 'x86',
)

Original comment by jun...@google.com on 9 Dec 2010 at 7:15