[GH-ISSUE #70] Sample project doesn't work on Windows #42

Closed
opened 2026-05-05 11:00:59 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @ghost on GitHub (Sep 20, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/70

Hi,

I tried downloading and launching the sample project "Features", however it doesn't work on my Windows 10 machine with Visual Studio 2017 15.8 : i get an error message for a few seconds and then the program exits.

It is a bit unclear in documentation when does Qt libraries get copied to debug directory.

image

Thanks a lot for your help and your great project ;-)

Have a nice day.

Antony

Originally created by @ghost on GitHub (Sep 20, 2018). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/70 Hi, I tried downloading and launching the sample project "Features", however it doesn't work on my Windows 10 machine with Visual Studio 2017 15.8 : i get an error message for a few seconds and then the program exits. It is a bit unclear in documentation when does Qt libraries get copied to debug directory. ![image](https://user-images.githubusercontent.com/167333/45805020-f6304700-bcbd-11e8-993d-476f453c4857.png) Thanks a lot for your help and your great project ;-) Have a nice day. Antony
Author
Owner

@MaxMommersteeg commented on GitHub (Sep 20, 2018):

See following closed issue for an explanation about the error message: https://github.com/pauldotknopf/Qml.Net/issues/65

Perhaps it would be better to submit this issue to the samples repository: https://github.com/pauldotknopf/Qml.Net.Examples

For now I will try to run the examples project myself and see if I can get it to work locally myself.

Edit:

Seems to work for me on my Windows 10 machine with Visual Studio 15.8.4 installed. I pulled the latest master branch and ran that.

samplesapp

The second error message I'm seeing is something I didn't see in earlier versions, not sure if that causes an issue...

<!-- gh-comment-id:423147011 --> @MaxMommersteeg commented on GitHub (Sep 20, 2018): See following closed issue for an explanation about the error message: https://github.com/pauldotknopf/Qml.Net/issues/65 Perhaps it would be better to submit this issue to the samples repository: https://github.com/pauldotknopf/Qml.Net.Examples For now I will try to run the examples project myself and see if I can get it to work locally myself. ## Edit: Seems to work for me on my Windows 10 machine with Visual Studio 15.8.4 installed. I pulled the latest master branch and ran that. ![samplesapp](https://user-images.githubusercontent.com/9657173/45815415-dd815a80-bcd8-11e8-9674-8cad69af9fda.png) The second error message I'm seeing is something I didn't see in earlier versions, not sure if that causes an issue...
Author
Owner

@ghost commented on GitHub (Sep 20, 2018):

Thanks for your answer.

I downloaded ZIP of master branch as well, and I have the same Visual Studio version installed.

Do you run it simply by pressing F5 ?

Do I need to install something on my computer ? Visual Studio C++ Redistribuable or something ?

Thanks.

<!-- gh-comment-id:423152385 --> @ghost commented on GitHub (Sep 20, 2018): Thanks for your answer. I downloaded ZIP of master branch as well, and I have the same Visual Studio version installed. Do you run it simply by pressing F5 ? Do I need to install something on my computer ? Visual Studio C++ Redistribuable or something ? Thanks.
Author
Owner

@pauldotknopf commented on GitHub (Sep 20, 2018):

Try this.

Navigate to your .nuget/ package cache and find qml.net.windowsbinaries.

Then, find the Qt libs within that package.

Open them up with this: http://www.dependencywalker.com/

That will tell you if there are any dependencies missing.

Although, I doubt that is the issue.

@antonyrey, Can you send me a private email? I'd like to potentially setup a TeamViewer session to identify what is going wrong with your setup. Email: pauldotknopf at gmail

<!-- gh-comment-id:423166697 --> @pauldotknopf commented on GitHub (Sep 20, 2018): Try this. Navigate to your ```.nuget/``` package cache and find ```qml.net.windowsbinaries```. Then, find the Qt libs within that package. Open them up with this: http://www.dependencywalker.com/ That will tell you if there are any dependencies missing. Although, I doubt that is the issue. @antonyrey, Can you send me a private email? I'd like to potentially setup a TeamViewer session to identify what is going wrong with your setup. Email: pauldotknopf at gmail
Author
Owner

@pauldotknopf commented on GitHub (Sep 23, 2018):

It turned out to be an issue with the graphics driver.

Qt has some nobs you can turn to fine-tune the graphics/opengl stuff on windows.

See here: http://doc.qt.io/qt-5/windows-requirements.html

In this case, setting QT_OPENGL=angle resolved the issue for this particular machine/setup.

<!-- gh-comment-id:423834439 --> @pauldotknopf commented on GitHub (Sep 23, 2018): It turned out to be an issue with the graphics driver. Qt has some nobs you can turn to fine-tune the graphics/opengl stuff on windows. See here: http://doc.qt.io/qt-5/windows-requirements.html In this case, setting ```QT_OPENGL=angle``` resolved the issue for this particular machine/setup.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#42
No description provided.