Tuesday, October 02, 2012

How to compile ICS code in Ubuntu 12.04 64 bit OS?
In  Ubuntu 12.04 64 bit OS, while compiling android ICS code[thru make], it will give FORTIFY_SOURCE error as below:
 + FORTIFY_SOURCE error ... :0:0: warning: "_FORTIFY_SOURCE" redefined 
 Problem for this issue:
 ICS is trying to compile with gcc-4.6. ICS code is compilable in gcc-4.4 only. 
While giving make{compiling android code}, we can mention the make file to use gcc-4.4 by below commands:
 make CC=gcc-4.4 CXX=g++-4.4 
  export CC=gcc-4.4 CXX=g++-4.4
  make #This will use exported CC & CXX flag's value gcc/g++-4.4 version 

No comments: