tim-dlang / dqt

D bindings for the Qt Toolkit
GNU Lesser General Public License v3.0
26 stars 6 forks source link

Compiling on Linux fails #12

Closed argosopentech closed 9 months ago

argosopentech commented 9 months ago

I understand that this library is experimental so no need to fix this, I'm just reporting the issue I had trying to run the example.

pj@pj-Latitude-5490:~/Desktop/DLang/dqt$ dub run :helloworld
Performing "debug" build using dmd for x86_64.
dqt:core 5.15.2-alpha.2+commit.32.g6a44b55: building configuration "library"...
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-71(83,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-85(97,40): Error: unrecognized trait getVisibility
core/qt/core/flags.d-mixin-85(97,40): Error: unrecognized trait getVisibility
core/qt/core/namespace.d-mixin-1958(1970,40): Error: unrecognized trait getVisibility
core/qt/core/namespace.d-mixin-1958(1970,40): Error: unrecognized trait getVisibility
core/qt/core/namespace.d-mixin-1958(1970,40): Error: unrecognized trait getVisibility
core/qt/core/namespace.d-mixin-1958(1970,40): Error: unrecognized trait getVisibility
core/qt/core/namespace.d-mixin-1958(1970,40): Error: unrecognized trait getVisibility
core/qt/core/namespace.d-mixin-1958(1970,40): Error: unrecognized trait getVisibility
core/qt/core/qchar.d-mixin-35(47,40): Error: unrecognized trait getVisibility
core/qt/core/qchar.d-mixin-35(47,40): Error: unrecognized trait getVisibility
dmd failed with exit code 1.
tim-dlang commented 9 months ago

Which version of DMD are you using? Maybe an older version does not support trait getVisibility.

argosopentech commented 9 months ago

v2.090.1 - I installed DMD from the Debian (edit: I installed from Snap not Debian) package repo.

$ dmd --version
DMD64 D Compiler v2.090.1
Copyright (C) 1999-2019 by The D Language Foundation, All Rights Reserved written by Walter Bright
tim-dlang commented 9 months ago

Trait getVisibility has been introduced in DMD version 2.096.0, so it is not supported in the version from Debian.

You can download a newer version of DMD here: https://dlang.org/download.html Versions from 2.100.0 should work, but you can just use the newest version 2.106.1.

argosopentech commented 9 months ago

You can download a newer version of DMD here: https://dlang.org/download.html Versions from 2.100.0 should work, but you can just use the newest version 2.106.1.

Updating the DMD version worked thanks!

$ dmd --version
DMD64 D Compiler v2.106.1
Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved written by Walter Bright

$ dub run :helloworld

# Hello World window appears on the desktop