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

Linux + mono + fglrx = black window #217

Closed
roman-yagodin opened this issue Feb 10, 2015 · 8 comments
Closed

Linux + mono + fglrx = black window #217

roman-yagodin opened this issue Feb 10, 2015 · 8 comments
Labels

Comments

@roman-yagodin
Copy link
Contributor

Simple examples like GameWindowSimple.cs produce only black screen (no errors). App main cycle are working (responding to the keys). System configuration:

OpenTK version 1.1.1589.5942
AMD fglrx proprietary driver 1:13.8~beta1-3
uname -a: Linux simargl 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux

fglrxinfo:

display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7660G
OpenGL version string: 4.3.12438 Compatibility Profile Context 13.20.5

mono --version:

Mono JIT compiler version 3.12.0 (tarball Sat Feb  7 19:12:57 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen
@roman-yagodin
Copy link
Contributor Author

Manually copying OpenTK.dll.config from NuGet packages directory to project output (e.g. bin/Release) seems to solve the issue for me. With other system configuration on VM (same Debian version (but 32-bit), same Mono version + VirtualBox video driver) samples works 'out of the box', without config file.

@Frassle Frassle added bug and removed bug labels Feb 10, 2015
@Frassle
Copy link
Contributor

Frassle commented Feb 10, 2015

.config is probably required to find the right libraries to load. But it should probably be in the project output anyway, and should probably give some sort of message if libraries aren't loading correctly.

roman-yagodin added a commit to roman-yagodin/opentk that referenced this issue Feb 11, 2015
Frassle added a commit that referenced this issue Feb 11, 2015
Clarify OpenTK.dll.config use for #217
@Frassle Frassle added the nuget label Feb 11, 2015
@Frassle
Copy link
Contributor

Frassle commented Feb 11, 2015

Thanks for the pull request, I'll leave this bug open to have a look to see if the NuGet package can be set up to do this automatically.

@harry-cpp
Copy link
Contributor

It would be nice if opentk had a set of default linux and mac libraries even when config file is absent.

@Frassle
Copy link
Contributor

Frassle commented Feb 13, 2015

I don't know if that's possible. The whole point of .config files is a mono workaround because DllImport only has one parameter to name the library to call, which is nearly always filled in with the Windows name of the library, e.g. opengl.dll. .configs map that Windows name to Linux and Mac names when running under Mono on those platforms, no .config no default names (or more correctly, one default name: the Windows one).

@harry-cpp
Copy link
Contributor

In code checking would be a possibility, if there is a config file, load from config file, else check the running system and load predefined library.

@Frassle
Copy link
Contributor

Frassle commented Feb 13, 2015

Like I said this is a Mono thing, it's very hard/impossible to override. But we should see if the NuGet package can be set up to make sure the config is correctly installed.

@varon
Copy link
Member

varon commented Jun 11, 2017

The config should be included by default now.

@varon varon closed this as completed Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants