<div dir="ltr">Tk8.6<div><br></div><div style>Here's the error message when "-framework Carbon" is omitted. Strange for a couple of reasons - I set VTK_USE_COCOA and at least the symbol AEProcessAppleEvent seems to be from the CoreServices framework.</div>
<div style><br></div><div style>
<p class="">Undefined symbols for architecture x86_64:</p>
<p class=""> "_AEProcessAppleEvent", referenced from:</p>
<p class=""> _TkMacOSXDoHLEvent in libtk8.6.a(tkMacOSXHLEvents.o)</p>
<p class=""> "_GetCurrentButtonState", referenced from:</p>
<p class=""> _TkpWarpPointer in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> _TkMacOSXButtonKeyState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> "_GetCurrentEvent", referenced from:</p>
<p class=""> _TkMacOSXModifierState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> _TkpWarpPointer in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> _TkMacOSXButtonKeyState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> "_GetCurrentEventButtonState", referenced from:</p>
<p class=""> _TkpWarpPointer in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> _TkMacOSXButtonKeyState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> "_GetCurrentEventKeyModifiers", referenced from:</p>
<p class=""> _TkMacOSXModifierState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> _TkMacOSXButtonKeyState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> -[TKApplication(TKMenus) orderFrontStandardAboutPanel:] in libtk8.6.a(tkMacOSXMenus.o)</p>
<p class=""> "_GetCurrentKeyModifiers", referenced from:</p>
<p class=""> _TkMacOSXModifierState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> _TkMacOSXButtonKeyState in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> "_GetEventParameter", referenced from:</p>
<p class=""> -[TKApplication(TKMouseEvent) tkProcessMouseEvent:] in libtk8.6.a(tkMacOSXMouseEvent.o)</p>
<p class=""> "_GetMainEventQueue", referenced from:</p>
<p class=""> _Tk_MacOSXSetupTkNotifier in libtk8.6.a(tkMacOSXNotify.o)</p>
<p class=""> _TkMacOSXNotifyExitHandler in libtk8.6.a(tkMacOSXNotify.o)</p>
<p class=""> "_GetThemeMenuItemExtra", referenced from:</p>
<p class=""> _TkpMenuInit in libtk8.6.a(tkMacOSXMenu.o)</p>
<p class=""> "_GetThemeMenuSeparatorHeight", referenced from:</p>
<p class=""> _TkpMenuInit in libtk8.6.a(tkMacOSXMenu.o)</p>
<p class=""> "_GetThemeMetric", referenced from:</p>
<p class=""> _TkpMenuInit in libtk8.6.a(tkMacOSXMenu.o)</p>
<p class=""> _UpdateScrollbarMetrics in libtk8.6.a(tkMacOSXScrlbr.o)</p>
<p class=""> _ButtonElementSize in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _SpinButtonElementSize in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _DisclosureElementSize in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _ButtonElementSizeNoPadding in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _TrackElementSize in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> ...</p>
<p class=""> "_HIThemeApplyBackground", referenced from:</p>
<p class=""> _TkMacOSXSetColorInContext in libtk8.6.a(tkMacOSXColor.o)</p>
<p class=""> "_HIThemeBrushCreateCGColor", referenced from:</p>
<p class=""> _GetThemeColor in libtk8.6.a(tkMacOSXColor.o)</p>
<p class=""> "_HIThemeDrawButton", referenced from:</p>
<p class=""> _TkpDrawSpinboxButtons in libtk8.6.a(tkMacOSXEntry.o)</p>
<p class=""> _ButtonElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _SpinButtonElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _ComboboxElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _DisclosureElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _TreeHeaderElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawFrame", referenced from:</p>
<p class=""> _TkpDrawEntryBorderAndFocus in libtk8.6.a(tkMacOSXEntry.o)</p>
<p class=""> _EntryElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawGroupBox", referenced from:</p>
<p class=""> _GroupElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawGrowBox", referenced from:</p>
<p class=""> _SizegripElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawSeparator", referenced from:</p>
<p class=""> _SeparatorElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawTab", referenced from:</p>
<p class=""> _TabElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawTabPane", referenced from:</p>
<p class=""> _PaneElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeDrawTrack", referenced from:</p>
<p class=""> _TrackElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _PbarElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeGetButtonContentBounds", referenced from:</p>
<p class=""> _ButtonElementSize in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeGetGrowBoxBounds", referenced from:</p>
<p class=""> _SizegripElementSize in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeGetTrackDragRect", referenced from:</p>
<p class=""> _UpdateScrollbarMetrics in libtk8.6.a(tkMacOSXScrlbr.o)</p>
<p class=""> "_HIThemeGetUIFontType", referenced from:</p>
<p class=""> _TkpFontPkgInit in libtk8.6.a(tkMacOSXFont.o)</p>
<p class=""> _TkpGetNativeFont in libtk8.6.a(tkMacOSXFont.o)</p>
<p class=""> "_HIThemeSetFill", referenced from:</p>
<p class=""> _TkMacOSXSetColorInContext in libtk8.6.a(tkMacOSXColor.o)</p>
<p class=""> _FillElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> _ToolbarBackgroundElementDraw in libtk8.6.a(ttkMacOSXTheme.o)</p>
<p class=""> "_HIThemeSetStroke", referenced from:</p>
<p class=""> _TkMacOSXSetColorInContext in libtk8.6.a(tkMacOSXColor.o)</p>
<p class=""> "_HIThemeSetTextFill", referenced from:</p>
<p class=""> _TkMacOSXSetColorInContext in libtk8.6.a(tkMacOSXColor.o)</p>
<p class=""> "_LMGetKbdType", referenced from:</p>
<p class=""> _XKeycodeToKeysym in libtk8.6.a(tkMacOSXKeyboard.o)</p>
<p class=""> "_TISCopyCurrentKeyboardLayoutInputSource", referenced from:</p>
<p class=""> _XKeycodeToKeysym in libtk8.6.a(tkMacOSXKeyboard.o)</p>
<p class=""> "_TISGetInputSourceProperty", referenced from:</p>
<p class=""> _XKeycodeToKeysym in libtk8.6.a(tkMacOSXKeyboard.o)</p>
<p class=""> "_kTISPropertyUnicodeKeyLayoutData", referenced from:</p>
<p class=""> _XKeycodeToKeysym in libtk8.6.a(tkMacOSXKeyboard.o)</p>
<p class="">ld: symbol(s) not found for architecture x86_64</p>
<p class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 9:41 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you remember what symbols were missing that required<br>
the "-framework Carbon"? Was that for tk 8.5 or 8.6?<br>
<br>
- David<br>
<br>
On Tue, Feb 26, 2013 at 2:31 PM, Goodwin Lawlor<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:goodwin.lawlor.lists@gmail.com">goodwin.lawlor.lists@gmail.com</a>> wrote:<br>
> Thanks David,<br>
><br>
> I installed my static Tcl/Tk libs and it worked out too... so long as you do<br>
> a "sudo make install_private_headers"<br>
><br>
> I always thought Tk bundled X11 libs solely for win32 benefits but it seems<br>
> Aqua builds require them over the system libs. When you diff the tk Xlib.h<br>
> against the system one they are quite different.<br>
><br>
> Also there was a small link problem too - "-framework Carbon" had to be<br>
> added to linker.<br>
><br>
> Goodwin<br>
><br>
><br>
> On Tue, Feb 26, 2013 at 4:16 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
>><br>
>> Hi Goodwin,<br>
>><br>
>> For Win32 builds, there is a CMake variable called TK_XLIB_PATH that<br>
>> is set to the directory where X11/Xlib.h is to be found. As far as I<br>
>> understand, that variable is only needed when you are building VTK<br>
>> against a Tk source directory. Once Tk is installed, the X11<br>
>> directory is installed in the Tk include directory and X11/Xlib.h is<br>
>> found automatically.<br>
>><br>
>> So I'm guessing that the reason the TK_XLIB_PATH variable isn't<br>
>> present under OS X is that very few people (or maybe no people) have<br>
>> ever tried building against a Tk source directory on OS X.<br>
>><br>
>> If you're interested you can grep the VTK cmake files for TK_XLIB_PATH<br>
>> to see how things are done for Windows, and then make things work the<br>
>> same way for OS X.<br>
>><br>
>> - David<br>
>><br>
>><br>
>> On Mon, Feb 25, 2013 at 7:17 PM, Goodwin Lawlor<br>
>> <<a href="mailto:goodwin.lawlor.lists@gmail.com">goodwin.lawlor.lists@gmail.com</a>> wrote:<br>
>> ><br>
>> > Looking at the Tk Makefile, it seems that when building static libs with<br>
>> > Aqua you have to force the inclusion of Xlib.h from the Tk source tree (ie,<br>
>> > from the tk/xlib directory)<br>
>> ><br>
>> > So, adding<br>
>> ><br>
>> > INCLUDE_DIRECTORIES(BEFORE ${TK_INCLUDE_PATH}/../xlib)<br>
>> ><br>
>> > to VTK/Rendering/CMakeLists.txt fixed things.<br>
>> ><br>
>> > hth someone.<br>
>> ><br>
>> > Goodwin<br>
>> ><br>
>> > On Mon, Feb 25, 2013 at 10:02 PM, Goodwin Lawlor<br>
>> > <<a href="mailto:goodwin.lawlor.lists@gmail.com">goodwin.lawlor.lists@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Hi All,<br>
>> >><br>
>> >> I'm building VTK (5.10.1 and Nightly) on Mac OS X 10.7.5<br>
>> >><br>
>> >> I'm building static libs with Tcl wrappers (v8.5.13 and v8.6).<br>
>> >><br>
>> >> The build fails on vtkTkRenderWidget with<br>
>> >><br>
>> >> In file included from<br>
>> >> /Users/GoodwinLawlor/code/VTK/Rendering/vtkTkRenderWidget.cxx:35:<br>
>> >> In file included from<br>
>> >> /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkInt.h:19:<br>
>> >> In file included from<br>
>> >> /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkPort.h:25:<br>
>> >> In file included from<br>
>> >> /Users/GoodwinLawlor/code/tcltk/tk8.6/macosx/tkMacOSXPort.h:56:<br>
>> >> /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkIntXlibDecls.h:380:16:<br>
>> >> error: conflicting types for 'XKeycodeToKeysym'<br>
>> >> EXTERN KeySym XKeycodeToKeysym(Display *d, KeyCode k, int i);<br>
>> >> ^<br>
>> >> /usr/include/X11/Xlib.h:1694:15: note: previous declaration is here<br>
>> >> extern KeySym XKeycodeToKeysym(<br>
>> >><br>
>> >> I've got VTK_USE_X = 0 and VTK_USE_COCOA = 1<br>
>> >><br>
>> >> Basically, tkIntXlibDecls.h is declaring the same types as Xlib.h<br>
>> >><br>
>> >> Grateful for any hints before going grepping...<br>
>> >><br>
>> >> Thanks,<br>
>> >><br>
>> >> Goodwin<br>
><br>
><br>
</div></div></blockquote></div><br></div>