# vtkloguru link errors building Mac app that doesn't use CMake

**URL:** https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795
**Category:** Development
**Created:** [April 19, 2019, 6:39pm UTC](https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795 "2019-04-19T18:39:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [April 19, 2019, 6:39pm UTC](https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795/1 "2019-04-19T18:39:40Z")

</div>

Hi all,

For the first time in a few months, I’m trying to build my Mac app against vtk master. I’m getting link errors like:

“vtkloguru::vstrprintf(char const\*, \_\_va\_list\_tag\*)”, referenced from:  
vtkLogger::LogScopeRAII::LogScopeRAII(vtkLogger::Verbosity, char const\*, unsigned int, char const\*, …) in libvtkCommonCore.a(vtkLogger.cxx.o)

I’m already linking to libvtkCommonCore, which seems to be where libguru is.

Since my app doesn’t use CMake, do I need some kind of VTK\_MODULE\_INIT() thing?

Thanks,

Sean

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [April 19, 2019, 7:21pm UTC](https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795/2 "2019-04-19T19:21:42Z")

</div>

No, it’s just that `vtkloguru` is an optional dependency of `vtkCommonCore` that is on by default. With a static build, you’ll need to link it as well (or disable it).

---

<div class="post-metadata">

### Author: ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)
#### Post date: [April 19, 2019, 8:13pm UTC](https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795/3 "2019-04-19T20:13:05Z")

</div>

Oh, I’m so dumb. My first thought was there’s a new lib, but I think I was searching for logguru with two g’s. Doh.
