-
Notifications
You must be signed in to change notification settings - Fork 83
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
Produced ocra binaries are missing libssp-0.dll #168
Comments
please tell me how to include it by hand |
Use --dll ruby_builtin_dlls\libssp-0.dll |
thank you it worked |
I also had this problem, and Speak2Erase's work around worked for me as well. |
Same problem here, thanks for your help ! |
Hi! Even when I use the workaround mentioned above, the executable doesn't run, but it also doesn't show any error messages... :/ ocra --windows --output super-bombinhas-1.2.2.exe --dll ruby_builtin_dlls\libssp-0.dll sb.rb data/**/* Can somebody help? Thanks! |
You might want to try moving some of the flags around until after all the command arguments, or swapping the output and dll flags. |
Hey, thanks for the quick response. I tried these but the result was the same: |
Np! Try making the paths to sb.rb and data absolute paths? You might not be pointing to them properly. |
Hi, Here's the output of the previous tries, by the way: LZMA 19.00 (x86) : Igor Pavlov : Public domain : 2019-02-21 Input size: 110576600 (105 MiB) |
Yeah, seems to be related to the version of Gosu... With previous Gosu version it worked fine :/ |
Ah, alright then! |
I have a project using Gosu ; to make it work, I had to include a few other DLLs : |
Hey, I got it working by following this page: https://github.com/gosu/gosu/wiki/Ruby-Packaging-on-Windows |
@victords @fredlacave Are you using Ruby 3.0? Just wondering. |
No, I'm using Ruby 2.7. |
Hm, that's weird, I'm using 2.7 as well and only have to include libssp. |
Using Ruby 3.0.2 on Windows 10, I found Ocra to generate the exe and run the exe with no errors in console mode, but also didn't work at all. Indeed, the link above (https://github.com/gosu/gosu/wiki/Ruby-Packaging-on-Windows) has the fix. For clarity and to capture the information here, the fix is to add the following (at a minimum and for console or windows mode) to the ocra command to create a working exe: --dll ruby_builtin_dlls\libssp-0.dll --dll ruby_builtin_dlls\libgmp-10.dll --dll ruby_builtin_dlls\libgcc_s_seh-1.dll --dll ruby_builtin_dlls\libwinpthread-1.dll For the record, a test of the following ruby file failed to run with any error or output, so this is a fundamental issue of Ocra not bundling required dlls: A very simple ruby scriptputs "What the heck is wrong with ocra" That is all folks.I don't know that every dll above is required for a console program, but I do know the very basic concolse program above was not working until I added these. |
From what I can tell libssp-0.dll is a new required DLL for the ruby runtime and should be included in the executable, but ocra fails to recognize and include it by default which can be pretty annoying. Including it by hand works just fine, though.
The text was updated successfully, but these errors were encountered: