Comments (5)
There are a few things to check.
- Get the latest version of DMD
- Get the latest version of Dub
- Make sure you have Tcl/Tk v8.6+ installed.
I have a feeling it's borking on the PNG image types, these where added in Tcl/Tk v8.6 http://www.tcl.tk/software/tcltk/8.6.html (but that's only a guess). The bummer is i no longer have a Mac to test this myself. doh!
from tkd.
DMD is 2.065, dub is ~master, port reports tk as version tk @8.6.1_1+quartz
I don't get a crash, however, when commenting out lines 167 - 171 in example.d:
auto fileMenu = new Menu(menuBar, "File", 0)
.addEntry(new EmbeddedPng!("cancel.png"), "Quit", &this.exitApplication, ImagePosition.left, "Ctrl-Q");
auto helpMenu = new Menu(menuBar, "Help", 0)
.addEntry(new EmbeddedPng!("help.png"), "About...", &this.showAbout, ImagePosition.left, "F1");
It's probably the EmbeddedPng interacting strangely with the menu bar. No other image buttons show up with an image either, but rather only as a normal OSX buttons.
from tkd.
Even though you have Tcl/Tk 8.6 installed make sure that's the one that's being linked to the executable. Check the dependencies on the compiled exe by using otool
in the terminal. (you may need to install the xcode command line tools)
otool -L <executable>
http://tech-queries.blogspot.co.uk/2011/04/dynamic-library-dependency-on-mac-os-x.html
from tkd.
Oh good catch!
[dymk@Codeinator tkd]ยป otool -L build/example/example
build/example/example:
/System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl (compatibility version 8.5.0, current version 8.5.9)
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (compatibility version 8.5.0, current version 8.5.9)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
I'll start fiddling around with getting OSX to use the ports version instead of the preinstalled one. If you know an easy way to do this, please let me know.
from tkd.
Closing this as it was due to linking against an unsupported version of Tcl/Tk.
from tkd.
Related Issues (20)
- Build of example fails on Mac OSX 10.11 HOT 1
- Text bind (<<Modified>>) only happens once HOT 3
- Example fails to run on Windows but build fine HOT 1
- Add note for linker flags in windows needed to prevent console window. HOT 2
- commandCallbackHandler catches Throwable making unrecoverable Errors impossible HOT 5
- lib found but undefined references HOT 5
- start TK in D Programming ! HOT 4
- Feature Request: add OpenGL capabilites HOT 4
- Changing Widget Background Color HOT 3
- MDI Support HOT 3
- Color methods have been added to widgets that can't use them
- does canvas use the gpu to draw? HOT 1
- Error: module `tkdapplication` is in file 'tkd\tkdapplication.d' which cannot be read HOT 4
- Windows requires Microsoft Visual C++ Redistributable HOT 2
- How to install this in Windows ? HOT 3
- Segmentaiton Fault after Choosing a File via OpenFileDialog HOT 2
- Rebinding default tk keys does not work HOT 9
- How can I get currently selected tab in NoteBook widget? HOT 1
- Has this been abandoned? HOT 3
- Simple Q: is the final app using this lib completely native? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkd.