wsygzyr / libjingle

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

how to change the compiler option in libjingle build system? #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I am able to build libjingle on linux and test.

I want to cross compile this for an ARM based linux system.
So, I want to replace the 'gcc' compiler option with the 'arm-linux-gcc' and 
'g++' with 'arm-linux-g++'.
Could you please suggest me how do I do it?
 thanks in advance.

Original issue reported on code.google.com by krishna....@gmail.com on 3 Jun 2011 at 7:49

GoogleCodeExporter commented 9 years ago
Any update on this?
I understand that we need to change the compiler and target setting in the 
main.scons file.
I have added below lines 
linux_common_env.Replace(CC = '/home/krishna/arm-2008q3/bin/arm-linux-gcc')
linux_common_env.Replace(CXX = '/home/xxx/arm-2008q3/bin/arm-linux-g++')

Where do I set the target platform as 'arm' instead of x86??

thanks

Original comment by krishna....@gmail.com on 4 Jun 2011 at 7:19

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

Original comment by juberti@google.com on 9 Sep 2011 at 7:40

GoogleCodeExporter commented 9 years ago
Yes. you can setup the toolchain in main.scons
Something like:

SYSROOT=/build/arm-generic/
CPPPATH=/build/arm-generic/usr/include/
LIBPATH=/build/arm-generic/usr/lib/
PKG_CONFIG_PATH=/build/arm-generic/usr/lib/pkgconfig/
AR=armv7a-cros-linux-gnueabi-ar
AS=armv7a-cros-linux-gnueabi-as
LD=armv7a-cros-linux-gnueabi-ld
NM=armv7a-cros-linux-gnueabi-nm
RANLIB=armv7a-cros-linux-gnueabi-ranlib
CC=armv7a-cros-linux-gnueabi-gcc
CXX=armv7a-cros-linux-gnueabi-g++
CPPDEFINES = 'NACL_BUILD_ARCH=arm'
CCFLAGS = '-fPIC'

Original comment by zhur...@google.com on 17 Nov 2011 at 1:09

GoogleCodeExporter commented 9 years ago
Hi all.
I trying to build cross platform to arm. I edit following Zhur but i have error.

/home/minhle/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/g
cc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: 
cannot find -lcrypto

I using sourcery codebench to compile cross to arm. 
Anyone have solution for fix this.
Thank you.

Original comment by leminh...@gmail.com on 5 Apr 2012 at 2:27

GoogleCodeExporter commented 9 years ago
Hi leminh...
I get the same error;

Did you fix it?
Anyone have the solution?
Thanks for help。

Original comment by tstedzh...@gmail.com on 31 May 2012 at 1:42

GoogleCodeExporter commented 9 years ago

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