kuro68k / kibom

Kicad BOM generation plugin
GNU General Public License v3.0
8 stars 2 forks source link

Problems building with Mono #1

Open Gasman2014 opened 7 years ago

Gasman2014 commented 7 years ago

Am having some problems building this. Get the following errors (even after running Update NuGet packages in Xamarin Studio)

    Output.cs(6,7): error CS0246: The type or namespace name `MigraDoc' could not be found. Are you missing an assembly reference?
    Output.cs(7,7): error CS0246: The type or namespace name `MigraDoc' could not be found. Are you missing an assembly reference?
    Output.cs(8,7): error CS0246: The type or namespace name `MigraDoc' could not be found. Are you missing an assembly reference?
    Output.cs(9,7): error CS0246: The type or namespace name `MigraDoc' could not be found. Are you missing an assembly reference?
    Output.cs(10,7): error CS0246: The type or namespace name `PdfSharp' could not be found. Are you missing an assembly reference?
    Output.cs(174,35): error CS0246: The type or namespace name `Section' could not be found. Are you missing an assembly reference?
    Output.cs(213,10): error CS0246: The type or namespace name `Table' could not be found. Are you missing an assembly reference?

Any ideas?

kuro68k commented 7 years ago

Okay, so have you got MigraDoc and PdfSharp installed via nuget? Sounds like you have. What OS are you on?

You can download MigraDoc and PdfSharp as source and build them, but on Windows I didn't have to do that.

Gasman2014 commented 7 years ago

Using OS X and Xamarin Studio.

I updated PDFSharp and PDFsharp-MigraDoc-GDI via Nuget and have made some progress but now getting an error with ‘pdfFontEmbedding’

https://www.dropbox.com/s/qhtud6m6ewdc913/Screenshot%202016-11-23%2008.58.11.png?dl=0 https://www.dropbox.com/s/qhtud6m6ewdc913/Screenshot%202016-11-23%2008.58.11.png?dl=0

BW

John

On 23 Nov 2016, at 08:55, kuro68k notifications@github.com wrote:

Okay, so have you got MigraDoc and PdfSharp installed via nuget? Sounds like you have. What OS are you on?

You can download MigraDoc and PdfSharp as source and build them, but on Windows I didn't have to do that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuro68k/kibom/issues/1#issuecomment-262460746, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAyuatlcjOmjoOR-2Usxec2s-_PGSMhks5rA_9sgaJpZM4K6EjY.

kuro68k commented 7 years ago

http://forum.pdfsharp.net/viewtopic.php?f=4&t=1206

Right at the bottom someone talks about fixing font issues on Linux, maybe some help... The code uses the default font so it's likely an issue with PdfSharp.

Gasman2014 commented 7 years ago

Complies if I explicitly changed pdfFontEmbedding.Always to PdfSharp.Pdf.PdfFontEmbedding.Always

Now to get it to run...

kuro68k commented 7 years ago

Thanks, that minor change works fine on Windows/.NET too.