nkyikyin
(kyikyi)
March 24, 2021, 4:17am
1
Hello everyone,
I want to compile Mission Planner solution without making any changes to the code.
I followed the instructions found in below link:
Building Mission Planner with Visual Studio — Dev documentation (ardupilot.org)
I am using Microsoft Visual Studio Community 2019 Version 16.9.2.
I checkout the MissionPlanner1.3.70 tags.
When I compile, I got the following errors:
Can someone help me?
Thanks in advance.
nkyikyin
(kyikyi)
March 26, 2021, 1:27am
2
Now I managed to compile with no errors. However, when I start running the program, it throws exceptions:
"System.IO.FileLoadException: Could not load file or assembly ‘SkiaSharp.Views.Desktop, Version=1.60.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) "
I have placed binding redirect element in app.config file. However, it still doesn’t work for the ‘SkiaSharp.Views.Desktop’.
Has someone encountered this issue?
Thanks.
Eosbandi
(Andras Schaffer)
March 29, 2021, 7:22am
3
Why do you use 1.3.70 ? That is quite old, I would rather go for the Master branch or the tag Beta. (The skia sharp issue was fixed in them)
nkyikyin
(kyikyi)
March 29, 2021, 7:49am
4
Thanks for the reply. I tried using the lastest one, but it is too slow to build and run and have some errors too.
nkyikyin
(kyikyi)
March 29, 2021, 9:23am
5
Now I tried again 1.3.73. I got these errors although .dlls files are in the folders.
nkyikyin
(kyikyi)
March 29, 2021, 9:57am
7
Yes I did. Now I clean the solution and build rebuild then those errors are gone now.
So now successfully built and run. 1.3.73 tags. However I have one problem. I have designer error in my main designer as below:
Eosbandi
(Andras Schaffer)
March 29, 2021, 10:16am
8
This was fixed in the beta afaik.
Still recommend to move to tag beta, there are tons of fixes.
nkyikyin
(kyikyi)
March 29, 2021, 10:28am
9
Oh I see… I shall try again the master version then. Thank you.
nkyikyin
(kyikyi)
March 29, 2021, 11:41am
10
Hi, now I’m running MP master. The designer is fixed. and the rest looks good too. but only this error for firewareselection.xaml file.
Do you have any idea for this? thanks.
Eosbandi
(Andras Schaffer)
March 29, 2021, 3:28pm
11
Are you try to build a xamarin version (Android ?)
nkyikyin
(kyikyi)
March 30, 2021, 1:03am
12
For my project, I do not need that. I have commented out this [XamlCompilation(XamlCompilationOptions.Compile)] and I do not get any errors. Thanks.
nkyikyin
(kyikyi)
March 30, 2021, 3:55am
13
When I run beta version, I got this error.
Eosbandi
(Andras Schaffer)
March 30, 2021, 12:40pm
14
Did you updated your build machine to the latest Win10 release and fixes ?
nkyikyin
(kyikyi)
March 31, 2021, 1:24am
15
This is my machine’s current status.
framosnt
(framosnt)
February 11, 2022, 10:08pm
16
Have any step-by-step to do compiler Xamarin MP Android ? I am trying, but no sucess.