Skip to content

Windows Cross Platform build of Android libraries is not possible - NMAKE : fatal error U1095, U1077 #10627

@jzer0

Description

@jzer0

When attempting to perform a cross platform build of the openSSL 1.1.0 Android libraries from a Windows 10 host OS:

nmake

Microsoft (R) Program Maintenance Utility Version 14.16.27034.0
Copyright (C) Microsoft Corporation. All rights reserved.

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe" depend && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe" _all

Microsoft (R) Program Maintenance Utility Version 14.16.27034.0
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE : fatal error U1095:
...
fi; fi' too long
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe"' : return code '0x2'
Stop

Full output is attached. I have tried multiple NDK\SDK versions and every suggestion I have been able to find in order to resolve this issue except for attempting to manually adjust the configdata.pm file. I have also attempting building using make and various setenv scripts. I am assuming that NASM is being used to address this when building for Windows, but this does not seem to be utilized here. Please confirm whether it should be possible to build the Android libs from a Windows OS or if this is only supported on a Linux environment.
nmake_fail_output.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions