Recent

Author Topic: "Unable to create new method" ... "StdCtrls not found"  (Read 2578 times)

ArtLogi

  • Full Member
  • ***
  • Posts: 194
"Unable to create new method" ... "StdCtrls not found"
« on: August 18, 2023, 09:32:23 pm »
Hi I'm now in deep issues of the installation of FPC and Lazarus on my Linux Mate:

Code: Text  [Select][+][-]
  1.  
  2. No LSB modules are available.
  3. Distributor ID: Ubuntu
  4. Description:    Ubuntu 22.04.2 LTS
  5. Release:        22.04
  6. Codename:       jammy
  7.  

Code: Text  [Select][+][-]
  1. Lazarus 2.2.0+dfsg1-5ubuntu1 (rev Debian package 2.2.0+dfsg1-5ubuntu1) FPC 3.2.2 x86_64-linux-gtk2

UPDATE: Removed everything FPC+LAZ related with Synapse package manager, followed the download links to sourceforge to get right ones for my CPU+OS (happened to be the same) and installation order from: https://forum.lazarus.freepascal.org/index.php/topic,62770.0.html  The LAZ v2.2.6 from sourceforge seems to resolve the issue (on my setup, with quick test)..

I'm really noob on both Linux and on Lazarus (working so rarely with Lazarus or any other general programming language that I always start from scratch). Need some advices.

Symptoms: Ie. Starting a new project without any additional installations on Lazarus or FPC, no custom libraries or anything, In form placing a few objects to form, compiling a few times adding something else and suddenly this starts to give errors of missing _standard_ components.

This issue corrupts the projects permanently rebooting machine or projects doesn't solve the issue..  Tried to do something on source editor, but got it more haywired :o

Help, what should I do to fix this.

I can also relate this topic (while I wouldn't call this random issue.. Since I can reproduce it
https://forum.lazarus.freepascal.org/index.php/topic,64237.0.html

Edit. REMOVED the intial screenshot.. It was from few weeks ago with some "tweaking" of code after the initial error. Next few posts have steps of creating issue from fresh project. Renamed the topic.
« Last Edit: August 18, 2023, 11:53:30 pm by ArtLogi »
While Record is a drawer and method is a clerk, when both are combined to same space it forms an concept of office, which is alias for a great suffering.

ArtLogi

  • Full Member
  • ***
  • Posts: 194
This was the first "new thing" I haven't seen on past with Linux nor Win versions of Lazarus. Attachment.

I do select the last "Enable Dwarf 2 with sets"

Which then results with good compilation for run.
« Last Edit: August 18, 2023, 09:46:50 pm by ArtLogi »
While Record is a drawer and method is a clerk, when both are combined to same space it forms an concept of office, which is alias for a great suffering.

ArtLogi

  • Full Member
  • ***
  • Posts: 194
Then adding a TLabel object on form editor. Run -> No issues.

Then double click TButton creates error "Unable to create new method" ... "StdCtrls not found"
See attachment.

Unfortunately my signature proves itself always correct.  :
While Record is a drawer and method is a clerk, when both are combined to same space it forms an concept of office, which is alias for a great suffering.

ArtLogi

  • Full Member
  • ***
  • Posts: 194
Raw console in/out, after pressing OK
While Record is a drawer and method is a clerk, when both are combined to same space it forms an concept of office, which is alias for a great suffering.

Dzandaa

  • Sr. Member
  • ****
  • Posts: 360
  • From C# to Lazarus
Re: "Unable to create new method" ... "StdCtrls not found"
« Reply #4 on: August 22, 2023, 05:54:06 pm »
Hi,

I use Linux Mint Cinnamon with Version 2.2.4 and FPC Version 3.2.2

For debugging, I use Dwarf3 (beta) (-gw") without problem.

B->
Regards,
Dzandaa

 

TinyPortal © 2005-2018