|
|
Re: Installing Eclipse C++ IDE [message #1811342 is a reply to message #1811215] |
Sat, 31 August 2019 16:20 |
James Doohan Messages: 10 Registered: August 2019 |
Junior Member |
|
|
Thank you. I have tried the direct link you gave me above. I have unpacked the download package ls
to a directory with user privileges (and clicked on the executable to run it but unfortunately it crashes.
These are the steps:
- select the default workspace directory and click 'Lanuch'. This ,brings up the IDE.
- select 'Create a new C/C++ project
- select Arduino C++ sketch, click 'Next'
- give the project a name, click 'Finish'
A dialogue pops up with the title 'Multiple Problems have ocurred'. It lists two:
Unhandled event loop exception
Unhandled event loop exception
Unfortunately I can't copy the information under Show Error Log. Neither can I expand the box to show all of it or scroll down. I can't drag the top of the box upwards to expand it ether. I can only say at this point that the error relates to Plug-in org-eclipse.ui. There is more as I can see the top half of the next line in the log, but I can't scroll further down to view it - and I am using a pretty large monitor.
If I click Ok, the first time, the dialog just disappears momentarily and then comes back. The second time, the application crashes.
I appreciate that this is a freely available open source application, but I have already seen enough to make me rather concerned. Since it has a fatal problem right at launch so that I can't even get to test it. I was even more concerned to discover that if I ran it from the terminal with sudo ./eclipse then it would seem to run fine. I definitely do not want to run the application with system privileges. I am hoping that there is a simple solution that will allow me to run Eclipse as user?
I am guessing that the developers perhaps test exclusively on Ubuntu Linux when testing for the Linux platform. Linux Mint is Ubuntu under the hood, and most Ubuntu packages run without problems on Mint. However, there are differences and I am using the Cinnamon desktop, not Gnome, so perhaps there is some sort of unforeseen problem. I am willing to help and debug the issue if someone is willing to guide me and give me some idea where to look.
[Updated on: Sat, 31 August 2019 16:29] Report message to a moderator
|
|
|
|
|
|
Re: Installing Eclipse C++ IDE [message #1814058 is a reply to message #1814047] |
Mon, 02 September 2019 12:52 |
James Doohan Messages: 10 Registered: August 2019 |
Junior Member |
|
|
Ed, thanks I had a look at that thread. It might have been helpful on the part of the Eclipse project to have provided some information on the dependencies required. I can find absolutely nothing on the website, and although I do see some information, predominantly about Java in the readme, there seems to be no mention of GTK anywhere. The thread seems to suggest that it is possible to run Eclipse on GTK2.0 or GTK3.0. GTK3 seems to be composed of a lot of different modules and I'm not sure really what is required.
Here is a list of GTK3 "stuff" on my Linux system:
$ dpkg -l |grep libgtk-3
ii libgtk-3-0:amd64 3.22.30-1ubuntu4 amd64 GTK+ graphical user interface library
ii libgtk-3-bin 3.22.30-1ubuntu4 amd64 programs for the GTK+ graphical user interface library
ii libgtk-3-common 3.22.30-1ubuntu4 all common files for the GTK+ graphical user interface library
ii libgtk-3-dev:amd64 3.22.30-1ubuntu4 amd64 development files for the GTK+ library
Here is the Java version information:
$ java --version
openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
There was some discussion in the Readme about Java 9, but I presume 11 should be fine?
I'm trying to run Eclipse locally on the desktop so the SSH information on the thread should not even come into it. The machine I have has decent specs, 500Gb SSD + 1Tb SSD, 8Gb RAM, i7 processor, NVIDIA graphics. Its a second generation processor so a bit old by todays standards, but still very adequate and usually does everything I throw at it without any lag.
I tried forcing GTK3 as shown here:
https://coffeeorientedprogramming.wordpress.com/2014/10/27/how-to-tell-if-you-are-running-eclipse-on-gtk2-or-on-gtk3/
i.e.,
export SWT_GTK3=0
./eclipse
Sadly I got exactly the same problem.
Its a bit disheartening not to even be able to get "off the ground" so to speak.
UPDATE: I have test VM running Mint 19. It was running 19.1 so I upgraded it to 19.2 and tried installing Eclipse using the installer from their website on that VM. The good news is that the installer did run and I was able to install Eclipse on the VM. It seems to launch just fine so at least I can now have a look at it. Evidently then, it will run on Linux Mint 19.2 although being on a VM it will run somewhat slower, but curious that it will not run on the host machine.
UPDATE2: I have found a solution. I tried the installer again, but this time launching it from a terminal. There was a message relating to the setting of the GTK_IM_MODULE environment variable. It was set to GTK_IM_MODULE=xim, and the message was informing me that this is not supported and that it should changed it to GTK_IM_MODULE=ibus. I changed it using export 'GTK_IM_MODULE=ibus' and ran the installer again and this time it worked! Ditto for the eclipse launcher.
Upon further investigation on the VM this variable is not set at all. I have no idea what effect this change might have on other installed applications so I made a simple wrapper shell script and named it eclipse.sh like this:
#!/bin/sh
export GTK_IM_MODULE=ibus
~/bin/eclipse/cpp-2019-062/eclipse/eclipse
This first sets the variable to the value that is required to run Eclipse and then launches Eclipse. I can launch Eclipse using the script and it now starts and runs fine. However, for the life of me I can't find where to change this variable to test un-setting it or to make the change permanent. Its not in ~/.profile, ~/.bashrc or /etc/profile. Anyway, at least I have a workaround.
[Updated on: Mon, 02 September 2019 16:25] Report message to a moderator
|
|
|
Re: Installing Eclipse C++ IDE [message #1814069 is a reply to message #1814058] |
Mon, 02 September 2019 20:20 |
James Doohan Messages: 10 Registered: August 2019 |
Junior Member |
|
|
Not sure that I can use this for building Arduino project after all. I seem to be struggling. To be fair I have only had maybe 30 minutes to look around it, and every new application takes a bit of time to get familiar with, but my overwhelming impression is one of confusion. It is far more complex product so I didn't expect it to be as simple and straightforward as the Arduino IDE, but I didn't expect it to be quite so unintuitive. I did find an online video via the Arduino | Instruction videos menu, but unfortunately this didn't really answer any of my questions about selecting boards and uploading sketches. I was initially perplexed by the fact that there is no 'Open Project' option until I eventually realised that the opening "Welcome" dialogue could simply be closed and the IDE environment was hiding behind it! I installed the Sloeber Arduino plugin and imported an Arduino project which compiles cleanly in both Arduino IDE (with highest the warning level) and QT, but Eclipse shows 69 errors! Incidentally regarding that plugin, which version should one install? In another example of confusion, there are two versions with same description, version number but significantly different file sizes. Although I can select a group of boards by version number via Arduino | Preferences | Platforms and Boards, I see no options to build or deploy to a specific board, e.g. Uno or Mega. On top of that, Eclipse does not recognize my imported project as an Arduino project despite the .ino extension of the main project file! Now which file does the IDE recognize as the "main" project file? I couldn't find any means to determine that. Maybe the problem is the included .h and .cpp library files. Managing an expanding project was the reason for my looking for a more developed IDE and if file inclusions is the issue, then that would preclude my being able to use it until the issue is resolved.
There do seem to be some useful features like the list of class objects and project files and I am sure a lot of work went into development. Perhaps Eclipse is better at managing Java and C++ projects and perhaps the Sloeber plugin is at an early development stage. Equally, perhaps I still have a lot to learn about the IDE, but my overall impression of the IDE is one of confusion and lack of intuitiveness that I suspect will add up to a rather steep learning curve. On the plus side it is available free of charge and continues to be developed, so I am sure this will improve over time. I may persevere a bit longer, but I regret to say that this is not looking very promising and I may have to use something else in the meantime and wait for further developments.
Thank you to those who provided some feedback to my request.
[Updated on: Mon, 02 September 2019 20:50] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09122 seconds