Re: GraphicsMagick-1.3.23/TclMagick make errorq

Benjamin Brink <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
Bob,

I may have found the key:  The Tcl C library has Tcl_LinkVar procedure which allows C to store a C value at the interpreter level.

Here's a quote from page 606 of free sample chapter 44 of the book "Practical Programming in Tcl and Tk, 3rd Edition" at: http://www.beedub.com/book/3rd/bookTOC.html  
>  The Tcl_LinkVar procedure causes a Tcl variable to mirror a C variable. Modifications to the Tcl variable are reflected in the C variable, and reading the Tcl variable always returns the C variable’s value. 

It's fairly common in Tcl to use an uncommon variable naming convention for passing internals between procs, such as double underscore procedure name underscore local variable name ie __TclMagick_varname.  

There's another chapter on Tcl and compiling extensions also.

I'm up for spending some time on this if you want to provide more details.  Sadly, I don't have resources for a Tk development environment however.  My local machines are headless (no gui) and my gui system is actually an ipad (which doesn't support software development).

cheers,
Benjamin

> The problem is immediately discovered if one attempts to run a 
> TkMagick script on an OS which hides symbols from previously loaded 
> modules by default.  The current design expects that a symbol needed 
> by TkMagick will be resolved from a global TclMagick symbol, based on 
> the TclMagick module being previously loaded.
> 
> I am sure that there must be a recommended way for Tcl C modules to 
> share pointers/data at the C level.
> 
> Bob
> -- 
> Bob Friesenhahn
> [email protected], http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
>

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.