[Zlib-devel] Zlib - Building Error on Arm

Greg Roelofs newt at pobox.com
Tue Apr 26 11:13:04 EDT 2005


> I took the decision to write you this email because i've got little
> problem to build zlib for ARM9
> Indeed, i made some modifications in the makefile and configure file
> to specify the cross compil tool that i need to build

You need to specify the cross-archiver, too (e.g., AR=mipsel-linux-ar).
You may also need to specify the cross-ranlib tool.  (Oddly enough,
despite their simplicity, one or both tools are platform-dependent,
even though you can often use another platform's versions successfully.)

> [root at stage-pft11 zlib-1.2.2]# configure
> ./configure: line 26: rc: command not found

"rc" are the flags used with ar.  Since (presumably) AR isn't defined,
"$(AR) rc" turns into " rc", which fails.

> libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o
> zutil.o inflate.o infback.o inftrees.o inffast.o
> make: execvp: libz.a: Permission denied
> make: *** [libz.a] Erreur 127

Same thing:  the $(AR) part (or equivalent) vanished, so you have no way
to make the archive.

-- 
Greg Roelofs          newt at pobox.com           http://pobox.com/~newt/
Newtware, PNG Group, AlphaWorld Map, Yahoo! Search, ...




More information about the Zlib-devel mailing list