<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Android build error with -llzo2 on 64 bits ubuntu in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234377#M18293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear shaojun&lt;/P&gt;&lt;P&gt;run sudo apt-get install liblzo2-dev:i386&amp;nbsp;&amp;nbsp;&amp;nbsp; ======&amp;gt;it will be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIMON&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Mar 2013 09:31:32 GMT</pubDate>
    <dc:creator>simon_cai</dc:creator>
    <dc:date>2013-03-03T09:31:32Z</dc:date>
    <item>
      <title>Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234376#M18292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When build ICS on 64 bits ubuntu 11.10, if there is -llzo2 in some Android.mk, even you have already run “sudo apt-get install liblzo2-dev”, you may still meet some build error.&lt;/P&gt;&lt;P&gt;For example, in attached mtd-utils package, there is -llzo2 in mtd-utils/mkfs.ubifs/Android.mk, so you may meet this kind of error message:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../liblzo2.so when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../liblzo2.a when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/liblzo2.so when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/liblzo2.a when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: cannot find -llzo2&lt;/P&gt;&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix the error, you should install 32 bits lzo2 and luuid to your 64 bits ubuntu. Below is the example of lzo2.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Down 32 bits lzo2, then unpack it to a folder. You can get the lzo2 deb package in the attachmemt.&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo mkdir /usr/lib/liblzo2_i386&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo dpkg -x liblzo2-dev_2.05-1_i386.deb /usr/lib/liblzo2_i386/&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo dpkg -x liblzo2-2_2.05-1_i386.deb /usr/lib/liblzo2_i386/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Change the link of liblzo2 from default 64 bit lib to 32 bit lib.&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ cd /usr/lib/&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo rm liblzo2.a&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo rm liblzo2.so&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo rm liblzo2.so.2&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo ln -s liblzo2_i386/usr/lib/liblzo2.a liblzo2.a&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo ln -s liblzo2_i386/usr/lib/liblzo2.so.2.0.0 liblzo2.so&lt;/P&gt;&lt;P style="text-indent: 9pt;"&gt;$ sudo ln -s liblzo2_i386/usr/lib/liblzo2.so.2.0.0 liblzo2.so.2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336890"&gt;liblzo2-2_2.05-1_i386.deb.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336890"&gt;liblzo2-dev_2.05-1_i386.deb.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336890"&gt;mtd-utils.tgz&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336890"&gt;uuid-dev_2.20.1-1ubuntu3_i386.deb.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 03:20:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234376#M18292</guid>
      <dc:creator>shaojun_wang</dc:creator>
      <dc:date>2013-01-23T03:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234377#M18293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear shaojun&lt;/P&gt;&lt;P&gt;run sudo apt-get install liblzo2-dev:i386&amp;nbsp;&amp;nbsp;&amp;nbsp; ======&amp;gt;it will be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIMON&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 09:31:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234377#M18293</guid>
      <dc:creator>simon_cai</dc:creator>
      <dc:date>2013-03-03T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234378#M18294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;both solutions break capability to compile 64 bit applications on Ubuntu 12.04 64bits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you already installed liblzo2 and uuid running something like&lt;/P&gt;&lt;P&gt;$ sudo apt-get install liblzo2-dev uuid-dev&lt;/P&gt;&lt;P&gt;you can force 64bits compilation (using -m64 flag) applying the attached patch within android build system in the external/mtd-utils folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Two Cents&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jun 2013 20:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234378#M18294</guid>
      <dc:creator>app025</dc:creator>
      <dc:date>2013-06-02T20:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234379#M18295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the same error and decided to run a Ubuntu 10.04 virtually. I decided to do this due to the following text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;located on this page: &lt;A href="http://source.android.com/source/initializing.html" title="http://source.android.com/source/initializing.html"&gt;Initializing a Build Environment | Android Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, on 10.4 besides the&amp;nbsp; packages mentioned on the later page, one needs to install these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 65&amp;nbsp; sudo apt-get install sun-java6-jdk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 99&amp;nbsp; sudo apt-get install uuid uuid-dev&lt;/P&gt;&lt;P&gt;&amp;nbsp; 103&amp;nbsp; sudo apt-get install zlib1g-dev liblz-dev&lt;/P&gt;&lt;P&gt;&amp;nbsp; 106&amp;nbsp; sudo apt-get install liblzo2-2 liblzo2-dev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I had some trouble finding the first one (sun-java6-jdk) and the trick was to add another repo:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sudo add-apt-repository ppa:ferramroberto/java &amp;amp;&amp;amp; sudo apt-get update &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Leo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 20:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234379#M18295</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-06-03T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234380#M18296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pierluigi Passaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem and I applied the patch that you attached. Thank you very much for the patch file. Now the problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am getting some another problem. Could you please help me to solve this issue. I am new to these stuff.&lt;/P&gt;&lt;P&gt;I am using Ubuntu 10.10 64-bit to compile Android Jelly Bean. The error is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;install -D kernel_imx/arch/arm/boot/uImage&amp;nbsp; out/target/product/sabresd_6dq/uImage&lt;/P&gt;
&lt;P&gt;install -D kernel_imx/arch/arm/boot/zImage&amp;nbsp; out/target/product/sabresd_6dq/kernel&lt;/P&gt;
&lt;P&gt;Export includes file: external/mtd-utils/mkfs.ubifs/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/export_includes&lt;/P&gt;
&lt;P&gt;host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/crc16.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/crc32.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/devtable.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/lpt.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/compr.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/hashtable/hashtable.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: i386 architecture of input file `out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/hashtable/hashtable_itr.o' is incompatible with i386:x86-64 output&lt;/P&gt;
&lt;P&gt;out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs.o: In function `calc_min_log_lebs':&lt;/P&gt;
&lt;P&gt;/home/duresh/Documents/A03-Android/AndroidImagebuld/myandroid/external/mtd-utils/mkfs.ubifs/mkfs.ubifs.c:314: undefined reference to `__udivdi3'&lt;/P&gt;
&lt;P&gt;/home/duresh/Documents/A03-Android/AndroidImagebuld/myandroid/external/mtd-utils/mkfs.ubifs/mkfs.ubifs.c:320: undefined reference to `__udivdi3'&lt;/P&gt;
&lt;P&gt;out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs.o: In function `lookup_inum_mapping':&lt;/P&gt;
&lt;P&gt;/home/duresh/Documents/A03-Android/AndroidImagebuld/myandroid/external/mtd-utils/mkfs.ubifs/mkfs.ubifs.c:1161: undefined reference to `__umoddi3'&lt;/P&gt;
&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The complete output is attached here and also Android.mk file which applied the patch also attached.&lt;/P&gt;&lt;P&gt;Please kindly help me with this matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Duresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 04:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234380#M18296</guid>
      <dc:creator>dureshasanka</dc:creator>
      <dc:date>2013-07-24T04:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234381#M18297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I've got a work around....&lt;/P&gt;&lt;P&gt;When it fails:&lt;/P&gt;&lt;P&gt;&amp;gt; rm -rf out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/&lt;/P&gt;&lt;P&gt;&amp;gt; make BUILD_HOST_64bit=1&lt;/P&gt;&lt;P&gt;then it build the stupid mkfs.ubifs stuff in 64bit&lt;/P&gt;&lt;P&gt;then it fails again but further and then you can re-run normal "make" and it will build.&lt;/P&gt;&lt;P&gt;I know it's painfull solution but it breaks nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 12:22:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234381#M18297</guid>
      <dc:creator>anthonyharivel</dc:creator>
      <dc:date>2013-07-30T12:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234382#M18298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my virtual is ubuntu 12.04 x86_64, when I build the android 4.2.2 for sabresd_6dq I meet the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;make: *** No rule to make target `out/target/product/sabresd_6dq/obj/STATIC_LIBRARIES/libubi_intermediates/export_includes', needed by `out/target/product/sabresd_6dq/obj/EXECUTABLES/recovery_intermediates/import_includes'.&amp;nbsp; Stop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 06:31:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234382#M18298</guid>
      <dc:creator>jian</dc:creator>
      <dc:date>2013-08-08T06:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234383#M18299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify /external/mtd-utils/mkfs.ubifs/Android.mk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add "-lc" and "-lgcc" as below to fix undefined reference error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_LDLIBS:= -lz -llzo2 -lm -lc -lgcc -luuid -m64&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tested with android_jb4.2.2_1.1.0-ga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 04:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234383#M18299</guid>
      <dc:creator>rickchu</dc:creator>
      <dc:date>2013-08-30T04:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234384#M18300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,@@@@ ! !&lt;/P&gt;&lt;P&gt;Here is my workaround, hope it will help you.&lt;/P&gt;&lt;P&gt;My enviroment is Ubuntu 12.04_64bit.I tried the solution of &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ShaojunWang"&gt;ShaojunWang&lt;/A&gt; and made some changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; I installed liblzo2-2_2.05-1_i386.deb ,liblzo2-dev_2.05-1_i386.deb and uuid-dev_2.20.1-1ubuntu3_i386.deb which are provided by &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ShaojunWang"&gt;ShaojunWang&lt;/A&gt; .&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;install liblzo2&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo mkdir /usr/lib/liblzo2_i386&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo dpkg -x liblzo2-dev_2.05-1_i386.deb /usr/lib/liblzo2_i386/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo dpkg -x liblzo2-2_2.05-1_i386.deb /usr/lib/liblzo2_i386/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ cd /usr/lib/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo rm liblzo2.a&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo rm liblzo2.so&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo rm liblzo2.so.2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo ln -s liblzo2_i386/usr/lib/liblzo2.a liblzo2.a&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo ln -s liblzo2_i386/usr/lib/liblzo2.so.2.0.0 liblzo2.so&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo ln -s liblzo2_i386/usr/lib/liblzo2.so.2.0.0 liblzo2.so.2&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;install uuid-dev&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;$ sudo mkdir /usr/lib&lt;/SPAN&gt;/uuid-dev&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;$ sudo dpkg -x&lt;/SPAN&gt; uuid-dev_2.20.1-1ubuntu3_i386.deb&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;/usr/lib/uuid-dev/&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;$ cd /usr/lib/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;$ sudo ln -s&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;uuid-dev/usr/lib/i386-linux-gnu/libuuid.a&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;libuuid.a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;$ sudo ln -s&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;uuid-dev/usr/lib/i386-linux-gnu/libuuid&lt;/SPAN&gt;.so&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;libuuid&lt;/SPAN&gt;.so &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;2. I modified the&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;external/mtd-utils/mkfs.ubifs/Android.mk.This fixed the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-llzo2 not found; uuid/uuid.h not found;&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;$&lt;/SPAN&gt; vi external/mtd-utils/mkfs.ubifs/Android.mk&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I added&amp;nbsp; the following&amp;nbsp; to&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-indent: 12px;"&gt;external/mtd-utils/mkfs.ubifs/Android.mk.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-indent: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL_LDFLAGS +=-L /usr/lib/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL_C_INCLUDES +=/usr/lib/uuid-dev/usr/include/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCAL_C_INCLUDES +=/usr/lib/liblzo2_i386/usr/include&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:05:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234384#M18300</guid>
      <dc:creator>junfrost</dc:creator>
      <dc:date>2013-10-25T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234385#M18301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am new to Android.&lt;/P&gt;&lt;P&gt;I am trying to compile Android source in ubuntu 12.04 and i have done the changes as said in the previous post but its giving following errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking API: checkapi-current&lt;BR /&gt;host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when searching for -lz&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.a when searching for -lz&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++&lt;BR /&gt;/usr/bin/ld: cannot find -lstdc++&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.so when searching for -lm&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.a when searching for -lm&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.so when searching for -lc&lt;BR /&gt;/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.a when searching for -lc&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 08:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234385#M18301</guid>
      <dc:creator>shinuv</dc:creator>
      <dc:date>2014-09-24T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234386#M18302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Shinu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which android version you are trying to build?&lt;/P&gt;&lt;P&gt;What processor you are using 32 bit or 64 bit and same for ubuntu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234386#M18302</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2014-09-24T09:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234387#M18303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply.&lt;/P&gt;&lt;P&gt;android version is 4.2.2&amp;nbsp; , processor&amp;nbsp; and Ubuntu is 64 bit .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234387#M18303</guid>
      <dc:creator>shinuv</dc:creator>
      <dc:date>2014-09-24T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234388#M18304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can check your Android.mk has following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes &lt;STRONG&gt;-m64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wmissing-prototypes -Winline&lt;/P&gt;&lt;P&gt;LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu&lt;/P&gt;&lt;P&gt;LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid &lt;STRONG&gt;-m64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:01:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234388#M18304</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2014-09-24T10:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234389#M18305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'/home/svg6kor/MRST/myandroid/external/mtd-utils/mkfs.ubifs/Android.mk' has the following &lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;# Copyright 2009 The Android Open Source Project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_PATH:= $(call my-dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include $(CLEAR_VARS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_SRC_FILES := \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkfs.ubifs.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crc16.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crc32.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; devtable.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lpt.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compr.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hashtable/hashtable.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hashtable/hashtable_itr.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_CC := /usr/bin/gcc&lt;/P&gt;&lt;P&gt;LOCAL_CXX := /usr/bin/g++&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS = -O2 -Wall&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wmissing-prototypes -Winline&lt;/P&gt;&lt;P&gt;LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu&lt;/P&gt;&lt;P&gt;LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += $(LOCAL_PATH)/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += /usr/include/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += $(LOCAL_PATH)/hashtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_MODULE_TAGS := optional&lt;/P&gt;&lt;P&gt;LOCAL_MODULE := mkfs.ubifs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include $(BUILD_HOST_EXECUTABLE)&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;In '/home/svg6kor/MRST/myandroid/external/mtd-utils/Android.mk'&lt;/P&gt;&lt;P&gt;added&lt;/P&gt;&lt;P&gt;LOCAL_LDFLAGS +=-L /usr/lib/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES +=/usr/lib/uuid-dev/usr/include/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES +=/usr/lib/liblzo2_i386/usr/include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234389#M18305</guid>
      <dc:creator>shinuv</dc:creator>
      <dc:date>2014-09-24T10:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234390#M18306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add &lt;STRONG&gt;-m64&amp;nbsp; &lt;/STRONG&gt;in Android.mk,&lt;/P&gt;&lt;P&gt;Check my previous reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234390#M18306</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2014-09-24T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234391#M18307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added -m64 then i am getting following errors&lt;/P&gt;&lt;P&gt;Export includes file: external/mtd-utils/mkfs.ubifs/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/export_includes&lt;/P&gt;&lt;P&gt;host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/liblzo2.so when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/liblzo2.a when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/../lib/liblzo2.so when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/../lib/liblzo2.a when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../liblzo2.so when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../liblzo2.a when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/liblzo2.so when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/liblzo2.a when searching for -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: cannot find -llzo2&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libuuid.so when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libuuid.a when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/../lib/libuuid.so when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/../lib/libuuid.a when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libuuid.so when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libuuid.a when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/libuuid.so when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/libuuid.a when searching for -luuid&lt;/P&gt;&lt;P&gt;/usr/bin/ld: cannot find -luuid&lt;/P&gt;&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;so i added LOCAL_LDFLAGS += -L/usr/lib/i386-linux-gnu instead of LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu and -m32&lt;/P&gt;&lt;P&gt;then the above error are gone but getting error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export includes file: external/mtd-utils/mkfs.ubifs/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/export_includes&lt;/P&gt;&lt;P&gt;host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++&lt;/P&gt;&lt;P&gt;/usr/bin/ld: cannot find -lstdc++&lt;/P&gt;&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234391#M18307</guid>
      <dc:creator>shinuv</dc:creator>
      <dc:date>2014-09-24T11:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234392#M18308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Copyright 2009 The Android Open Source Project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_PATH:= $(call my-dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include $(CLEAR_VARS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_SRC_FILES := \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkfs.ubifs.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crc16.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crc32.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; devtable.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lpt.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compr.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hashtable/hashtable.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hashtable/hashtable_itr.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#LOCAL_CC := /usr/bin/gcc&lt;/P&gt;&lt;P&gt;#LOCAL_CXX := /usr/bin/g++&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS = -O2 -Wall&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -m64&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wmissing-prototypes -Winline&lt;/P&gt;&lt;P&gt;LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu&lt;/P&gt;&lt;P&gt;LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid -m64&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += $(LOCAL_PATH)/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += /usr/include/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += $(LOCAL_PATH)/hashtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_MODULE_TAGS := optional&lt;/P&gt;&lt;P&gt;LOCAL_MODULE := mkfs.ubifs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include $(BUILD_HOST_EXECUTABLE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:46:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234392#M18308</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2014-09-24T11:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234393#M18309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the same and its giving error. so i changed as&lt;/P&gt;&lt;P&gt;# Copyright 2009 The Android Open Source Project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_PATH:= $(call my-dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include $(CLEAR_VARS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_SRC_FILES := \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkfs.ubifs.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crc16.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crc32.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; devtable.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lpt.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compr.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hashtable/hashtable.c \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hashtable/hashtable_itr.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_CC := /usr/bin/gcc&lt;/P&gt;&lt;P&gt;LOCAL_CXX := /usr/bin/g++&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS = -O2 -Wall&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -m32&lt;/P&gt;&lt;P&gt;LOCAL_CFLAGS+= -Wmissing-prototypes -Winline&lt;/P&gt;&lt;P&gt;LOCAL_LDFLAGS += -L/usr/lib/i386-linux-gnu&lt;/P&gt;&lt;P&gt;LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid -m32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += $(LOCAL_PATH)/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += /usr/include/&lt;/P&gt;&lt;P&gt;LOCAL_C_INCLUDES += $(LOCAL_PATH)/hashtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAL_MODULE_TAGS := optional&lt;/P&gt;&lt;P&gt;LOCAL_MODULE := mkfs.ubifs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include $(BUILD_HOST_EXECUTABLE)&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now following error as getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/usr/bin/ld: cannot find -lstdc++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234393#M18309</guid>
      <dc:creator>shinuv</dc:creator>
      <dc:date>2014-09-24T11:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234394#M18310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gcc-multilib_4.6.3-1ubuntu5 is already installed. But i am not able to install g++-multilib_4.6.3-1ubuntu5 giving error as 'E: Internal Error, No file name for libuuid1'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:12:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234394#M18310</guid>
      <dc:creator>shinuv</dc:creator>
      <dc:date>2014-09-24T12:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Android build error with -llzo2 and -luuid on 64 bits ubuntu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234395#M18311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Shinu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try to delete whole output directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 03:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-build-error-with-llzo2-and-luuid-on-64-bits-ubuntu/m-p/234395#M18311</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2014-09-25T03:50:06Z</dc:date>
    </item>
  </channel>
</rss>

