Recent

Author Topic: Ubuntu 16.04 problems: Obj inspector, debugger, ..  (Read 450 times)

stephanweber

  • New member
  • *
  • Posts: 11
Ubuntu 16.04 problems: Obj inspector, debugger, ..
« 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

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #1 on: March 14, 2019, 07:52:56 pm »
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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5162
    • wiki
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #2 on: March 14, 2019, 08:05:59 pm »
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

john horst

  • New member
  • *
  • Posts: 17
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #3 on: March 14, 2019, 11:50:59 pm »
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

dbannon

  • Hero Member
  • *****
  • Posts: 516
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #4 on: March 15, 2019, 02:03:45 am »
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
Lazarus 1.8, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

stephanweber

  • New member
  • *
  • Posts: 11
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #5 on: March 15, 2019, 04:31:10 pm »
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

lucamar

  • Hero Member
  • *****
  • Posts: 1055
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #6 on: March 15, 2019, 05:32:11 pm »
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
« Last Edit: March 15, 2019, 05:34:46 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/FPC 3.0.4 on:
(K)Ubuntu 12..16, Windows XP SP3 (Home/Prof.) and various DOS incarnations.

dbannon

  • Hero Member
  • *****
  • Posts: 516
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #7 on: March 15, 2019, 10:00:58 pm »
Quote
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
Lazarus 1.8, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

stephanweber

  • New member
  • *
  • Posts: 11
Ubuntu 16.04 problems: starter for own programs?
« Reply #8 on: March 16, 2019, 04:01:13 pm »
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

john horst

  • New member
  • *
  • Posts: 17
Re: Ubuntu 16.04 problems: Obj inspector, debugger, ..
« Reply #9 on: March 16, 2019, 07:30:01 pm »
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