These are chat archives for AvaloniaUI/Avalonia

2nd
Jun 2017
danwalmsley
@danwalmsley
Jun 02 2017 08:30
@kekekeks how do we do the packaging?
can I add a command to my ci to generate the mac package?
Nikita Tsukanov
@kekekeks
Jun 02 2017 08:32
Manually
for now
You can grab zip file with the package and replace Content/MacOS contents with dotnet publish -f netcoreapp2.0 -r osx.10.12-x64 output
And edit Info.plist
So it will point to correct executabl
I'll create tooling for that later
AvaloniaUI/Avalonia#981
Tracked there
Matthijs ter Woord
@mterwoord
Jun 02 2017 11:41
skia is the only drawing backend supported by avalonia, right?
Nikita Tsukanov
@kekekeks
Jun 02 2017 11:43
Skia, Direct2D and Cairo (deprecated)
Matthijs ter Woord
@mterwoord
Jun 02 2017 11:43
still having difficulties getting skia built for the raspberry
Nikita Tsukanov
@kekekeks
Jun 02 2017 11:46
Ask @galvesribeiro
I think he got it working on ARM
Matthijs ter Woord
@mterwoord
Jun 02 2017 11:47
@galvesribeiro I'm trying to get skia built on raspberry (arm+linux)
maybe you could help me out?
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:04
hey
I indeed got it working
but the build was a major hack
I would not suggest anyone to try that :)
I had to tweek multiple gyp files to point to the dependencies I manually built with my toolchain
Nikita Tsukanov
@kekekeks
Jun 02 2017 12:08
Well, RPI runs a regular debian
so dependencies should be already there
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:09
also, there is an if in a gyp that select which OS and you should make sure linux is included so you can skip the ran of yasm
yeah
PI should be easy
my case was a very weird proprietary hardware with a very capped custom distro
so I had to do all on my own
also PI has OpenGL, which makes your life even easier
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:27
from what I raed, the opengl on the pi is still basic..
@galvesribeiro WOuld you mind guiding me through what to do to get things goign on the pi?
at some point i'll be using mender and yocto to build the images, so will need some more thing to do there..
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:29
I don’t have the code anymore with the changes, but what I did was to use the regular build process as described on Skia site, but setting CC and CXX variable to my compilers
from that on, you will start to see the falures
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:29
i did that, plus a bunch of failure-fixing
i ended up with a libskia.a file, which worked using a simple c sample (the draw-a-png one)
using avalonia, i get a flash of a window, and then a segmentation fault
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:30
so I was going to the offending dependency and changing the gyp file to use the proper pre-built dependency
hummm
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:31
so i'm under the impression that my building was ok, but some dependency mismatches/
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:31
maybe
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:31
ie, because of crosscompiling, using worng headers or so
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:31
I was never able to use Avalonia on my device, so I can’t tell you if my build would also work or not
what I had was Skia+SkiaSharp drawing to a framebuffer
that worked flawless
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:34
here's my end game: run my .net core based app on a raspberry or beaglebone
using framebuffer should be ok as well
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:34
I wouldn’t go that way...
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:35
?
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:35
if you have X11, use it
:)
Framebuffer is a PITA
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:35
hmm
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:35
slow as hell
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:35
but then i'm back at my skia problem
Gutemberg Ribeiro
@galvesribeiro
Jun 02 2017 12:35
fancy animations like ones you would expect from Avalonia will never work
Matthijs ter Woord
@mterwoord
Jun 02 2017 12:38
then i have to figure out something regarding my skia building problem...
i asked around on the XamarinComponents gitter chat, but didn't really get any info from there..