Skip to content

Instantly share code, notes, and snippets.

@directhex
Created August 25, 2017 20:52
Show Gist options
  • Save directhex/9eca11b9e7a82f550997f92de58c0824 to your computer and use it in GitHub Desktop.
Save directhex/9eca11b9e7a82f550997f92de58c0824 to your computer and use it in GitHub Desktop.
directhex@flame:~/Projects/androidgl$ cat androidgl/GLView1.cs
using System;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.ES11;
using OpenTK.Platform;
using OpenTK.Platform.Android;
using Android.Views;
using Android.Content;
using Android.Util;
namespace androidgl
{
class GLView1 : AndroidGameView
{
public GLView1(Context context) : base(context)
{
// do not set context on render frame as we will be rendering
// on separate thread and thus Android will not set GL context
// behind our back
AutoSetContextOnRenderFrame = false;
// render on separate thread. this gains us
// fluent rendering. be careful to not use GL calls on UI thread.
// OnRenderFrame is called from rendering thread, so do all
// the GL calls there
RenderOnUIThread = false;
}
// This gets called when the drawing surface is ready
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
// Run the render loop
Run();
}
// This method is called everytime the context needs
// to be recreated. Use it to set any egl-specific settings
// prior to context creation
//
// In this particular case, we demonstrate how to set
// the graphics mode and fallback in case the device doesn't
// support the defaults
protected override void CreateFrameBuffer()
{
// the default GraphicsMode that is set consists of (16, 16, 0, 0, 2, false)
try
{
Log.Verbose("GLCube", "Loading with default settings");
// if you don't call this, the context won't be created
base.CreateFrameBuffer();
return;
}
catch (Exception ex)
{
Log.Verbose("GLCube", $"{ex}");
}
// this is a graphics setting that sets everything to the lowest mode possible so
// the device returns a reliable graphics setting.
try
{
Log.Verbose("GLCube", "Loading with custom Android settings (low mode)");
GraphicsMode = new AndroidGraphicsMode(0, 0, 0, 0, 0, false);
// if you don't call this, the context won't be created
base.CreateFrameBuffer();
return;
}
catch (Exception ex)
{
Log.Verbose("GLCube", $"{ex}");
}
throw new Exception("Can't load egl, aborting");
}
// This gets called on each frame render
protected override void OnRenderFrame(FrameEventArgs e)
{
// you only need to call this if you have delegates
// registered that you want to have called
base.OnRenderFrame(e);
GL.MatrixMode(All.Projection);
GL.LoadIdentity();
float aspect = (float)Width / (float)Height;
GL.Ortho(-aspect, aspect, -1.0f, 1.0f, -1.0f, 1.0f);
GL.MatrixMode(All.Modelview);
GL.Rotate(3.0f, 0.0f, 0.0f, 1.0f);
GL.ClearColor(0.5f, 0.5f, 0.5f, 1.0f);
GL.Clear(ClearBufferMask.ColorBufferBit);
GL.VertexPointer(2, All.Float, 0, square_vertices);
GL.EnableClientState(All.VertexArray);
GL.ColorPointer(4, All.UnsignedByte, 0, square_colors);
GL.EnableClientState(All.ColorArray);
GL.DrawArrays(All.TriangleStrip, 0, 4);
SwapBuffers();
}
float[] square_vertices = {
-0.5f, -0.5f,
0.5f, -0.5f,
-0.5f, 0.5f,
0.5f, 0.5f,
};
byte[] square_colors = {
255, 255, 0, 255,
0, 255, 255, 255,
0, 0, 0, 0,
255, 0, 255, 255,
};
}
}
directhex@flame:~/Projects/androidgl$ msbuild /p:AndroidSdkDirectory=/home/directhex/XamarinSDKs/android-sdk-linux /t:SignAndroidPackage /p:Configuration=Release
Microsoft (R) Build Engine version 15.5.0.0 ( Wed Aug 23 15:03:07 UTC 2017) for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 25/08/2017 16:50:26.
Project "/home/directhex/Projects/androidgl/androidgl.sln" on node 1 (SignAndroidPackage target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Project "/home/directhex/Projects/androidgl/androidgl.sln" (1) is building "/home/directhex/Projects/androidgl/androidgl/androidgl.csproj" (2) on node 1 (SignAndroidPackage target(s)).
_CreatePropertiesCache:
Creating directory "obj/Release/".
_SetLatestTargetFrameworkVersion:
Xamarin.Android Supported $(TargetFrameworkVersion)s: (AndroidVersion: ApiLevel=10 OSVersion=2.3 CodeName='Gingerbread' Version=2.3 FrameworkVersion=v2.3 Id=10 Stable=True), (AndroidVersion: ApiLevel=15 OSVersion=4.0.3 CodeName='Ice Cream Sandwich' Version=4.0.3 FrameworkVersion=v4.0.3 Id=15 Stable=True), (AndroidVersion: ApiLevel=16 OSVersion=4.1 CodeName='Jelly Bean' Version=4.1 FrameworkVersion=v4.1 Id=16 Stable=True), (AndroidVersion: ApiLevel=17 OSVersion=4.2 CodeName='Jelly Bean' Version=4.2 FrameworkVersion=v4.2 Id=17 Stable=True), (AndroidVersion: ApiLevel=18 OSVersion=4.3 CodeName='Jelly Bean' Version=4.3 FrameworkVersion=v4.3 Id=18 Stable=True), (AndroidVersion: ApiLevel=19 OSVersion=4.4 CodeName='Kit Kat' Version=4.4 FrameworkVersion=v4.4 Id=19 Stable=True), (AndroidVersion: ApiLevel=20 OSVersion=4.4.87 CodeName='Kit Kat + Wear support' Version=4.4.87 FrameworkVersion=v4.4.87 Id=20 Stable=True), (AndroidVersion: ApiLevel=21 OSVersion=5.0 CodeName='Lollipop' Version=5.0 FrameworkVersion=v5.0 Id=21 Stable=True), (AndroidVersion: ApiLevel=22 OSVersion=5.1 CodeName='Lollipop' Version=5.1 FrameworkVersion=v5.1 Id=22 Stable=True), (AndroidVersion: ApiLevel=23 OSVersion=6.0 CodeName='Marshmallow' Version=6.0 FrameworkVersion=v6.0 Id=23 Stable=True), (AndroidVersion: ApiLevel=24 OSVersion=7.0 CodeName='Nougat' Version=7.0 FrameworkVersion=v7.0 Id=24 Stable=True), (AndroidVersion: ApiLevel=25 OSVersion=7.1 CodeName='Nougat' Version=7.1 FrameworkVersion=v7.1 Id=25 Stable=True), (AndroidVersion: ApiLevel=26 OSVersion=8.0 CodeName='Oreo' Version=8.0 FrameworkVersion=v8.0 Id=26 Stable=True)
Found Android SDK.
Found Java SDK version 1.8.0.
_ValidateAndroidPackageProperties:
PackageName: com.directhexcorp.androidgl
PrepareForBuild:
Creating directory "bin/Release/".
_GenerateAndroidAssetsDir:
Skipping target "_GenerateAndroidAssetsDir" because it has no outputs.
_ComputeAndroidResourcePaths:
Creating directory "obj/Release/res/".
_ResolveMonoAndroidSdks:
MonoAndroid Tools: /usr/lib/xamarin.android/xbuild/Xamarin/Android/
Android Platform API level: 24
TargetFrameworkVersion: v7.0
Android NDK: /
Android SDK: /home/directhex/XamarinSDKs/android-sdk-linux/
Android SDK Build Tools: /home/directhex/XamarinSDKs/android-sdk-linux/build-tools/25.0.1/
Java SDK: /usr/
_SetupApplicationJavaClass:
Application Java class: android.app.Application
_CreateAdditionalResourceCache:
Skipping target "_CreateAdditionalResourceCache" because it has no outputs.
_GenerateAndroidResourceDir:
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/layout".
Copying file from "Resources/layout/Main.axml" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/layout/main.xml".
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/values".
Copying file from "Resources/values/Strings.xml" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/values/strings.xml".
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-hdpi".
Copying file from "Resources/mipmap-hdpi/Icon.png" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-hdpi/icon.png".
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-mdpi".
Copying file from "Resources/mipmap-mdpi/Icon.png" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-mdpi/icon.png".
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xhdpi".
Copying file from "Resources/mipmap-xhdpi/Icon.png" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xhdpi/icon.png".
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xxhdpi".
Copying file from "Resources/mipmap-xxhdpi/Icon.png" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xxhdpi/icon.png".
Creating directory "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xxxhdpi".
Copying file from "Resources/mipmap-xxxhdpi/Icon.png" to "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xxxhdpi/icon.png".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/layout/main.xml".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/values/strings.xml".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-hdpi/icon.png".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-mdpi/icon.png".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xhdpi/icon.png".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xxhdpi/icon.png".
Touching "/home/directhex/Projects/androidgl/androidgl/obj/Release/res/mipmap-xxxhdpi/icon.png".
_DefineBuildTargetAbis:
Build target ABI: armeabi-v7a
_UpdateAndroidResgen:
- Remapping resource: Layout.main -> layout/Main
- Remapping resource: Mipmap.icon -> mipmap/Icon
- Not remapping resource: String.app_name
_CreateAdditionalResourceCache:
Skipping target "_CreateAdditionalResourceCache" because it has no outputs.
_GenerateJavaDesignerForComponent:
Skipping target "_GenerateJavaDesignerForComponent" because it has no inputs.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
/usr/lib/mono/4.5/csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:__XAMARIN_ANDROID_v1_0__;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__;__ANDROID_9__;__ANDROID_10__;__ANDROID_11__;__ANDROID_12__;__ANDROID_13__;__ANDROID_14__;__ANDROID_15__;__ANDROID_16__;__ANDROID_17__;__ANDROID_18__;__ANDROID_19__;__ANDROID_20__;__ANDROID_21__;__ANDROID_22__;__ANDROID_23__;__ANDROID_24__ /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Java.Interop.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v7.0/Mono.Android.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v2.3/OpenTK-1.0.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/Microsoft.Win32.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/Microsoft.Win32.Registry.AccessControl.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/Microsoft.Win32.Registry.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/netstandard.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.AppContext.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.Concurrent.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.NonGeneric.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.Specialized.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.Annotations.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.EventBasedAsync.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.TypeConverter.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Console.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Data.Common.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Data.SqlClient.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Contracts.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Debug.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.FileVersionInfo.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Process.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.StackTrace.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.TextWriterTraceListener.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Tools.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.TraceEvent.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.TraceSource.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Tracing.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Drawing.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Dynamic.Runtime.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Globalization.Calendars.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Globalization.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Globalization.Extensions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.Compression.ZipFile.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.FileSystem.AccessControl.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.FileSystem.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.FileSystem.DriveInfo.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.FileSystem.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.FileSystem.Watcher.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.IsolatedStorage.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.MemoryMappedFiles.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.Pipes.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.UnmanagedMemoryStream.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.Expressions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.Parallel.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.Queryable.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.AuthenticationManager.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Cache.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.HttpListener.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Mail.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.NameResolution.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.NetworkInformation.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Ping.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Requests.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Security.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.ServicePoint.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Sockets.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Utilities.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.WebHeaderCollection.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.WebSockets.Client.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.WebSockets.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ObjectModel.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.DispatchProxy.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Emit.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Emit.ILGeneration.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Emit.Lightweight.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Extensions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.TypeExtensions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Resources.ReaderWriter.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Resources.ResourceManager.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.CompilerServices.VisualC.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Extensions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Handles.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.RuntimeInformation.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.WindowsRuntime.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Loader.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Numerics.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Formatters.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Json.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Xml.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.AccessControl.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Claims.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Algorithms.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Cng.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Csp.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.DeriveBytes.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Encoding.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Encryption.Aes.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Encryption.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Encryption.ECDiffieHellman.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Encryption.ECDsa.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Hashing.Algorithms.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Hashing.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.OpenSsl.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Pkcs.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.ProtectedData.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.RandomNumberGenerator.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.RSA.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Cryptography.X509Certificates.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Principal.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Principal.Windows.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.SecureString.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.Duplex.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.Http.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.NetTcp.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.Primitives.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.Security.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceProcess.ServiceController.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.Encoding.CodePages.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.Encoding.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.Encoding.Extensions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.RegularExpressions.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.AccessControl.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Overlapped.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Tasks.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Tasks.Parallel.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Thread.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.ThreadPool.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Timer.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ValueTuple.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.ReaderWriter.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XDocument.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XmlDocument.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XmlSerializer.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XPath.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XPath.XDocument.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XPath.XmlDocument.dll /reference:/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.Xsl.Primitives.dll /debug+ /debug:portable /optimize+ /out:obj/Release/androidgl.dll /target:library /utf8output MainActivity.cs GLView1.cs Resources/Resource.designer.cs Properties/AssemblyInfo.cs "/tmp/MonoAndroid,Version=v7.1.AssemblyAttributes.cs"
CopyFilesToOutputDirectory:
Copying file from "obj/Release/androidgl.dll" to "bin/Release/androidgl.dll".
androidgl -> /home/directhex/Projects/androidgl/androidgl/bin/Release/androidgl.dll
Copying file from "obj/Release/androidgl.pdb" to "bin/Release/androidgl.pdb".
_CreatePackageWorkspace:
Creating directory "obj/Release/android/assets/".
_CopyConfigFiles:
Skipping target "_CopyConfigFiles" because it has no outputs.
_CopyIntermediateAssemblies:
Creating directory "obj/Release/linksrc".
Copying file from "/home/directhex/Projects/androidgl/androidgl/bin/Release/androidgl.dll" to "obj/Release/linksrc/androidgl.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Java.Interop.dll" to "obj/Release/linksrc/Java.Interop.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v7.0/Mono.Android.dll" to "obj/Release/linksrc/Mono.Android.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll" to "obj/Release/linksrc/mscorlib.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v2.3/OpenTK-1.0.dll" to "obj/Release/linksrc/OpenTK-1.0.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll" to "obj/Release/linksrc/System.Core.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.dll" to "obj/Release/linksrc/System.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll" to "obj/Release/linksrc/System.Xml.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.dll" to "obj/Release/linksrc/System.Runtime.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.ComponentModel.Composition.dll" to "obj/Release/linksrc/System.ComponentModel.Composition.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.dll" to "obj/Release/linksrc/System.Threading.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Debug.dll" to "obj/Release/linksrc/System.Diagnostics.Debug.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.dll" to "obj/Release/linksrc/System.Collections.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.Concurrent.dll" to "obj/Release/linksrc/System.Collections.Concurrent.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.dll" to "obj/Release/linksrc/System.Reflection.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.dll" to "obj/Release/linksrc/System.Linq.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.dll" to "obj/Release/linksrc/System.Runtime.InteropServices.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Extensions.dll" to "obj/Release/linksrc/System.Runtime.Extensions.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Extensions.dll" to "obj/Release/linksrc/System.Reflection.Extensions.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.Net.Http.dll" to "obj/Release/linksrc/System.Net.Http.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.Runtime.Serialization.dll" to "obj/Release/linksrc/System.Runtime.Serialization.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/System.ServiceModel.Internals.dll" to "obj/Release/linksrc/System.ServiceModel.Internals.dll".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll" to "obj/Release/linksrc/Mono.Security.dll".
Touching "obj/Release/linksrc/androidgl.dll".
_ConvertPdbFiles:
Skipping target "_ConvertPdbFiles" because it has no outputs.
_CopyMdbFiles:
Copying file from "bin/Release/androidgl.pdb" to "obj/Release/linksrc/androidgl.pdb".
Copying file from "bin/Release/Mono.Android.pdb" to "obj/Release/linksrc/Mono.Android.pdb".
Copying file from "bin/Release/mscorlib.pdb" to "obj/Release/linksrc/mscorlib.pdb".
Copying file from "bin/Release/OpenTK-1.0.pdb" to "obj/Release/linksrc/OpenTK-1.0.pdb".
Copying file from "bin/Release/System.Core.pdb" to "obj/Release/linksrc/System.Core.pdb".
Copying file from "bin/Release/System.pdb" to "obj/Release/linksrc/System.pdb".
Copying file from "bin/Release/System.Xml.pdb" to "obj/Release/linksrc/System.Xml.pdb".
Copying file from "bin/Release/System.ComponentModel.Composition.pdb" to "obj/Release/linksrc/System.ComponentModel.Composition.pdb".
Copying file from "bin/Release/System.Net.Http.pdb" to "obj/Release/linksrc/System.Net.Http.pdb".
Copying file from "bin/Release/System.Runtime.Serialization.pdb" to "obj/Release/linksrc/System.Runtime.Serialization.pdb".
Copying file from "bin/Release/System.ServiceModel.Internals.pdb" to "obj/Release/linksrc/System.ServiceModel.Internals.pdb".
Copying file from "bin/Release/Mono.Security.pdb" to "obj/Release/linksrc/Mono.Security.pdb".
Touching "obj/Release/linksrc/androidgl.pdb".
Touching "obj/Release/linksrc/Mono.Android.pdb".
Touching "obj/Release/linksrc/mscorlib.pdb".
Touching "obj/Release/linksrc/OpenTK-1.0.pdb".
Touching "obj/Release/linksrc/System.Core.pdb".
Touching "obj/Release/linksrc/System.pdb".
Touching "obj/Release/linksrc/System.Xml.pdb".
Touching "obj/Release/linksrc/System.ComponentModel.Composition.pdb".
Touching "obj/Release/linksrc/System.Net.Http.pdb".
Touching "obj/Release/linksrc/System.Runtime.Serialization.pdb".
Touching "obj/Release/linksrc/System.ServiceModel.Internals.pdb".
Touching "obj/Release/linksrc/Mono.Security.pdb".
_StripEmbeddedLibraries:
Creating "obj/Release/strip.flag" because "AlwaysCreate" was specified.
_LinkAssembliesShrink:
Creating "obj/Release/link.flag" because "AlwaysCreate" was specified.
_AddStaticResources:
Creating directory "obj/Release/android/bin".
Copying file from "/usr/lib/mono/xbuild-frameworks/MonoAndroid/v7.0/mono.android.jar" to "obj/Release/android/bin/mono.android.jar".
Creating "obj/Release/static.flag" because "AlwaysCreate" was specified.
_CreateAdditionalResourceCache:
Skipping target "_CreateAdditionalResourceCache" because it has no outputs.
_CreateBaseApk:
Touching "obj/Release/android/bin/packaged_resources".
_CreateAdditionalResourceCache:
Skipping target "_CreateAdditionalResourceCache" because it has no outputs.
_CompileJava:
/usr/bin/javac -J-Dfile.encoding=UTF8 -d obj/Release/android/bin/classes -classpath /usr/lib/mono/xbuild-frameworks/MonoAndroid/v7.0/mono.android.jar -bootclasspath /home/directhex/XamarinSDKs/android-sdk-linux/platforms/android-24/android.jar -encoding UTF-8 "@/tmp/tmp6d2e3e80.tmp"
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Creating "obj/Release/_javac.stamp" because "AlwaysCreate" was specified.
_CreateAdditionalResourceCache:
Skipping target "_CreateAdditionalResourceCache" because it has no outputs.
_CompileToDalvikWithDx:
Creating directory "obj/Release/proguard".
/usr/bin/java -jar /home/directhex/XamarinSDKs/android-sdk-linux/build-tools/25.0.1/lib/dx.jar --no-strict --dex --output=obj/Release/android/bin obj/Release/android/bin/classes /usr/lib/mono/xbuild-frameworks/MonoAndroid/v7.0/mono.android.jar
Creating "obj/Release/_dex_stamp" because "AlwaysCreate" was specified.
_RemoveRegisterAttribute:
Creating directory "obj/Release/android/assets/shrunk".
Copying file from "obj/Release/android/assets/Java.Interop.dll" to "obj/Release/android/assets/shrunk/Java.Interop.dll".
Copying file from "obj/Release/android/assets/Mono.Android.dll" to "obj/Release/android/assets/shrunk/Mono.Android.dll".
Copying file from "obj/Release/android/assets/mscorlib.dll" to "obj/Release/android/assets/shrunk/mscorlib.dll".
Copying file from "obj/Release/android/assets/OpenTK-1.0.dll" to "obj/Release/android/assets/shrunk/OpenTK-1.0.dll".
Copying file from "obj/Release/android/assets/System.Core.dll" to "obj/Release/android/assets/shrunk/System.Core.dll".
Copying file from "obj/Release/android/assets/System.dll" to "obj/Release/android/assets/shrunk/System.dll".
Copying file from "obj/Release/android/assets/System.Runtime.Serialization.dll" to "obj/Release/android/assets/shrunk/System.Runtime.Serialization.dll".
Creating "obj/Release/android/assets/shrunk/shrunk.flag" because "AlwaysCreate" was specified.
_CopyPackage:
Copying file from "/home/directhex/Projects/androidgl/androidgl/obj/Release/android/bin/com.directhexcorp.androidgl.apk" to "bin/Release/com.directhexcorp.androidgl.apk".
Creating directory "bin/Release/com.directhexcorp.androidgl.apk.mSYM".
"/usr/lib/xamarin.android/xbuild/Xamarin/Android/Linux/mono-symbolicate" store-symbols "bin/Release/com.directhexcorp.androidgl.apk.mSYM" "obj/Release/android/assets"
EXEC : warning : Directory obj/Release/android/assets contains Java.Interop.dll but no debug symbols file was found. [/home/directhex/Projects/androidgl/androidgl/androidgl.csproj]
_ResolveAndroidSigningKey:
Creating "obj/Release/android_debug_keystore.flag" because "AlwaysCreate" was specified.
_Sign:
/usr/bin/keytool -list -alias androiddebugkey -storepass android -keypass android -keystore "/home/directhex/.local/share/Xamarin/Mono for Android/debug.keystore"
/usr/bin/jarsigner -keystore "/home/directhex/.local/share/Xamarin/Mono for Android/debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin/Release//com.directhexcorp.androidgl-Signed-Unaligned.apk /home/directhex/Projects/androidgl/androidgl/obj/Release/android/bin/com.directhexcorp.androidgl.apk androiddebugkey
jar signed.
/usr/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2356,2): warning : No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2047-08-18) or after any future revocation date. [/home/directhex/Projects/androidgl/androidgl/androidgl.csproj]
Signed android package 'bin/Release/com.directhexcorp.androidgl-Signed.apk'
Unaligned android package '/home/directhex/Projects/androidgl/androidgl/bin/Release/com.directhexcorp.androidgl-Signed-Unaligned.apk'
/home/directhex/XamarinSDKs/android-sdk-linux/build-tools/25.0.1/zipalign 4 "/home/directhex/Projects/androidgl/androidgl/bin/Release/com.directhexcorp.androidgl-Signed-Unaligned.apk" "bin/Release//com.directhexcorp.androidgl-Signed.apk"
Deleting file "/home/directhex/Projects/androidgl/androidgl/bin/Release/com.directhexcorp.androidgl-Signed-Unaligned.apk".
Done Building Project "/home/directhex/Projects/androidgl/androidgl/androidgl.csproj" (SignAndroidPackage target(s)).
Done Building Project "/home/directhex/Projects/androidgl/androidgl.sln" (SignAndroidPackage target(s)).
Build succeeded.
"/home/directhex/Projects/androidgl/androidgl.sln" (SignAndroidPackage target) (1) ->
"/home/directhex/Projects/androidgl/androidgl/androidgl.csproj" (SignAndroidPackage target) (2) ->
(_CopyPackage target) ->
EXEC : warning : Directory obj/Release/android/assets contains Java.Interop.dll but no debug symbols file was found. [/home/directhex/Projects/androidgl/androidgl/androidgl.csproj]
"/home/directhex/Projects/androidgl/androidgl.sln" (SignAndroidPackage target) (1) ->
"/home/directhex/Projects/androidgl/androidgl/androidgl.csproj" (SignAndroidPackage target) (2) ->
(_Sign target) ->
/usr/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2356,2): warning : No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2047-08-18) or after any future revocation date. [/home/directhex/Projects/androidgl/androidgl/androidgl.csproj]
2 Warning(s)
0 Error(s)
Time Elapsed 00:00:13.92
directhex@flame:~/Projects/androidgl$ ls -lh androidgl/bin/Release/com.directhexcorp.androidgl-Signed.apk
-rw-r--r-- 1 directhex directhex 7.6M Aug 25 16:50 androidgl/bin/Release/com.directhexcorp.androidgl-Signed.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment