May 9, 2011

build Android 2.3, ld cannot find -lz

Build Android 2.3 (gingerbread), report error: /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status fix it: $ sudo apt-get install lib32z-dev

No comments:

Post a Comment

您的评论将使我blog更有动力~