libgdx / gdx-jnigen

jnigen is a small library that can be used with or without libGDX which allows C/C++ code to be written inline with Java source code.
Apache License 2.0
59 stars 26 forks source link

Failed to find MinGW Compiler #44

Closed AN3Orik closed 12 months ago

AN3Orik commented 12 months ago

Currently plugin generate script whos can't find installed minGW compiler binary at Windows - as result: compilation failed.

Part of verbose ant build log output:

[available] Searching C:\mingw64\bin (Compiler binary 100% exist here) [available] Unable to find x8664-w64-mingw32-g++ (Seams build script try to find binary without exe extension)_

Berstanio commented 12 months ago

You can set a compiler prefix like this:

jnigen {
    ...
    add(Windows, x32) {
        compilerSuffix = ".exe"
    }
    add(Windows, x64) {
        compilerSuffix = ".exe"
    }
}

Could you try, whether that resolves your issue?

AN3Orik commented 12 months ago

Yeah, set forcibly suffix works. Thanks!