From: Payne, Christina M (christy.payne_at_uky.edu)
Date: Fri Jul 26 2013 - 11:52:24 CDT

I am currently most of the way through building VMD with Python support on my Mac. It's a bare bones build with the following configure options:
MACOSXX86_64 FLTKOPENGL FLTK TK TCL PYTHON PTHREADS NUMPY SILENT

I have modified the make file to have the include and libs point to here:

INCDIRS = -F/System/Library/Frameworks -I../plugins/include -I/Users/cpayne/vmd-1.9.1/fltk/include -I/Users/cpayne/vmd-1.9.1/tcltk/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Users/cpayne/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/cpayne/vmd-1.9.1/vmd-1.9.1/plugins/MACOSXX86_64/molfile -I.

LIBS = -lfltk_gl -lfltk -framework ApplicationServices -framework Cocoa -framework OpenGL -framework AGL -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework Python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 -lpthread -lpthread -ltk8.5 -ltcl8.5 -lmolfile_plugin -framework Carbon $(VMDEXTRALIBS)

LIBDIRS = -L/Users/cpayne/vmd-1.9.1/fltk/lib -L/Users/cpayne/vmd-1.9.1/tcltk/lib -Wl,-executable_path . -lmx -L/Users/cpayne/anaconda/lib/python2.7/site-packages/numpy/core/lib -L/Users/cpayne/vmd-1.9.1/vmd-1.9.1/plugins/MACOSXX86_64/molfile

I also removed the -m32 flags from CFLAGS and CPPFLAGS.

The build gets all the way through to the linking phase of the Makefile, but returns the error:

Linking vmd_MACOSXX86_64 ...
ld: can't map file, errno=22 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vmd_MACOSXX86_64] Error 1

I thought it might have to do with RCFLAGS pointing to "../MACOSXX86" instead of the ../MACOSXX86_64 directory, but manually changing that did not fix the linking problem.

Has anyone encountered this error before? I am certainly no expert at Makefiles, so I suspect the error is my fault. I just don't know where. Any suggestions would be greatly appreciated!

Thanks in advance!
Christy