mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.85k stars 1.02k forks source link

monodevelop not working on RPi 4 #9477

Open carlpi1 opened 4 years ago

carlpi1 commented 4 years ago

monodeveop can't find files in msbuild Any answers?

kbaykar commented 4 years ago

In my case, even I can't see and find "monodevelop" file on my RPi4, although I followed all the instructions from MonoDevelop's Download page. The last instruction is "sudo apt install mono-devel". After running this, there is no "monodevelop" file! Am I missing something? What am I doing wrong?

carlpi1 commented 4 years ago

This is the error I'm getting, the file is actually in a folder called /2952_1/Roslyn. What can I do to fix this issue? The MonoDevelop version is 7.6 (7.6 build 711). Running RPi4 Buster

/home/pi/.cache/MonoDevelop/7.0/MSBuild/2952_1/Microsoft.CSharp.CurrentVersion.targets(5,5): Error MSB4019: The imported project "/home/pi/.cache/MonoDevelop/7.0/MSBuild/2952_1//Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. (MSB4019) (ModelExporterInterpreter)

carlpi1 commented 4 years ago

kbaykar, Try this: sudo apt install apt-transport-https dirmngr gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/debian stable-raspbianbuster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update

Step 2: sudo apt-get install mono-devel sudo apt-get install mono-complete sudo apt-get install monodevelop

carlpi1 commented 4 years ago

Are there any MonoDevelop experts in the house? Please Help

kbaykar commented 4 years ago

Carl, I tried the instructions as you suggested. No luck! In fact, I tried the same instructions before, then that is why I am here.

I gave a thought, I will share what I found. This is the download page for "mono": https://www.mono-project.com/download/stable/#download-lin-raspbian On this page, we can install "mono" for Raspian 10 which is Buster.

And the download page for "monodevelop": https://www.monodevelop.com/download/#fndtn-download-lin-raspbian On this page, we can install "monodevelop" for Raspian 9 which is Stretch.

So, the conclusion is that, there is no "monodevelop" for Raspian 10 (Buster) at all !!!

One another finding is on this page: https://www.raspberrypi.org/forums/viewtopic.php?f=34&t=254267&p=1552964&hilit=monodevelop#p1552964

It says that "there is no monodevelop after Stretch because of the following bug": -- Bug #790209: monodevelop: depends on libwebkitgtk-1.0-0 which is deprecated --

There is a link at the bottom of this page, which takes you to Debian web site: https://tracker.debian.org/news/856789/monodevelop-removed-from-testing/

To me, it means that we should look for the solution on the Debian side. I will try to ask Debian people to fix this bug and build "monodevelop" for Buster. This may be the right way to follow.

carlpi1 commented 4 years ago

Hi kbaykar When I run: sudo apt-get install monodevelop (after all the other stuff) I get an almost working version of the monodevelop IDE I can load a solution but it won't build due to the error I mention above. Let me know if you find out anything new. Thanks, Carl

carlpi1 commented 4 years ago

Hi kbaykar, here is what I have installed:

pi@raspberrypi:~ $ sudo apt-get upgrade monodevelop Reading package lists... Done Building dependency tree
Reading state information... Done monodevelop is already the newest version (7.6.0.711-0xamarin5+raspbian9b1). Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. pi@raspberrypi:~ $

pi@raspberrypi:~ $ sudo apt-get upgrade mono-devel Reading package lists... Done Building dependency tree
Reading state information... Done mono-devel is already the newest version (6.6.0.161-0xamarin7+raspbian10b1). mono-devel set to manually installed. Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. pi@raspberrypi:~ $

pi@raspberrypi:~ $ sudo apt-get upgrade mono-complete Reading package lists... Done Building dependency tree
Reading state information... Done mono-complete is already the newest version (6.6.0.161-0xamarin7+raspbian10b1). Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. pi@raspberrypi:~ $

carlpi1 commented 4 years ago

kbaykar, It looks like I installed the raspbian9 version of monodevelop. This version throws the above error when I try to build.

carlpi1 commented 4 years ago

kbaykar,

This page only offers mono-devel and mono-complete not the IDE. I agree there is no monodevelop IDE for RPi4.

carlpi1 commented 4 years ago

kbaykar,

This page only offers mono-devel and mono-complete not the IDE. I agree there is no monodevelop IDE for RPi4.

https://www.mono-project.com/download/stable/#download-lin-raspbian

carlpi1 commented 4 years ago

monodevelop raspbian not able to build a project #8304

carlpi1 commented 4 years ago

this is where i got monodevelop: https://www.monodevelop.com/download/alpha/#fndtn-download-lin-raspbian

carlpi1 commented 4 years ago

This says latest release is 7.6.9.22 but when I download from here it says 7.6.0.711 is the latest https://www.monodevelop.com/download/beta/#fndtn-download-lin-raspbian

kbaykar commented 4 years ago

Hi Carl,

Thank you for pointing me to issue #8304. I found my direction through there, and managed to install monodevelop which is OK for me.

Versions I managed to install: MonoDevelop : 7.6 Preview (7.6 build 711) Mono : 5.18.1.3 (mono –version komutuyla) GTK+ : 2.24.32 NuGet : 4.3.1.4445

And the instructions to follow:

  1. sudo su

  2. apt install apt-transport-https dirmngr gnupg ca-certificates

  3. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

  4. Inside "/etc/apt/sources.list.d" directory, create "mono-official.list" file, and write the following line: "deb https://download.mono-project.com/repo/debian/ stable-stretch/snapshots/5.18.1.3 main"

  5. apt update

  6. apt install mono-devel

  7. mono –version ( just check the version ! )

  8. apt-get install gtk-sharp2

  9. apt-get install mono-complete

  10. apt-get install monodevelop

Jeprotec commented 4 years ago

I had the same problem with Monodevelop under Raspian (Rasberry3) I believe I can now offer a viable solution: (for Monodevelop, Raspian, Raspberry 3)

It's just a setting that has to be done in Monodevelop before you start a new project:

Search under the settings, create and disable the line "create with MSBuild instead of xbuild".

After that all new projects will be recognized without errors.

For old projects the procedure is similar: but there you should delete the folder ".vs" in the project folder first (better make a backup copy first! ;) ) Start Monodevelop. Check that the settings are as described above. Then open the project in Monodelop. When you open the project, it will be reinitialized and can then be edited and compiled without any problems.

azjnson commented 4 years ago

kbaykar, I followed your instructions from a fresh NOOB reinstall and I can get the sample program to compile but when I try to run it I get the following error. Debugger operation failed.

Did I miss something?

J

azjnson commented 4 years ago

Carl, Did you ever get this working? Having the same issues and can't seem to get this to work.

FifthCloud commented 4 years ago

Hope this thread is not too old but I am having the same issue. From my research looking at https://download.mono-project.com/repo/debian/dists/stable-raspbianbuster/ it says there is a stable release as of 2020-10-08 13:04.

However, every time I try to install it I get the following error message... sudo apt-get install monodevelop Reading package lists... Done Building dependency tree
Reading state information... Done Package monodevelop is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'monodevelop' has no installation candidate

Not really certain as to what I should be checking for next. Does anyone have any suggestions?

kbaykar commented 3 years ago

Hello people,

I have recently installed mono and monodevelop again on Raspberry Pi 4 Buster. Because RPi-4 Rev 1.2 stepped up to Rev 1.4, that is why my OS image for Rev 1.2 didn't boot at Rev 1.4.

I have downloaded the recent "Raspberry Pi OS with desktop (Release date: December 2nd 2020)" image. This image booted on Rev 1.4 RPi-4 board.

And then I just followed the instructions, I gave on 25 Dec 2019 above, and successfully managed to install mono and monodevelop on my RPi-4 board.

This mono and monodevelop I installed, off course is not the latest release of mono and monodevelop. However it works for me, it is ok for me. Better than nothing.

For your information. kbaykar

FifthCloud commented 3 years ago

Then I don't know what I am doing wrong. Today I have reformated and created a fresh installation and still I cannot install.

pi@raspberrypi:~ $ sudo apt-get install monodevelop Reading package lists... Done Building dependency tree
Reading state information... Done Package monodevelop is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'monodevelop' has no installation candidate

Is it because I have chosen Raspberry Pi OS (Other) -> Raspberry Pi OS Full (32-bit)? Within the Raspberry Pi Imager app which OS did you choose?

After a fresh install I went through the instructions and wasn't able to install.

When I run the following command...

pi@raspberrypi:~ $ sudo apt-cache search monodevelop libgtk2-sourceview2-perl - enhanced source code editor widget libicsharpcode-nrefactory-cecil5.0-cil - C# Parsing and Refactoring Library - Cecil back-end libicsharpcode-nrefactory-cil-dev - C# Parsing and Refactoring Library - Development files libicsharpcode-nrefactory-csharp5.0-cil - C# Parsing and Refactoring Library - C# Component libicsharpcode-nrefactory-ikvm5.0-cil - C# Parsing and Refactoring Library - IKVM back-end libicsharpcode-nrefactory-xml5.0-cil - C# Parsing and Refactoring Library - XML libicsharpcode-nrefactory5.0-cil - C# Parsing and Refactoring Library - Core nrefactory-samples - C# Parsing and Refactoring Library - Sample programs monodevelop-nunit - NUnit plugin for MonoDevelop xamarin-gtk-theme - Xamarin gtk+-2.0 theme engine and themes

Seems that Raspberry Pi loads quite a bit of stuff on it that is related to Monodevelop. Should I uninstall these to get it to install?

FifthCloud commented 3 years ago

Went over your step-by-step guide https://github.com/mono/monodevelop/issues/9477#issuecomment-568909205 listed above.

I went to my source list directory. And found this file listed there: mono-official-vs.list

Within that file I found this listed deb https://download.mono-project.com/repo/debian vs-buster main deb https://download.mono-project.com/repo/debian buster main I added this to match what you did above

"deb https://download.mono-project.com/repo/debian/ stable-stretch/snapshots/5.18.1.3 main"

Tried this originally... deb https://download.mono-project.com/repo/debian vs-buster main deb https://download.mono-project.com/repo/debian stable-buster/snapshots/6.10.0 main

Tried to mimic your "snapshot" as you have done above, but I got the following error W: Conflicting distribution: https://download.mono-project.com/repo/debian stable-buster/snapshots/6.10.0 InRelease (expected stable-buster/snapshots/6.10.0 but got buster)

Guess what I am trying to get at is not sure what exactly you're doing to get monodevelop to install when obviously it's not working on mine from a fresh install of Raspberry Pi OS.

FifthCloud commented 3 years ago

@kbaykar ,

Any chance you can see what am I doing incorrectly?

Started from scratch again. Here are the steps that I have taken.

`pi@raspberrypi:~ $ sudo apt install apt-transport-https dirmngr Reading package lists... Done Building dependency tree
Reading state information... Done dirmngr is already the newest version (2.2.12-1+rpi1+deb10u1). The following NEW packages will be installed: apt-transport-https 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 149 kB of archives. After this operation, 156 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Abort. pi@raspberrypi:~ $ sudo apt install apt-transport-https dirmngr Reading package lists... Done Building dependency tree
Reading state information... Done dirmngr is already the newest version (2.2.12-1+rpi1+deb10u1). The following NEW packages will be installed: apt-transport-https 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 149 kB of archives. After this operation, 156 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://mirror.pit.teraswitch.com/raspbian/raspbian buster/main armhf apt-transport-https all 1.8.2.2 [149 kB] Fetched 149 kB in 1s (177 kB/s)
Selecting previously unselected package apt-transport-https. (Reading database ... 98394 files and directories currently installed.) Preparing to unpack .../apt-transport-https_1.8.2.2_all.deb ... Unpacking apt-transport-https (1.8.2.2) ... Setting up apt-transport-https (1.8.2.2) ... pi@raspberrypi:~ $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF Executing: /tmp/apt-key-gpghome.BvYJQx2owl/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF gpg: key A6A19B38D3D831EF: public key "Xamarin Public Jenkins (auto-signing) releng@xamarin.com" imported gpg: Total number processed: 1 gpg: imported: 1 pi@raspberrypi:~ $ echo "deb https://download.mono-project.com/repo/debian vs-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-vs.list deb https://download.mono-project.com/repo/debian vs-buster main pi@raspberrypi:~ $ sudo apt update Get:1 https://download.mono-project.com/repo/debian vs-buster InRelease [5,875 B] Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease Get:4 https://download.mono-project.com/repo/debian vs-buster/main armhf Packages [47.8 kB] Fetched 53.7 kB in 1s (43.2 kB/s) Reading package lists... Done Building dependency tree
Reading state information... Done All packages are up to date. pi@raspberrypi:~ $ sudo apt-get install monodevelop Reading package lists... Done Building dependency tree
Reading state information... Done Package monodevelop is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'monodevelop' has no installation candidate`

grahamsnowdon commented 3 years ago

Did anyone get any joy with this? It would allow my students to have a cheap bit of hardware to get into vb.net development. Some are on free school meals and a Raspberry Pi is a very affordable way for them to start programming.

FifthCloud commented 3 years ago

Did anyone get any joy with this? It would allow my students to have a cheap bit of hardware to get into vb.net development. Some are on free school meals and a Raspberry Pi is a very affordable way for them to start programming.

What I am about to say is what happened when I did this a while ago. Maybe things have changed since then? I don't know.

Here were my thoughts from back then. I kinda did get it to work. What I ended up doing was downloading a very older version of monodevelop. What that means is you cannot update the app. From all the effort to getting this install and working I found it to be so much effort just to get the software installed on the Raspberry Pi and having to use an older version of the software (and being stuck to that version). Barrier of entry to get it to work in my opinion was a tad bit too much.

@grahamsnowdon , this is only a suggestion, but my recommendation would be is to either download VS Code (Microsoft now officially supports Raspberry Pi OS) or use Thonny for python programming (should come preinstalled on a Raspberry PI image).

Source: https://code.visualstudio.com/docs/setup/raspberry-pi

My guess as the reason why you're considering monodevelop is for the creating the UI? Again, a guess on my end, but python offers an extension called PyGame which was how I got myself interested in programming and computer graphics at the same time.

Best of luck what you end up doing.

kbaykar commented 3 years ago

Hi Graham,

Since Raspberry-Pi stepped up from 3 to 4, installing Mono/Monodevelop to Raspberry-Pi wasn't be a straight-forward process. So, you can't install recent version/release Mono/Monodevelop to Raspberry-Pi.

I found my way through the issue #8304. First, I succeded with Raspberry-Pi4 Rev 1.2.

After sometime, Raspberry-Pi4 stepped up to Rev 1.4. Again I tried my instructions, and succeded again in installing Mono/Monodevelop framework. This was at the end of 2019.

You can try to install the most recent release of Mono/Monodevelop. If you can't manage to install the recent version, as an option you can follow my instructions to install an intermediate version of Mono/Monodevelop framework.

It will be not be the recent version, however it works, it works for me, it is OK for me. I am doing my work with C# language, but I think VB will also work OK. If you like, think it as a last resort!

Although my instructions have been given already on my 25 Dec 2019 dated post, I just copied them for your convention below: The instructions to follow:

1. sudo su

2. apt install apt-transport-https dirmngr gnupg ca-certificates

3. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

4. Inside "/etc/apt/sources.list.d" directory, create "mono-official.list" file, and write the following line:
"deb https://download.mono-project.com/repo/debian/ stable-stretch/snapshots/5.18.1.3 main" inside this file.

5. apt update

6. apt install mono-devel

7. mono –version ( just check the version of Mono! )

8. apt-get install gtk-sharp2

9. apt-get install mono-complete

10. apt-get install monodevelop

Good luck.