Comment 0 for bug 1523739

Revision history for this message
hcorion (zionnimchuk) wrote :

I was trying to compile the pinta source code from the git repo and I failed to make pinta. I was unfamiliar with mono, but I know how to search the web. I was able to come to the conclusion that it had to do with Mono.Unix (for the scripts that uncluded the using Mono.Unix; line) which is found in the Mono.Posix dll. I found out that if I change a line in all the .csproj files that include Mono.Posix, I was able to fix it.
Here's how:
1. Go to a .csproj file that uses Mono.Posix (for example Pinta.Core/Pinta.Core.csproj)
2. find the line that says something like this:
<Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL" />
    <Reference Include="System" />
3. And change Version=2.0.0.0 to Version=4.0.0.0
4. Save the file and move onto the next .csproj file.

Why is this like that?
If you look at the top of the .csproj file it mentions that it is using ToolsVersion="4.0", which I'm assuming is mono version 4.0, however the .csproj is trying to use the old 2.0 version of the Mono.Posix.dll, which doesn't exist in the 4.0 (or 4.5) directory of mono.

Unfortunately, I was still unable to install Pinta. during the sudo make install section I got more errors. It was complaining about how MakeDir was not a registered program, or something like that. I was able to fix that by changing ToolsVersion="3.5" to ToolsVersion="4.0" at the start of the Pinta.Install.Proj file.
System that produced the errors:
x86_64 Arch Linux Installation running KDE and the very latest updates.
mono 4.2.1.102-1 (https://www.archlinux.org/packages/extra/x86_64/mono/)
mono-addins 1.1-1 (https://www.archlinux.org/packages/extra/x86_64/mono-addins/)

I was also able to find two other people on Ubuntu with the same problem as mine:
https://groups.google.com/forum/#!searchin/pinta/compile/pinta/vDZQBRkn2SM/AznD17zOWmQJ
https://groups.google.com/forum/#!topic/pinta/JkYDwyZ0qZ8