Skip to content

GtkSharp3Demo not working #3

Open

Description

@objorke
No description provided.

Activity

  1. added this to the milestone on Jan 11, 2018
  2. mennodeij commented on Jan 12, 2018

    @mennodeij
    Contributor

    The problems seems to be that both GtkSharpDemo and GtkSharpDemo3 write their binaries and dependencies to the same folder. This then includes gtk-sharp.dll etc.

    When Demo3 is running after Demo has been built, it can't load the correct version of gtk-sharp.dll and vice versa. The solution is, I think, to split the two demo projects into their own folders. The same applies for OxyPlot.GtkSharp and OxyPlot.GtkSharp3. These now share the same packages.config file, whereas OxyPlot.GtkSharp3 needs the gtk-sharp-3 nuget package and OxyPlot.GtkSharp does not.

    I'm happy to refactor this and create a pull request.

  3. mennodeij commented on Jan 12, 2018

    @mennodeij
    Contributor

    The PR addresses this issue. Note that there is no support for gtksharp3 on Windows.

  4. objorke commented on Jan 12, 2018

    @objorke
    MemberAuthor

    I tried to run the gtk#3 examples on OSX, but get a libgtk-3.0.dylib exception - does this mean that GTK3 is not installed? What is the simplest way to test the gtk#3 demos?

  5. objorke commented on Jan 12, 2018

    @objorke
    MemberAuthor

    Can the gtk#3 demos only be built for x86?

  6. mennodeij commented on Jan 15, 2018

    @mennodeij
    Contributor

    I don't know what is the exact cause of the dylib exception, but I don't think that it is an x86/x64 issue. My approach would be

    1. find out if libgtk-3.0.dylib is on your system and in the LD_LIBRARY_PATH variable
    2. if not installed, follow the instructions here http://macappstore.org/gtk3/ to install first Homebrew, then gtk+3 and try again
      2a. if missing from LD_LIBRARY_PATH configure the environment variable properly.
    3. with gtk+3 installed and LD_LIBRARY_PATH configured, there could also be an assembly redirect error, see the *.config files that come with the gtk-sharp-3 package.

    Other than that I would not know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions