[vtk-developers] libvtkproj4 problems with gcc on Mac

David Gobbi david.gobbi at gmail.com
Fri Feb 19 13:44:42 EST 2016


Hi Bill,

You can check to see if PROJ_USE_PTHREADS:BOOL=ON in your cache.
I did a quick look through lib_proj.cmake and FindThreads.cmake and didn't
see anything suspicious. No machines that I access have llvm-gcc anymore.

 - David


On Fri, Feb 19, 2016 at 10:08 AM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> Folks,
>
> I tried to build VTK on my Mac today with
> i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc.
> build 5658) (LLVM build 2336.1.00)
>
> My clang build is fine.
>
> I get these link errors:
> Linking C shared library ../../../../lib/libvtkproj4-7.1.dylib
> Undefined symbols for architecture x86_64:
>   "_vtk_pj_acquire_lock", referenced from:
>       _vtk_pj_get_default_ctx in pj_ctx.c.o
>       _vtk_pj_ctx_alloc in pj_ctx.c.o
>       _vtk_pj_gc_findcatalog in pj_gridcatalog.c.o
>       _vtk_pj_gridinfo_load in pj_gridinfo.c.o
>       _vtk_pj_gridlist_from_nadgrids in pj_gridlist.c.o
>       ...
>   "_vtk_pj_release_lock", referenced from:
>       _vtk_pj_get_default_ctx in pj_ctx.c.o
>       _vtk_pj_ctx_alloc in pj_ctx.c.o
>       _vtk_pj_gc_findcatalog in pj_gridcatalog.c.o
>       _vtk_pj_gridinfo_load in pj_gridinfo.c.o
>       _vtk_pj_gridlist_from_nadgrids in pj_gridlist.c.o
>       _vtk_pj_insert_initcache in pj_initcache.c.o
>       _vtk_pj_clear_initcache in pj_initcache.c.o
>       ...
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libvtkproj4-7.1.1.dylib] Error 1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160219/6f204464/attachment-0001.html>


More information about the vtk-developers mailing list