Lazarus
Programming => Operating Systems => Linux => Topic started by: stephanweber on March 14, 2019, 07:28:21 pm
-
Hi Linux specialists,
I want to move to Linux and have now a laptop with Ubuntu 8-). In Lazarus IDE I can work basically, but e.g. the Object Inspector is never coming to foreground which is painful.
Also I wonder if there is a source code debugger? I see only an assembler window when debugging. And setting a break point has no impact.
3rd issue: Now I want to install my own newly compiled program. I can start it from terminal, but how to have it in the list of all the other programs. I tried also simply making a desktop link, but even this does not work, nothing happens on double-clicking this.
Any help or link is highly welcomed.
Thanks, and Bye Stephan
-
If you are moving now to a Linux LTS, why don't you move to the current 18.04 LTS ?
16.04 is now already over three years old.
-
With regards to the debugger:
Make sure you have the debugger and your project set up correctly: http://wiki.lazarus.freepascal.org/Debugger_Setup
Best to use
- "dwarf with sets"
- NO external debug info
-
To add a launcher for your app, create a file in ~/.local/share/applications/ called whatever_is_clever.desktop inside it something like
[Desktop Entry]
Version=1.0
Type=Application
Name=Application Name
Icon=MyIcon
Exec=/path/to/application
NoDisplay=false
Categories=Menu Category;
StartupNotify=false
Terminal=false
-
Stephan, while above comments are very valid, you do appear to have a badely messed up install and life will be a great deal happier for you if you fix the underlying problems rather than 'patching' what you have.
I'd like to understand how your Lazarus install is so messed up ? Maybe back when 16.04 was a regarded as a cool thing, the default, repo provided an install was like that ? Or have you manually installed it yourself and, perhaps made a few mistakes ? I really don't recommend you use the default, Ubuntu repo, install of Lazarus on even 18.04, it will get you an out of date version too.
As Marcov mentioned, 16.04 is already pretty old. A new install of, eg 18.04 would be heaps better, supported for longer and when you ask questions on this forum, people wont say "16.04 ? why ?". In my experience, 18.04 places no extra load on your hardware, if thats a concern, I suggest a light version, I prefer to use Ubuntu Mate even on quite powerful hardware.
So, just a suggestion, maybe install some flavour of 18.04 and then have a look at http://wiki.freepascal.org/Installing_Lazarus_on_Linux
Davo
-
THANKS You all helped me a lot :D!
Object Inspector works now fine, although I made no changes.
The debug hints are completely perfect!
I worked on RH6.0 with Lazarus 1.0, and it was completely perfect (only log axis in charts do not work). However, if you compile on old Linux, there is a good chance that the compiled programs work on newer Linux too, but NOT vice versa.
Is it a big effort to switch to newest Ubuntu? Would it really give great improvements (my laptop is not that powerful)? Win10 and M$ Office is horrible, so many things do not work anymore or need many more clicks.
Bye Stephan
-
Is it a big effort to switch to newest Ubuntu? Would it really give great improvements (my laptop is not that powerful)?
This machine (a Toshiba laptop*) started up with Ubuntu 6.04 and it's been undergoing updates up to Ubuntu 12.04. It is worth the effort.
Just one hint: test first by trying to load with a "live" CD/DVD of the distribution version you'll update to! There was quite a sudden break in both machine capabilities and common distros' requirements around 2010 (plus/minus 2 years) and some Linux distros/versions will not work well on old hardware.
* Pentium 4 - 512 MiB - ATI Radeon 7000 AGP
-
Is it a big effort to switch to newest Ubuntu? Would it really give great improvements (my laptop is not that powerful)? Win10 and M$ Office is horrible, so many things do not work anymore or need many more clicks.
When traveling overseas, I use Ubuntu Mate on a 2012 netbook, an tiny 32bit Atom powered laptop, it has a Gig of ram and is quite capable for development work. I had Windows 7 on it originally but was so slow that it was unusable.
I suspect your Ubuntu 16.04 is the last of the Unity based Ubuntus, Canonical (quite rightly) abandoned Unity so any upgrade path will be a new learning experience I'm afraid. Within each Ubuntu release there firstly the 'mainstream' Ubuntu, its usually dependent to some extent on reasonably current hardware. But there is also the Mate, xfce, Budgie and particularly LUbuntu that are are much less demanding on your hardware. So, I believe you are better of with a current, light flavour than an older 'heavy' flavour.
But in either case, get your Lazarus directly, not via the Ubuntu's repository.
Davo
-
Hi John, I followed your hints, but my program "mc" is started, but dying before going to screen.
I wonder:
1. mc is also another program, so that might be a conflict. However, then I should see at least the other mc program?
2. Is there another method then such file creation? Can I e.g. simply create a link to desktop. Having an icon on desktop would be good enough as 1st start for me.
Bye Stephan
-
Post your [Desktop Entry]
Yes, it's the same file just on the desktop, only difference is, it won't show in the Dash. Make it executable on the Desktop. I don't know if Names can conflict, the file name it self should be different with a different exec path. MC? Midnight Commander? I don't think that would show in the Dash anyway.
https://askubuntu.com/questions/854373/how-to-create-a-desktop-shortcut (https://askubuntu.com/questions/854373/how-to-create-a-desktop-shortcut)
-
Hi John,
thanks! Now I managed to create a desktop icon :D. However, having also an entry in dash would be nice too. How is this possible?
Bye Stephan