Hi David, you could for starters use the following method:
export CFLAGS=-DMAC_TCL cmake ... (or make) That ought to activate the Mac specific code. Regards, Arjen On 2011-01-03 17:36, David MacMahon wrote: > Thanks, Argen! > > I also noticed this when compiling tkwin.c... > > drivers/tkwin.c:398: warning: assignment makes pointer from integer without a > cast > > This is because XOpenDisplay is not declared in any #included files. I think > because I'm on Mac OS X and Tk is not based on X11 on that platform. I see a > lot of "#ifdef MAC_TCL" in the source code, but I can't find that being > #defined (or #undefed) anywhere nor any cmake files that refer to the MAC_TCL > macro. > > Thanks again, > Dave > > P.S. Here's the full command line that make used and the resulting output... > > cd /Users/davidm/local/src/plplot/tmp/drivers && /opt/local/bin/gcc > -Dtkwin_EXPORTS -DHAVE_CONFIG_H -arch i386 -isysroot > /Developer/SDKs/MacOSX10.6.sdk -fPIC -I/Users/davidm/local/src/plplot/include > -I/Users/davidm/local/src/plplot/lib/qsastime > -I/Users/davidm/local/src/plplot/lib/nistcd > -I/Users/davidm/local/src/plplot/tmp > -I/Users/davidm/local/src/plplot/tmp/include > -I/System/Library/Frameworks/Tcl.framework/Headers > -I/System/Library/Frameworks/Tk.framework/Headers -I/usr/include > -I"/Users/davidm/local/src/plplot"/bindings/tcl > -I"/Users/davidm/local/src/plplot/tmp"/bindings/tcl > -I"/Users/davidm/local/src/plplot"/bindings/tk-x-plat > -I"/Users/davidm/local/src/plplot"/bindings/tk -DUSINGDLL -o > CMakeFiles/tkwin.dir/tkwin.c.o -c > /Users/davidm/local/src/plplot/drivers/tkwin.c > > /Users/davidm/local/src/plplot/drivers/tkwin.c: In function 'plD_open_tkwin': > /Users/davidm/local/src/plplot/drivers/tkwin.c:398: warning: assignment makes > pointer from integer without a cast > /Users/davidm/local/src/plplot/drivers/tkwin.c: In function 'Init': > /Users/davidm/local/src/plplot/drivers/tkwin.c:946: warning: assignment makes > pointer from integer without a cast > /Users/davidm/local/src/plplot/drivers/tkwin.c:959: warning: assignment makes > pointer from integer without a cast > /Users/davidm/local/src/plplot/drivers/tkwin.c: In function 'CreatePixmap': > /Users/davidm/local/src/plplot/drivers/tkwin.c:1235: warning: assignment > makes pointer from integer without a cast > > DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
