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

Failed to initialize SDL: No available video device #246

Open
denislachapelle opened this issue Oct 28, 2022 · 4 comments
Open

Failed to initialize SDL: No available video device #246

denislachapelle opened this issue Oct 28, 2022 · 4 comments
Assignees
Labels

Comments

@denislachapelle
Copy link

I install GLVIS-4.2 with mfem-4.4 under WSL. Compilation using make went well for both and also for the mfem examples. I then install VcXsrv for the graphic. I made the command export DISPLAY=192.168.2.43:0.0. I test with two applications, xterm and xcalc, both works fine.

When I start ./glvis I get the following message....

Waiting for data on port 19916 ...
FATAL: Failed to initialize SDL: No available video device
Thank you for using GLVis.

I try Xming and get the same behaviour.

I am on Windows 10 Version 10.0.19044.

I don't know what to do... do you have any suggestion?

Thank you for your help.

@v-dobrev
Copy link
Member

Can you try building glvis in debug mode? The make command is make debug if you're using the GNU make build system. For CMake, you can add use the standard flag -DCMAKE_BUILD_TYPE=Debug.

In debug build there could be more details about the failure.

@tzanio tzanio self-assigned this Oct 28, 2022
@denislachapelle
Copy link
Author

After making mfem and glvis in debug mode i get the following message...

Waiting for data on port 19916 ...
Using SDL 2.24.1
FATAL: Failed to initialize SDL: No available video device
Thank you for using GLVis.

Not much more than without debug...

@bangbangshangalang
Copy link

I was encountering the same issue. The procedure in the pdf at https://arefiles.ucdavis.edu/uploads/filer_public/a5/5b/a55b1e54-153e-4f6d-802c-4a6787cf32ed/installing__using_cygwinx.pdf

Resolved the issue. Basically I just followed 2.1.2 on page 4 and launch a terminal (as shown in Figure 3) and was able to verify the build using the command: ./glvis -m ../mfem-4.5/data/escher.mesh

@v-dobrev
Copy link
Member

v-dobrev commented Mar 3, 2023

@bangbangshangalang,

Setting up and using Cygwin/X is also described on its website: https://x.cygwin.com/docs/ug/cygwin-x-ug.html.

@denislachapelle,

Did you manage to get GLVis working with WSL+VcXsrv? If not, maybe you can try the pre-built Windows binary, see https://glvis.org/, or https://glvis.org/download.

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