Skip to content

Conversation

@grendello
Copy link
Contributor

This currently prevents libzip from being built on Ubuntu
since that distribution has libzip in the archives and
the make prepare step installs the required archive.

Without this commit libzip was marked to be built but wasn't
actually built and that resulted in the error when building
the bootstrap tasks (output shortened):

xamarin-android/Xamarin.Android.sln (default targets) ->
(Build target) ->
xamarin-android/src/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj (default targets) ->
14.0/bin/Microsoft.Common.targets (_CopyDeployFilesToOutputDirectoryAlways target) ->

   14.0/bin/Microsoft.Common.targets: error : Cannot copy bin/Debug/lib/xbuild/Xamarin/Android/libzip.so to xamarin-android/bin/BuildDebug/libzip.so, as the source file doesn't exist.

If, for some reason (e.g. on a build-bot), one wants to ignore
the detection performed by code in this commit, one should
call {x,ms}build defining the _LinuxBuildLibZip property on
command line:

{x,ms}build /p:_LinuxBuildLibZip=true

This currently prevents libzip from being built on Ubuntu
since that distribution has libzip in the archives and
the `make prepare` step installs the required archive.

Without this commit libzip was marked to be built but wasn't
*actually* built and that resulted in the error when building
the bootstrap tasks (output shortened):

xamarin-android/Xamarin.Android.sln (default targets) ->
(Build target) ->
xamarin-android/src/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj (default targets) ->
14.0/bin/Microsoft.Common.targets (_CopyDeployFilesToOutputDirectoryAlways target) ->

    14.0/bin/Microsoft.Common.targets: error : Cannot copy bin/Debug/lib/xbuild/Xamarin/Android/libzip.so to xamarin-android/bin/BuildDebug/libzip.so, as the source file doesn't exist.

If, for some reason (e.g. on a build-bot), one wants to ignore
the detection performed by code in this commit, one should
call {x,ms}build defining the _LinuxBuildLibZip property on
command line:

    {x,ms}build /p:_LinuxBuildLibZip=true
@dellis1972 dellis1972 merged commit f22f2f2 into dotnet:master Aug 16, 2016
radekdoulik pushed a commit to radekdoulik/xamarin-android that referenced this pull request Aug 18, 2016
This currently prevents libzip from being built on Ubuntu
since that distribution has libzip in the archives and
the `make prepare` step installs the required archive.

Without this commit libzip was marked to be built but wasn't
*actually* built and that resulted in the error when building
the bootstrap tasks (output shortened):

xamarin-android/Xamarin.Android.sln (default targets) ->
(Build target) ->
xamarin-android/src/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj (default targets) ->
14.0/bin/Microsoft.Common.targets (_CopyDeployFilesToOutputDirectoryAlways target) ->

    14.0/bin/Microsoft.Common.targets: error : Cannot copy bin/Debug/lib/xbuild/Xamarin/Android/libzip.so to xamarin-android/bin/BuildDebug/libzip.so, as the source file doesn't exist.

If, for some reason (e.g. on a build-bot), one wants to ignore
the detection performed by code in this commit, one should
call {x,ms}build defining the _LinuxBuildLibZip property on
command line:

    {x,ms}build /p:_LinuxBuildLibZip=true
@grendello grendello deleted the libzip-linux-build branch February 13, 2019 09:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants