From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Apr 11 2012 - 14:15:59 CDT

Francois-Xavier,
  Try changing the ifdef on line 241 of VMDApp.C to force Tk initialization
to preceed FLTK, (like we do for 64-bit MacOS X) and try and re-run your test:

240 // XXX This is currently only used for 64-bit MacOS X builds using Cocoa...
241 #if 1 || defined(ARCH_MACOSXX86_64)
242 // Tcl/Tk _must_ be initialized before FLTK due to low-level implementation
243 // details of Cocoa-based Tk and FLTK code required for 64-bit MacOS X.
244 uiText = new UIText(this, strcmp(displaytype, "TEXT") != 0); // text user interface
245 #endif

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Wed, Apr 11, 2012 at 06:58:36PM +0200, FX wrote:
> > #8 0x0015b8e8 in UIText::UIText (this=0x899c00, vmdapp=0x106cc00, guienabled=1) at UIText.C:78
> > #9 0x0016bd59 in VMDApp::VMDinit (this=0x106cc00, argc=1, argv=0xbffffb58, displaytype=0x346878 "WIN", displayLoc=0xbffffaf0, displaySize=0xbffffae8) at VMDApp.C:385
>
> And this corresponds to:
>
> 381 // If the text UI hasn't already been initialized then initialize it here.
> 382 // Cocoa-based FLTK/Tk builds of VMD for 64-bit MacOS X must
> 383 // initialize Tcl/Tk first, so that FLTK works correctly.
> 384 if (uiText == NULL)
> 385 uiText = new UIText(this, display->supports_gui()); // text user interface
> 386 uiText->On();
>

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/       Fax: 217-244-6078