https://kotlinlang.org logo
Title
i

iamthevoid

11/07/2021, 7:38 AM
I want to build windows program on Linux machine. I added
TargetFormat.Exe
and tried to run
packageExe
task. Project new and just created. I got output [thread]. When i inspect build folder there is no
.exe
files. What means
SKIPPED
? Nothing builds? May i somehow build exe on linux? Why i got no errors?
10:31:59: Executing task 'packageExe'...

> Task :wrapper

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD SUCCESSFUL in 135ms
1 actionable task: 1 executed
> Task :compileKotlin UP-TO-DATE
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :checkRuntime UP-TO-DATE
> Task :createRuntimeImage UP-TO-DATE
> Task :inspectClassesForKotlinIC UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :packageExe SKIPPED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD SUCCESSFUL in 182ms
5 actionable tasks: 5 up-to-date
10:31:59: Task execution finished 'packageExe'.
m

Michael Paus

11/07/2021, 10:45 AM
As far as I know cross-building for different platforms is not supported.
🙁 1
c

CLOVIS

11/07/2021, 6:09 PM
@Michael Paus Cross-building for non-linux platforms is never supported (common to all tools), building for Linux can be done from all platforms
a

alexey.tsvetkov

11/08/2021, 4:40 AM
We don’t support any cross-building
i

iamthevoid

11/08/2021, 5:10 PM
Actually that feature not needed, because this is not difficult - setup Windows docker on ci. But i thought that may be possible. It's better to ask