Hi,

Thanks for your response!

I've executed the following command:

cmake ../brlcad -DCMAKE_INSTALL_PREFIX=/Users/kunigami/dev/brlcad-bin/
-DBRLCAD-ENABLE_OPTIMIZED=ON -DBRLCAD-ENABLE_ALL_LOCAL_LIBS=ON

The first output I got was:

-- Configuring done
CMake Error: CMake can not determine linker language for target:fbthreadtest
CMake Error: Cannot determine link language for target "fbthreadtest".
CMake Error: CMake can not determine linker language for target:pldebug
CMake Error: Cannot determine link language for target "pldebug".

I'm not sure why cmake was not able to determine the language, but this can
be solved explicitly telling it with

SET_TARGET_PROPERTIES(fbthreadtest PROPERTIES LINKER_LANGUAGE C)

SET_TARGET_PROPERTIES(pldebug PROPERTIES LINKER_LANGUAGE C)

After that, the build went fine. But still, mged seg fault's. To make sure
I'm using the right versions of Tcl and Tk I did:

$ otool -L ./mged | grep tk

And got:

/Users/kunigami/dev/brlcad-bin/lib/libitk.3.dylib (compatibility version
3.0.0, current version 3.4.0)
/Users/kunigami/dev/brlcad-bin/lib/libtk.8.5.dylib (compatibility version
8.5.0, current version 8.5.9)

$ otool -L ./mged | grep tcl

And got:

/Users/kunigami/dev/brlcad-bin/lib/libtclcad.19.dylib (compatibility version
19.0.0, current version 19.0.1)
/Users/kunigami/dev/brlcad-bin/lib/libitcl.3.dylib (compatibility version
3.0.0, current version 3.4.0)
/Users/kunigami/dev/brlcad-bin/lib/libtcl.8.5.dylib (compatibility version
8.5.0, current version 8.5.9)

It seems they are using the local libs of both Tk and Tcl.

Here's the output of the cmake command: http://pastebin.com/aKjHaN06

The only strange thing is that neither Cocoa nor Carbon were found. I have
no idea on how to tell cmake where to find such libraries. (I'm not sure if
these missing dependencies are the cause of the problem, though).

Any ideas?

Thanks,

On Mon, May 23, 2011 at 5:29 PM, Christopher Sean Morrison
<[email protected]>wrote:

>
> 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
>
>
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to