Donald A. Spong - 2014-08-26

~~~~~I recently tried upgrading my MacOS Plplot, but ran into the following errors during the make -k phase. I followed similar install steps as before. Haven't seen these problems before. Any suggestions as to how to fix this?

[ 98%] Built target tclIndex_tk
[ 98%] Built target _plplotcmodule
[ 98%] Building C object bindings/python/CMakeFiles/plplot_widgetmodule.dir/plplot_widgetmodule.c.o
In file included from /Users/spongda/fortran_code_development/plplot-5.10.0/bindings/python/plplot_widgetmodule.c:11:
In file included from /Users/spongda/fortran_code_development/plplot-5.10.0/bindings/tk/pltk.h:13:
/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found

include <X11 Xlib.h="">

            ^

1 error generated.
make[2]: [bindings/python/CMakeFiles/plplot_widgetmodule.dir/plplot_widgetmodule.c.o] Error 1
make[2]: Target bindings/python/CMakeFiles/plplot_widgetmodule.dir/build' not remade because of errors. make[1]: *** [bindings/python/CMakeFiles/plplot_widgetmodule.dir/all] Error 2 [ 98%] Built target plplotjavac_wrap [ 98%] Built target plplot_core [ 98%] Building C object bindings/lua/CMakeFiles/plplotluac.dir/plplotluacLUA_wrap.c.o /Users/spongda/fortran_code_development/plplot-5.10.0_install_dir/bindings/lua/plplotluacLUA_wrap.c:11175:43: error: array has incomplete element type 'const struct luaL_reg' static const struct luaL_reg swig_commands[] = { ^ /Users/spongda/fortran_code_development/plplot-5.10.0_install_dir/bindings/lua/plplotluacLUA_wrap.c:11175:21: note: forward declaration of 'struct luaL_reg' static const struct luaL_reg swig_commands[] = { ^ /Users/spongda/fortran_code_development/plplot-5.10.0_install_dir/bindings/lua/plplotluacLUA_wrap.c:11831:19: error: use of undeclared identifier 'LUA_GLOBALSINDEX' lua_pushvalue(L,LUA_GLOBALSINDEX); ^ 2 errors generated. make[2]: *** [bindings/lua/CMakeFiles/plplotluac.dir/plplotluacLUA_wrap.c.o] Error 1 make[2]: Targetbindings/lua/CMakeFiles/plplotluac.dir/build' not remade because of errors.
make[1]:
[bindings/lua/CMakeFiles/plplotluac.dir/all] Error 2
[ 98%] Built target cairo
[ 98%] Built target mem
[ 98%] Built target ntk
[ 98%] Built target null
~~~~~

 

Last edit: Donald A. Spong 2014-08-26