Recent

Author Topic: Lazarus absolutely not working under Windows 10  (Read 11400 times)

dseligo

  • Hero Member
  • *****
  • Posts: 1674
Re: Lazarus absolutely not working under Windows 10
« Reply #15 on: August 15, 2021, 07:07:26 pm »
What howardpc said is all OK, but I just want to add couple of things.
When you want to open some other project, you go to menu Project --> Open Project or Open Recent Project. That way you don't have to worry about extensions.
Also, when you opening your project's units and forms, you can use menu Project --> Units (or Forms), or you can use Ctrl + F12 (or Shift + F12 respectively). Your units and forms are already defined in project so you don't have to open them from disk.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus absolutely not working under Windows 10
« Reply #16 on: August 15, 2021, 07:28:52 pm »
I am not sure, what is happening... But lets look at details.

1) Make sure each project is stored in its own folder.

2) In menu: Project > Project options => dialog page: Compiler Options > Path
==> Never make any changes. <==
==> Especially "Other Unit Files" must be empty.

3) Save your project via the menu "project". Do this before you save any units.
Then the IDE should offer you to save any units into the project folder.


About all the files:
lpi => your project (an xml file containing info the IDE needs)
lps => session info. Like where was your file scrolled to.
lpr => pascal code of your project. Maintained by the IDE.
    You can look at it via the "project" menu: "view project source"
pas or pp => your units
lfm => your forms
res => created by the IDE.

You open a project via the "lpi" file.


When you create you 2nd project.
Use menu: project => new project
  Or Project > close project

Do NOT edit the existing project and later "save as".




engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Lazarus absolutely not working under Windows 10
« Reply #17 on: August 15, 2021, 08:10:14 pm »
I did an open recent for junk project 1 and clicked F9 and what ran was junk#2. It seems like it is running the last project,

Obviously you used open recent file instead of open recent project.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8551
Re: Lazarus absolutely not working under Windows 10
« Reply #18 on: August 15, 2021, 08:50:40 pm »
About all the files:

Could I throw in a few extra words here please.

> lpi => your project (an xml file containing info the IDE needs)

Assume this is "Lazarus Project Information". It is THE file that the IDE needs to work out where everything else is.

> lps => session info. Like where was your file scrolled to.

Assume this is "Lazarus Project Session", it contains nothing of permanent significance.

> lpr => pascal code of your project. Maintained by the IDE.

Assume this is "Lazarus Program", it is the main program file which can be edited if you're writing a console mode program but should generally be left to the IDE if you're using forms etc.

> pas or pp => your units

i.e. they start "unit" not "program" and are ultimately used/imported by the main program.

> lfm => your forms

Assume this is "Lazarus Form". In general every .lfm will have a matching .pas (but not necessarily the other way round).

> res => created by the IDE.

Containing icons etc. Leave this to the IDE.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

steveinalabama

  • New Member
  • *
  • Posts: 40
Re: Lazarus absolutely not working under Windows 10
« Reply #19 on: August 15, 2021, 11:34:19 pm »
Thank you all. I have had success creating 2 programs, and going back and forth revising them.

I created brand new folders and put each no program in its own folder. The I used the Project open as described by Dseligo.

But I am back to my original problem....trying to run and modify a program that worked a week ago. It already was in its own folder, but not the project files. I was able to find the .lpi file in another folder but it says EXE file not found.

I tried Project | new  project from file and it does not work...same error message of EXE file not found.
Can anyone help of this?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus absolutely not working under Windows 10
« Reply #20 on: August 16, 2021, 12:17:59 am »
Thank you all. I have had success creating 2 programs, and going back and forth revising them.

I created brand new folders and put each no program in its own folder. The I used the Project open as described by Dseligo.

But I am back to my original problem....trying to run and modify a program that worked a week ago. It already was in its own folder, but not the project files. I was able to find the .lpi file in another folder but it says EXE file not found.

I tried Project | new  project from file and it does not work...same error message of EXE file not found.
Can anyone help of this?

Does it try to compile?
Does it give an error?

If you press run, Lazarus will try to build the exe. Unless you disabled that, but unlikely...
It might be that somehow the files you have, if they were saved to wrong folders, may have bad links....

--------------
Try copying the
lpr
pas
pp
lfm
files into yet another new folder.

Do NOT copy the lpi.

Then open the lpr. (drag and drop to IDE)
Lazarus should ask if you want to create a new project for it.

steveinalabama

  • New Member
  • *
  • Posts: 40
Re: Lazarus absolutely not working under Windows 10
« Reply #21 on: August 16, 2021, 03:40:39 pm »
there were several replies to my message, 2 of which were helpful, but I received a different error.

I posted a reply describing the new error, but the post has disappeared, and the 2 helpful replies have disappeared.
Looks like this website has problems.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus absolutely not working under Windows 10
« Reply #22 on: August 16, 2021, 04:10:19 pm »
I posted a reply describing the new error, but the post has disappeared, and the 2 helpful replies have disappeared.
Looks like this website has problems.

You mean this https://forum.lazarus.freepascal.org/index.php/topic,55770.msg415181.html#msg415181
?

It seems there were 2 threads on the issue, and they got merged together into this thread. (at least from the admin logs).
Downside, they get ordered by time.....

 

TinyPortal © 2005-2018