Install or find TkTreeCtrl in ActiveState Tcl8.6.2

已查看 196 次
跳至第一个未读帖子

Mike Muratet

未读,
2014年10月14日 10:27:292014/10/14
收件人 tkd...@googlegroups.com
I would like to build a GUI using TkTreeCtrl. It's a common extension, I thought it might already be included in ActiveTcl8.6.2.0.298433-macosx10.5-i386-x86_64-threaded.dmg, which I installed. I installed TkinterTreeCtrl and it completed OK:

Michaels-MacBook-Pro:TkinterTreectrl-2.0.1 mmuratet$ /usr/local/bin/python3.3 setup.py install
running install
running build
running build_py
running install_lib
creating /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl
copying build/lib/TkTreectrl/__init__.py -> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl
copying build/lib/TkTreectrl/MultiListbox.py -> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl
copying build/lib/TkTreectrl/ScrolledTreectrl.py -> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl
copying build/lib/TkTreectrl/Treectrl.py -> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl
byte-compiling /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl/__init__.py to __init__.cpython-33.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl/MultiListbox.py to MultiListbox.cpython-33.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl/ScrolledTreectrl.py to ScrolledTreectrl.cpython-33.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl/Treectrl.py to Treectrl.cpython-33.pyc
running install_egg_info
Writing /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkinterTreectrl-2.0-py3.3.egg-info 

But the demo scripts can't find treectrl:

Michaels-MacBook-Pro:demo mmuratet$ /usr/local/bin/python3.3 multilistbox.py
Traceback (most recent call last):
  File "multilistbox.py", line 12, in <module>
    m = MultiListbox(root)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl/MultiListbox.py", line 50, in __init__
    Treectrl.__init__(self, master, showroot=showroot, **kw)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/TkTreectrl/Treectrl.py", line 489, in __init__
    ver = master.tk.call('package', 'require', 'treectrl')
_tkinter.TclError: can't find package treectrl                 

I tried to find treectrl from the same python window that works for the self-test. Self-test works but I cannot find treectrl.

So I downloaded and tried to build it:

Michaels-MacBook-Pro:tktreectrl-2.4.1 mmuratet$ ./configure --with-tk=/Library/Frameworks/Tk.framework --with-tcl=/Library/Frameworks/Tcl.framework
checking for correct TEA configuration... ok (TEA 3.9)
configure: configuring treectrl 2.4
checking for Tcl configuration... found /Library/Frameworks/Tcl.framework/tclConfig.sh
checking for existence of /Library/Frameworks/Tcl.framework/tclConfig.sh... loading
checking for Tk configuration... found /Library/Frameworks/Tk.framework/tkConfig.sh
checking for existence of /Library/Frameworks/Tk.framework/tkConfig.sh... loading
configure: --prefix defaulting to TCL_PREFIX /Library/Tcl
configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /Library/Tcl
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking if the compiler understands -pipe... yes
checking whether byte ordering is bigendian... no
checking for sin... yes
checking for main in -lieee... no
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for Tcl public headers... /Library/Frameworks/Tcl.framework/Headers
checking for Tcl private include files... Using -I"/Library/Frameworks/Tcl.framework/Headers" -I"/Library/Frameworks/Tcl.framework/PrivateHeaders" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tcl/generic" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tcl/unix"
checking for Tk public headers... /Library/Frameworks/Tk.framework/Headers
checking for X11 header files... /Library/Frameworks/Tk.framework/Headers
checking for Tk private include files... Using -I"/Library/Frameworks/Tk.framework/Headers" -I"/Library/Frameworks/Tk.framework/PrivateHeaders" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx"
checking whether byte ordering is bigendian... (cached) no
checking for intptr_t... yes
checking whether to use Cocoa or Carbon... Cocoa
checking for pthread_mutex_init in -lpthread... yes
checking for building with threads... yes (default)
checking how to build libraries... shared
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... yes
checking if rpath support is requested... yes
checking system version... Darwin-11.4.2
checking for ar... ar
checking if ld accepts -single_module flag... yes
checking if ld accepts -search_paths_first flag... yes
checking for required early compiler flags... none
checking for 64-bit integer type... using long
checking for build with symbols... no
checking for tclsh... tclsh8.6
checking for wish... wish8.6
configure: creating ./config.status
config.status: creating Makefile
Michaels-MacBook-Pro:tktreectrl-2.4.1 mmuratet$ make
gcc -DPACKAGE_NAME=\"treectrl\" -DPACKAGE_TARNAME=\"treectrl\" -DPACKAGE_VERSION=\"2.4\" -DPACKAGE_STRING=\"treectrl\ 2.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE_PATCHLEVEL=\"2.4.1\" -DBUILD_treectrl=/\*\*/ -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_INTPTR_T=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DMAC_TK_COCOA -std=gnu99 -x objective-c -fobjc-gc -I. -I"./generic" -I"/Library/Frameworks/Tcl.framework/Headers" -I"/Library/Frameworks/Tcl.framework/PrivateHeaders" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tcl/generic" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tcl/unix" -I"/Library/Frameworks/Tk.framework/Headers" -I"/Library/Frameworks/Tk.framework/PrivateHeaders" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/generic" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/unix" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/xlib" -I"/Users/andreask/dbn/lba/GlobalBuildArena/builds/macosx10.5-ix86/tk/macosx"     -pipe  -Os -Wall -fno-common   -c `echo ./generic/tkTreeColumn.c` -o tkTreeColumn.o
In file included from ./generic/tkTreeColumn.c:11:0:
./generic/tkTreeCtrl.h:12:21: fatal error: default.h: No such file or directory
compilation terminated.
make: *** [tkTreeColumn.o] Error 1

I don't know where to turn next. Anybody have any ideas or recommendations?

Thanks

Mike
回复全部
回复作者
转发
0 个新帖子