Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GtkSharp3Demo not working #3

Open
objorke opened this issue Jan 11, 2018 · 5 comments
Open

GtkSharp3Demo not working #3

objorke opened this issue Jan 11, 2018 · 5 comments

Comments

@objorke
Copy link
Member

objorke commented Jan 11, 2018

No description provided.

@objorke objorke added this to the v1.0.0 milestone Jan 11, 2018
@mennodeij
Copy link
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.

@mennodeij
Copy link
Contributor

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

@objorke
Copy link
Member Author

objorke commented Jan 12, 2018

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?

@objorke
Copy link
Member Author

objorke commented Jan 12, 2018

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

@mennodeij
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants