Running cygwin built exe on windows without cygwin environment

I am trying to port linux software to windows. My software depends on gtk, boost and libgerbv (which I manually compiled on cygwin) I successfully compiled it and it works if I run it in the cygwin terminal, but if I copy the .exe file to the folder with cygwin1.dll, and I ran it, it finishes silently The same result if I ran it in cmd.exe.
How can I โ€œexportโ€ this executable file outside the cygwin environment? I want to distribute it only with the necessary shared libraries and cygwin1.dll

thanks

+5
source share
1 answer

"How can I" export "this executable file outside of the cygwin environment?"

In short: this is impossible. You will need to install the cygwin environment on the target machine and run the programs created in cygwin from the cygwin shell.

Cygwin requires several native .dll files to bind to the underlying Windows OS. They cannot simply be copied to another Windows system without a full cygwin installation.

Here are some more details about this: What is the difference between Cygwin and MinGW?


This is why I prefer to use MinGW to schedule work with Windows systems. Cygwin has the authority and the right to exist when it comes to cross compiling code for various (for example, built-in) purposes running on Windows as a host.

+3
source

Source: https://habr.com/ru/post/1210001/


All Articles