Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- From: sbromle <sam@xxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 08:25:52 -0800 (PST)
On Feb 29, 1:04 pm, Donald G Porter <d...@xxxxxxxx> wrote:
sbromle wrote:
I'm getting a crash moving from Tk8.4 to Tk8.4 on the call
Tk_PhotoSetSize().
I assume that's a typo and you are migrating from Tk 8.4 to Tk 8.5.
See TIP 116 (http://tip.tcl.tk/116) and the Tk 8.5 documentation
for Tk_PhotoSetSize() (http://www.tcl.tk/man/tcl8.5/TkLib/FindPhoto.htm)
for details on how to use the -DUSE_PANIC_ON_PHOTO_ALLOC_FAILURE
directive as a migration tool when compiling your code.
--
| Don Porter Mathematical and Computational Sciences Division |
| donald.por...@xxxxxxxx Information Technology Laboratory |
|http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
Thank you kindly Don,
My problem was that I had a -I/usr/include/tcl8.4 line in my AM_CFLAGS
definition left over.
Now I'm faced with another issue. The tcl8.5.m4 macro allows automake
to
define TCL_LIBS, etc, but I don't see where TCL_INCLUDES (or similar)
would
be defined. Is there a way to do that with the standard tcl8.5.m4
autotools
macros? Or must I fully adopt TEA3 (or write my own m4 macro)?
Is there is an easy way to get the -I/usr/include/tcl8.5 in a variable
through the use of --with-tcl=/usr/lib/tcl8.5 flag (used to find
tclConfig.sh)?
The existing tcl8.5.m4 file contains a macro SC_LOAD_TCLCONFIG that
sets TCL_LIB_SPEC but not TCL_INCLUDE_SPEC. Is there a reason why
this is not done? I.e, is it safe / does it make sense/ for me to just
add
a bit to that to also define and AC_SUBST(TCL_INCLUDE_SPEC) ?
Thank you!
Sam
.
- Follow-Ups:
- Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- From: sbromle
- Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- References:
- Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- From: sbromle
- Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- From: Donald G Porter
- Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- Prev by Date: Re: Procedure for percent of a value
- Next by Date: Re: New question on strings
- Previous by thread: Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- Next by thread: Re: Tk8.5: Tk_PhotoSetSize vs Tk_PhotoSetSize_Panic
- Index(es):
Relevant Pages
|