-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error by running hello world #22
Comments
Having the same problem - Linux 4.19.27-gentoo-r1 dev-qt/qtcore 5.11.3-r2 while requiring "qt5" (Exception)
|
@TheBrainScrambler I am going to close this ticket because a sample project created using the following steps is tested and working:
Feel free to open a new issue if you'll have other problems. |
Hello again. After following your steps on Arch Linux with
|
Heya, If you use the To avoid building yourself and use some of the earlier, pre-built versions (as mentioned, up to and including 5.13), switch to the branch Finally, the third thing which is useful to say, is that it would also be useful if the Qt bindings would auto-detect the Qt version already present on the system and build bindings for that version, instead of versions listed in Let us know if you need additional assistance/instructions. |
Um, I actually followed your instructions, that means I used the |
Correct. You'd have to use the However, as mentioned in previous answer, it won't work out of the box as Qt 5.14 and Qt 5.15 add some new enums, and you will need to add those missing enums to file I can't get to doing this myself in the next ~10 days, but you can attempt to do this yourself, and you can ask more specific questions in this ticket. Also @ZaWertun may be able to chime in with help too. Let us know how it goes. (Note that if you just want to generate the bindings for yourself without submitting a patch to us, then you don't have to bother with "if...newer" at all. Simply add the missing enums to the file. And, regarding the question of which enums to add -- well, when you run the generation, the build will fail and tell you which enums are missing, so you can take this list and add them. There are about 5 or 6 of them in total if I am not mistaken.) |
Oh, sorry then, I don't really want to bother with that ... I just wanted it to work out-of-the-box for testing things, and not trying to generate bindings. Since it isn't really your fault, I will just close this issue. It is an old one anyway. |
OK, when we add support for 5.15 I will let you know on this ticket. |
I just followed the instruction given to TheBrainScrambler on May, the 29, 2020 and the compiler stopped on this error: $ crystal src/test.cr In lib/qt5/src/qt5/binding.cr:7:20 7 | {% use_binding = run("#{DIR}/../../support/decide_binding_fast.cr") %} stdout: stderr:
My configuration is as follows. LLVM: 8.0.0 $ cat /etc/os-release $ uname -r $ qtdiag SIGINT(2) ↵ 10:22:52 Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 Let me know if I can give you some more info or I can do anything else to fix/bypass this problem. |
Hey @alexbottoni it seems to me that the error report you included prints the warnings about YAML.mapping, but not the actual error. Can you check that? Also please let us know whether you tried to generate the bindings yourself or you used the |
Hi docelic. I'm not sure how to extract the actual error. Can you give me instructions? I used the master-ready-to-use branch. My shard.yml is as follows.
Anyway, I tried to run the same command with the error tracing activated. Here the result:
Given the error regarding qt5 (that should be correctly installed and available) I tried to re-install shards:
I have got the same error as before. Please note that:
and:
Let me know if I can be of any help. |
Hello, I tried to run the hello world with the shard file including qt5.cr but I'm getting this error
while requiring "qt5" (Exception) Unhandled exception: Error opening file 'crystal' with mode 'r': No such file or directory (Errno) Failed to raise an exception: END_OF_STACK [0x55756f7a67e6] ??? [0x55756ee8e10b] __crystal_raise +43 [0x55756ee8f915] ??? [0x55756ee9ff6f] ??? [0x55756ee99a8c] ??? [0x55756ee98d79] ??? [0x55756ee95798] ??? [0x55756eec870d] ??? [0x55756ee921cd] main +45 [0x7fb2ed1c2223] __libc_start_main +243 [0x55756ee8a4ce] _start +46 [0x0] ???
Any solutions ?
The text was updated successfully, but these errors were encountered: