On May 18, 2011, at 1:07 PM, Guilherme Kunigami wrote:

> Hi,
> 
> I'm trying to build BRL-CAD under Mac OS 10.6. 
> 
> I've run:
> 
> ./autogen.sh
> ./configure --enable-all --prefix=<my local dir>
> make
> 
> And then I get this error: http://pastebin.com/FwPQ5tJq
> 
> This seems to be an issue with zlib. I tried compiling the file adler32.c 
> directly:
> 
> gcc -c adler32.c 
> 
> And got the same error. I downloaded the source code of zlib-1.2.5 (which I 
> think is the same version of the one in src/other/libz) and executing the 
> previous command works.

The error snippet looks like zlib's header has not been generated.  This should 
have happened during recursive configure, so I can only imagine that it has 
something to do with our build system migration to cmake. Try the cmake build.

> I noticed there are two files on original the zlib source (after running 
> their ./configure), that are missing on src/other/libz: zlib.pc and zconf.h. 
> Since there are the corresponding zlib.pc.in and zconf.h.in, I thought that 
> this could be some problem with the ./configure command.

Definitely.  If you have zconf.h.in but no zconf.h after you've run configure, 
then something has gone wrong.  Again, see if you have the same issue with the 
cmake build since it's probably just related to the two builds living 
simultaneously.

> PS. I also tried building running ./configure without --enable-all. It 
> worked, but mged seg-fault'ed before any windows were loaded.

On Mac 10.6, you have to at least --enable-tcl-build and --enable-tk-build so 
it doesn't try to pick up the system Tcl/Tk.

Cheers!
Sean

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to