E
E
ettaluni2021-01-18 17:04:40
CMake
ettaluni, 2021-01-18 17:04:40

Is it possible to compile an exe file from linux?

Good day! Let's say there is an ultralight library that is declared as cross-platform. But the instructions describe the assembly method for each system, from under itself, that is, for linux, you need to assemble from linux, for windows from under Windows, respectively. This project is built on cmake, here is an example assembly code:

mkdir build
cd build
cmake ..
cmake --build . --config Release


Is it possible how to make an assembly from one system, in particular Linux for all other OS. Won't there be problems with libraries missing directives?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2021-01-18
@hottabxp

sudo apt-get install mingw-w64

J
Jacob E, 2021-01-18
@Zifix

"For everyone else" - will not work. Specifically for Windows - it will work, it's called cross-compilation, there are a lot of guides on the Internet, choose any one.
For Mac, only install a virtual machine, as far as I remember, and under Windows this is the easiest way, after that comes Wine. I once saw how Qt was installed there, and it worked fine. But it's not all b.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question