xamarin-android-linux
xamarin-android-linux copied to clipboard
Cannot find the bin/Debug/bin folder
I cannot complete this step of your guide:
Let's also copy the Xamarin.Android tools in bin:
sudo mkdir -p /usr/lib/mono/xamarin-android/bin/ sudo cp -r bin/Debug/bin/* /usr/lib/mono/xamarin-android/bin/
I do not find such a folder as bin/Debug/bin. Where should it be located? I cannot find such a folder in any of the Xamarin build artifacts, in particular not in the one you point out in your guide.
Any ideas?!
Thank's!
Hi,
Are you using the xamarin.android-oss_*.orig.tar.bz2 package?
Can you post the output of tree on a pastebin website?
Also can you please post the specific version of the package you're using? (and the link please)
Hello,
I tried all the files in the build you pointed out. ALL. I also tried the ones from other builds.
So this:

The tree: . ├── bcl-tests │ ├── bcl-tests.zip │ ├── monodroid_corlib_test.dll │ ├── monodroid_corlib_test.pdb │ ├── monodroid_corlib_xunit-test.dll │ ├── monodroid_corlib_xunit-test.pdb │ ├── monodroid_I18N.CJK_test.dll │ ├── monodroid_I18N.CJK_test.pdb │ ├── monodroid_I18N.MidEast_test.dll │ ├── monodroid_I18N.MidEast_test.pdb │ ├── monodroid_I18N.West_test.dll │ ├── monodroid_I18N.West_test.pdb │ ├── monodroid_Mono.CSharp_test.dll │ ├── monodroid_Mono.CSharp_test.pdb │ ├── monodroid_Mono.Data.Sqlite_test.dll │ ├── monodroid_Mono.Data.Sqlite_test.pdb │ ├── monodroid_Mono.Data.Tds_test.dll │ ├── monodroid_Mono.Data.Tds_test.pdb │ ├── monodroid_Mono.Security_test.dll │ ├── monodroid_Mono.Security_test.pdb │ ├── monodroid_System.Core_test.dll │ ├── monodroid_System.Core_test.pdb │ ├── monodroid_System.Data_test.dll │ ├── monodroid_System.Data_test.pdb │ ├── monodroid_System.IO.Compression.FileSystem_test.dll │ ├── monodroid_System.IO.Compression.FileSystem_test.pdb │ ├── monodroid_System.IO.Compression_test.dll │ ├── monodroid_System.IO.Compression_test.pdb │ ├── monodroid_System.Json_test.dll │ ├── monodroid_System.Json_test.pdb │ ├── monodroid_System.Net.Http_test.dll │ ├── monodroid_System.Net.Http_test.pdb │ ├── monodroid_System.Numerics_test.dll │ ├── monodroid_System.Numerics_test.pdb │ ├── monodroid_System.Numerics_xunit-test.dll │ ├── monodroid_System.Numerics_xunit-test.pdb │ ├── monodroid_System.Runtime.Serialization_test.dll │ ├── monodroid_System.Runtime.Serialization_test.pdb │ ├── monodroid_System.ServiceModel.Web_test.dll │ ├── monodroid_System.ServiceModel.Web_test.pdb │ ├── monodroid_System_test.dll │ ├── monodroid_System_test.pdb │ ├── monodroid_System.Transactions_test.dll │ ├── monodroid_System.Transactions_test.pdb │ ├── monodroid_System.Xml.Linq_test.dll │ ├── monodroid_System.Xml.Linq_test.pdb │ ├── monodroid_System.Xml_test.dll │ ├── monodroid_System.Xml_test.pdb │ ├── nunitlite.dll │ └── nunitlite.pdb ├── include │ ├── arm64-v8a │ │ └── eglib │ │ └── eglib-config.h │ ├── armeabi │ │ └── eglib │ │ └── eglib-config.h │ ├── armeabi-v7a │ │ └── eglib │ │ └── eglib-config.h │ ├── Consts.cs │ ├── host-Linux │ │ └── eglib │ │ └── eglib-config.h │ ├── x86 │ │ └── eglib │ │ └── eglib-config.h │ └── x86_64 │ └── eglib │ └── eglib-config.h └── lib └── xamarin.android ├── xbuild │ └── Xamarin │ └── Android │ ├── cil-strip.exe │ ├── cil-strip.pdb │ ├── lib │ │ ├── arm64-v8a │ │ │ ├── libmono-btls-shared.d.so │ │ │ ├── libmono-btls-shared.so │ │ │ ├── libMonoPosixHelper.d.so │ │ │ ├── libMonoPosixHelper.so │ │ │ ├── libmono-profiler-log.d.so │ │ │ ├── libmono-profiler-log.so │ │ │ ├── libmonosgen-2.0.d.so │ │ │ └── libmonosgen-2.0.so │ │ ├── armeabi │ │ │ ├── libmono-btls-shared.d.so │ │ │ ├── libmono-btls-shared.so │ │ │ ├── libMonoPosixHelper.d.so │ │ │ ├── libMonoPosixHelper.so │ │ │ ├── libmono-profiler-log.d.so │ │ │ ├── libmono-profiler-log.so │ │ │ ├── libmonosgen-2.0.d.so │ │ │ └── libmonosgen-2.0.so │ │ ├── armeabi-v7a │ │ │ ├── libmono-btls-shared.d.so │ │ │ ├── libmono-btls-shared.so │ │ │ ├── libMonoPosixHelper.d.so │ │ │ ├── libMonoPosixHelper.so │ │ │ ├── libmono-profiler-log.d.so │ │ │ ├── libmono-profiler-log.so │ │ │ ├── libmonosgen-2.0.d.so │ │ │ └── libmonosgen-2.0.so │ │ ├── host-Linux │ │ │ ├── libMonoPosixHelper.d.so │ │ │ ├── libMonoPosixHelper.so │ │ │ ├── libmono-profiler-log.d.so │ │ │ ├── libmono-profiler-log.so │ │ │ ├── libmonosgen-2.0.d.so │ │ │ └── libmonosgen-2.0.so │ │ ├── x86 │ │ │ ├── libmono-btls-shared.d.so │ │ │ ├── libmono-btls-shared.so │ │ │ ├── libMonoPosixHelper.d.so │ │ │ ├── libMonoPosixHelper.so │ │ │ ├── libmono-profiler-log.d.so │ │ │ ├── libmono-profiler-log.so │ │ │ ├── libmonosgen-2.0.d.so │ │ │ └── libmonosgen-2.0.so │ │ └── x86_64 │ │ ├── libmono-btls-shared.d.so │ │ ├── libmono-btls-shared.so │ │ ├── libMonoPosixHelper.d.so │ │ ├── libMonoPosixHelper.so │ │ ├── libmono-profiler-log.d.so │ │ ├── libmono-profiler-log.so │ │ ├── libmonosgen-2.0.d.so │ │ └── libmonosgen-2.0.so │ ├── linkeranalyzer.exe │ ├── linkeranalyzer.pdb │ ├── Linux │ │ ├── cross-arm │ │ ├── cross-arm64 │ │ ├── cross-arm64.d │ │ ├── cross-arm.d │ │ ├── cross-x86 │ │ ├── cross-x86_64 │ │ ├── cross-x86_64.d │ │ ├── cross-x86.d │ │ ├── llc │ │ └── opt │ ├── mdoc.exe │ ├── mdoc.pdb │ ├── mkbundle.exe │ ├── mkbundle.pdb │ ├── monodoc.dll │ ├── monodoc.dll.config │ ├── monodoc.pdb │ ├── mono-symbolicate.exe │ └── mono-symbolicate.pdb └── xbuild-frameworks └── MonoAndroid └── v1.0 ├── Facades │ ├── Microsoft.Win32.Primitives.dll │ ├── Microsoft.Win32.Registry.AccessControl.dll │ ├── Microsoft.Win32.Registry.dll │ ├── netstandard.dll │ ├── System.AppContext.dll │ ├── System.Collections.Concurrent.dll │ ├── System.Collections.dll │ ├── System.Collections.NonGeneric.dll │ ├── System.Collections.Specialized.dll │ ├── System.ComponentModel.Annotations.dll │ ├── System.ComponentModel.dll │ ├── System.ComponentModel.EventBasedAsync.dll │ ├── System.ComponentModel.Primitives.dll │ ├── System.ComponentModel.TypeConverter.dll │ ├── System.Console.dll │ ├── System.Data.Common.dll │ ├── System.Data.SqlClient.dll │ ├── System.Diagnostics.Contracts.dll │ ├── System.Diagnostics.Debug.dll │ ├── System.Diagnostics.FileVersionInfo.dll │ ├── System.Diagnostics.Process.dll │ ├── System.Diagnostics.StackTrace.dll │ ├── System.Diagnostics.TextWriterTraceListener.dll │ ├── System.Diagnostics.Tools.dll │ ├── System.Diagnostics.TraceEvent.dll │ ├── System.Diagnostics.TraceSource.dll │ ├── System.Diagnostics.Tracing.dll │ ├── System.Drawing.Primitives.dll │ ├── System.Dynamic.Runtime.dll │ ├── System.Globalization.Calendars.dll │ ├── System.Globalization.dll │ ├── System.Globalization.Extensions.dll │ ├── System.IO.Compression.ZipFile.dll │ ├── System.IO.dll │ ├── System.IO.FileSystem.AccessControl.dll │ ├── System.IO.FileSystem.dll │ ├── System.IO.FileSystem.DriveInfo.dll │ ├── System.IO.FileSystem.Primitives.dll │ ├── System.IO.FileSystem.Watcher.dll │ ├── System.IO.IsolatedStorage.dll │ ├── System.IO.MemoryMappedFiles.dll │ ├── System.IO.Pipes.dll │ ├── System.IO.UnmanagedMemoryStream.dll │ ├── System.Linq.dll │ ├── System.Linq.Expressions.dll │ ├── System.Linq.Parallel.dll │ ├── System.Linq.Queryable.dll │ ├── System.Net.AuthenticationManager.dll │ ├── System.Net.Cache.dll │ ├── System.Net.HttpListener.dll │ ├── System.Net.Mail.dll │ ├── System.Net.NameResolution.dll │ ├── System.Net.NetworkInformation.dll │ ├── System.Net.Ping.dll │ ├── System.Net.Primitives.dll │ ├── System.Net.Requests.dll │ ├── System.Net.Security.dll │ ├── System.Net.ServicePoint.dll │ ├── System.Net.Sockets.dll │ ├── System.Net.Utilities.dll │ ├── System.Net.WebHeaderCollection.dll │ ├── System.Net.WebSockets.Client.dll │ ├── System.Net.WebSockets.dll │ ├── System.ObjectModel.dll │ ├── System.Reflection.DispatchProxy.dll │ ├── System.Reflection.dll │ ├── System.Reflection.Emit.dll │ ├── System.Reflection.Emit.ILGeneration.dll │ ├── System.Reflection.Emit.Lightweight.dll │ ├── System.Reflection.Extensions.dll │ ├── System.Reflection.Primitives.dll │ ├── System.Reflection.TypeExtensions.dll │ ├── System.Resources.ReaderWriter.dll │ ├── System.Resources.ResourceManager.dll │ ├── System.Runtime.CompilerServices.VisualC.dll │ ├── System.Runtime.dll │ ├── System.Runtime.Extensions.dll │ ├── System.Runtime.Handles.dll │ ├── System.Runtime.InteropServices.dll │ ├── System.Runtime.InteropServices.RuntimeInformation.dll │ ├── System.Runtime.InteropServices.WindowsRuntime.dll │ ├── System.Runtime.Loader.dll │ ├── System.Runtime.Numerics.dll │ ├── System.Runtime.Serialization.Formatters.dll │ ├── System.Runtime.Serialization.Json.dll │ ├── System.Runtime.Serialization.Primitives.dll │ ├── System.Runtime.Serialization.Xml.dll │ ├── System.Security.AccessControl.dll │ ├── System.Security.Claims.dll │ ├── System.Security.Cryptography.Algorithms.dll │ ├── System.Security.Cryptography.Cng.dll │ ├── System.Security.Cryptography.Csp.dll │ ├── System.Security.Cryptography.DeriveBytes.dll │ ├── System.Security.Cryptography.Encoding.dll │ ├── System.Security.Cryptography.Encryption.Aes.dll │ ├── System.Security.Cryptography.Encryption.dll │ ├── System.Security.Cryptography.Encryption.ECDiffieHellman.dll │ ├── System.Security.Cryptography.Encryption.ECDsa.dll │ ├── System.Security.Cryptography.Hashing.Algorithms.dll │ ├── System.Security.Cryptography.Hashing.dll │ ├── System.Security.Cryptography.OpenSsl.dll │ ├── System.Security.Cryptography.Pkcs.dll │ ├── System.Security.Cryptography.Primitives.dll │ ├── System.Security.Cryptography.ProtectedData.dll │ ├── System.Security.Cryptography.RandomNumberGenerator.dll │ ├── System.Security.Cryptography.RSA.dll │ ├── System.Security.Cryptography.X509Certificates.dll │ ├── System.Security.Principal.dll │ ├── System.Security.Principal.Windows.dll │ ├── System.Security.SecureString.dll │ ├── System.ServiceModel.Duplex.dll │ ├── System.ServiceModel.Http.dll │ ├── System.ServiceModel.NetTcp.dll │ ├── System.ServiceModel.Primitives.dll │ ├── System.ServiceModel.Security.dll │ ├── System.ServiceProcess.ServiceController.dll │ ├── System.Text.Encoding.CodePages.dll │ ├── System.Text.Encoding.dll │ ├── System.Text.Encoding.Extensions.dll │ ├── System.Text.RegularExpressions.dll │ ├── System.Threading.AccessControl.dll │ ├── System.Threading.dll │ ├── System.Threading.Overlapped.dll │ ├── System.Threading.Tasks.dll │ ├── System.Threading.Tasks.Parallel.dll │ ├── System.Threading.Thread.dll │ ├── System.Threading.ThreadPool.dll │ ├── System.Threading.Timer.dll │ ├── System.ValueTuple.dll │ ├── System.Xml.ReaderWriter.dll │ ├── System.Xml.XDocument.dll │ ├── System.Xml.XmlDocument.dll │ ├── System.Xml.XmlSerializer.dll │ ├── System.Xml.XPath.dll │ ├── System.Xml.XPath.XDocument.dll │ ├── System.Xml.XPath.XmlDocument.dll │ └── System.Xml.Xsl.Primitives.dll ├── I18N.CJK.dll ├── I18N.CJK.pdb ├── I18N.dll ├── I18N.MidEast.dll ├── I18N.MidEast.pdb ├── I18N.Other.dll ├── I18N.Other.pdb ├── I18N.pdb ├── I18N.Rare.dll ├── I18N.Rare.pdb ├── I18N.West.dll ├── I18N.West.pdb ├── Microsoft.CSharp.dll ├── Microsoft.CSharp.pdb ├── Mono.Btls.Interface.dll ├── Mono.Btls.Interface.pdb ├── Mono.CompilerServices.SymbolWriter.dll ├── Mono.CompilerServices.SymbolWriter.pdb ├── Mono.CSharp.dll ├── Mono.CSharp.pdb ├── Mono.Data.Tds.dll ├── Mono.Data.Tds.pdb ├── Mono.Security.dll ├── Mono.Security.pdb ├── mscorlib.dll ├── mscorlib.pdb ├── RedistList │ └── FrameworkList.xml ├── System.ComponentModel.Composition.dll ├── System.ComponentModel.Composition.pdb ├── System.ComponentModel.DataAnnotations.dll ├── System.ComponentModel.DataAnnotations.pdb ├── System.Core.dll ├── System.Core.pdb ├── System.Data.dll ├── System.Data.pdb ├── System.Data.Services.Client.dll ├── System.Data.Services.Client.pdb ├── System.dll ├── System.IdentityModel.dll ├── System.IdentityModel.pdb ├── System.IO.Compression.dll ├── System.IO.Compression.FileSystem.dll ├── System.IO.Compression.FileSystem.pdb ├── System.IO.Compression.pdb ├── System.Json.dll ├── System.Json.pdb ├── System.Net.dll ├── System.Net.Http.dll ├── System.Net.Http.pdb ├── System.Net.Http.WinHttpHandler.dll ├── System.Net.Http.WinHttpHandler.pdb ├── System.Net.pdb ├── System.Numerics.dll ├── System.Numerics.pdb ├── System.Numerics.Vectors.dll ├── System.Numerics.Vectors.pdb ├── System.pdb ├── System.Reflection.Context.dll ├── System.Reflection.Context.pdb ├── System.Runtime.Serialization.dll ├── System.Runtime.Serialization.pdb ├── System.Security.dll ├── System.Security.pdb ├── System.ServiceModel.dll ├── System.ServiceModel.Internals.dll ├── System.ServiceModel.Internals.pdb ├── System.ServiceModel.pdb ├── System.ServiceModel.Web.dll ├── System.ServiceModel.Web.pdb ├── System.Transactions.dll ├── System.Transactions.pdb ├── System.Web.Services.dll ├── System.Web.Services.pdb ├── System.Windows.dll ├── System.Xml.dll ├── System.Xml.Linq.dll ├── System.Xml.Linq.pdb ├── System.Xml.pdb └── System.Xml.Serialization.dll
32 directories, 341 files
What directory are you running this from?
I have 141 directories, 1122 files with the xamarin-android/xamarin.android-oss_8.2.99.35.orig.tar.bz2 extracted.
Right from the root of the extracted file. Well, something misterious going on in here ;)
Could you try extracting it with tar xf ./xamarin.android-oss_8.2.99.35.orig.tar.bz2? That's how I'm doing it.
Yes I am using tar from the console. So no difference there. What is the file size you have?
498M compressed, 1.7G uncompressed
My bad, I was using the wrong file. Now I can copy also the tools. I redid the whole from scratch.
However, msbuild still cannot build:

Any other steps missing?
Hm, what msbuild version are you using?
can you check Rider settings?
I'm using MSBuild 15.3 from the AUR
Mmmmm over here:
Microsoft (R) Build Engine version 15.4.0.0 ( Wed Nov 29 14:56:11 UTC 2017) for Mono
Hmm, could you possibly try building with /verbosity:d on the command line? (Please paste the output to https://gist.github.com)
Also, what project are you building? Could you please try with this project: https://github.com/xamarin/xamarin-android/tree/master/samples/HelloWorld
and be sure to include the csproj patches in the instructions.
Same result. Seems msbuild cannot find the targets.
(Please paste the output to https://gist.github.com) We can see the detailed error that way.
Use /verbosity:d
The log says this: log.txt
Please try with this project: https://github.com/xamarin/xamarin-android/tree/master/samples/HelloWorld
That is where I tested it.
I keep receiving this error:

I believe the problem might be that I am using Ubuntu and something in the path of mono files is different.
It is strange... the error says MonoAndroid,Version=v1.0 but the project specifies <TargetFrameworkVersion>v7.1</TargetFrameworkVersion>
The reference assemblies not found can be solved by setting the target framework root path. If you put the framework files in xbuild-frameworks as described, MSBuild will be able to find the frameworks.
Yes the files are there as described. Still that error poping up. Question is, why would the Version of MonoDroid that the error complains be different than the one set in the project? Weird. Rider does not provides any help there etiher.
Seems like the ".orig.tar.bz2" file doesn't exist anymore (probably was renamed). I recently used an install script that download the .deb file instead, but it doesn't contain all the binaries, like xabuild, it's very odd