Giter VIP home page Giter VIP logo

Comments (5)

nomad-software avatar nomad-software commented on May 30, 2024

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.

dymk avatar dymk commented on May 30, 2024

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.

nomad-software avatar nomad-software commented on May 30, 2024

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.

dymk avatar dymk commented on May 30, 2024

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.

nomad-software avatar nomad-software commented on May 30, 2024

Closing this as it was due to linking against an unsupported version of Tcl/Tk.

from tkd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.