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

exe fails in windows 10 #6

Open
ghostlyghastly opened this issue Mar 5, 2023 · 4 comments · May be fixed by #7
Open

exe fails in windows 10 #6

ghostlyghastly opened this issue Mar 5, 2023 · 4 comments · May be fixed by #7

Comments

@ghostlyghastly
Copy link

Runing on win:

Int2ssl.exe - System Error
The code execution cannot proceed because
libgcc_s_dw2-1.dll was not found. Reinstalling the program
may fix this problem.

Int2ssl.exe - System Error
The code execution cannot proceed because libstdc++-6.dll
was not found, Reinstalling the program may fix this problem

Once I get them from questionable sources (stdc from my git bash installation though):

Int2ssl.exe - Application Error
The application was unable to start correctly (Ox000007b).
Click 0K to close the application.

Inside git bash I can run it without any error but it also produces no output whatsoever. No matter which/how many parameters

@winterheart
Copy link

I guess you compiled int2ssl with mingw or msys2 toolchain. For this you need either copy required dll-s into PATH (for example, where int2ssl.exe located) or compile int2ssl statically with libc++ libraries (need to add -static to compiler options, but beware - since this is untested, you may required additional steps to get it compiled properly).

Binary works inside git bash session just because git bash naturally is mingw environment that provides required dll in PATH (first approach).

@ghostlyghastly
Copy link
Author

I was using the exe from the release.

It was faster for me to use sfall and an autoclicker script than trying to figure out how to set up make on windows though.

One still wonders why the exe fails when the dlls are provided.

And when it works in bash, why it doesn't produce output.

winterheart added a commit to winterheart/int2ssl that referenced this issue Mar 5, 2023
In order to achieve more portability int2ssl needs to compiled with
`-static` option in MinGW environment, so all required toolchain
libraries gets compiled into binary. Partially fixes falltergeist#6.

Also reorganized CMakeLists.txt file for more modern CMake project best
practies usage:
* -Os (optimized for size) is part of Cmake's MinSizeRel build type, so
  this option should'nt defined manually. Instead use
  `-DCMAKE_BUILD_TYPE=MinSizeRel`.
* -s (strip binary option) is not true crossplatform option, so moved it
  into option STRIP_EXE enabled by default.
* Minimal CMake version requirement updated to 3.11 to avoid deprecation
  warnings on modern cmake.
winterheart added a commit to winterheart/int2ssl that referenced this issue Mar 5, 2023
In order to achieve more portability int2ssl needs to compiled with
`-static` option in MinGW environment, so all required toolchain
libraries gets compiled into binary. Partially fixes falltergeist#6.

Now project supports cross-compiling for Windows binaries in Linux host.
To do so, pass `-DCMAKE_TOOLCHAIN_FILE=/path/to/Toolchain-MinGW64.cmake`
on cmake configuration phase.

Also reorganized CMakeLists.txt file for more modern CMake project best
practies usage:
* -Os (optimized for size) is part of Cmake's MinSizeRel build type, so
  this option should'nt defined manually. Instead use
  `-DCMAKE_BUILD_TYPE=MinSizeRel`.
* -s (strip binary option) is not true crossplatform option, so moved it
  into option STRIP_EXE enabled by default.
* Minimal CMake version requirement updated to 3.13 to avoid deprecation
  warnings on modern cmake.
@winterheart winterheart linked a pull request Mar 5, 2023 that will close this issue
@winterheart
Copy link

While #7 not merged, can you please try this exe with fixed DLL issues?
int2ssl.zip

@ghostlyghastly
Copy link
Author

ghostlyghastly commented Mar 8, 2023

It runs fine and converts int files to ssl, both in bash and cmd and via drag-and-drop. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants