Recent

Author Topic: Rebuilding Lazarus on Windows 98  (Read 8488 times)

Lacak2

  • Guest
Rebuilding Lazarus on Windows 98
« on: February 18, 2009, 02:57:22 pm »
Hi *,
I have installed fresh copy of Lazarus on Windows98.
Then I added some packages from list ov Available packages.
Then I click "Save and Build IDE"
Compiling of pacakges begins ... ended ok.
Compiling and linking of lazarus begins ... in status window is Linking "..\lazarus.exe" ... Error: Can't create object file: ..\lazarus.exe
(I think because lazarus.exe is just now opened, and linker can not overwrite it)

The same on Windows XP shows: Linking "lazarus.new.exe"
(there is no error on WIndows XP)

So I think, that there is some problem specific to Windows 9x ?

-Laco.

cpalx

  • Hero Member
  • *****
  • Posts: 619
Re: Rebuilding Lazarus on Windows 98
« Reply #1 on: February 18, 2009, 11:56:23 pm »
see the log, or see the last lines are showing before restart the IDE. WE can see better what is wrong

Lacak2

  • Guest
Re: Rebuilding Lazarus on Windows 98
« Reply #2 on: February 19, 2009, 10:21:27 am »
see the log,
where can I find output log ?

or see the last lines are showing before restart the IDE.
IDE does not restart, compiling failed (my guess is, that lazarus.exe is in memory, so can not be overwritten ... see diference comparing to WinXP, where name of new exe is lazarus.new.exe not only lazarus.exe like in Win98), in status window is only :
Error: Can't create object file: ..\lazarus.exe
Before this line are only lines saying, that compilation of packages successed.

-Laco.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rebuilding Lazarus on Windows 98
« Reply #3 on: February 19, 2009, 10:23:23 am »
If you choose Lazarus (debug) from the start menu, then a file called debug.log is created.

Lacak2

  • Guest
Re: Rebuilding Lazarus on Windows 98
« Reply #4 on: February 20, 2009, 01:43:19 pm »
If you choose Lazarus (debug) from the start menu, then a file called debug.log is created.
When I start Lazarus (debug) message box is shown:
"Cannot open file: C:\Windows\...\lazarus\debug.log"
Instead of ... is path to "LocalSettings\Application data", but there are mismashed characters, which contains diacritical marks (in Slovak: "Miestne nastavenia\ˇAšdaje aplikˇAˇcie"), so whole path points to nonexisting directory.
(may be caused by incorrect transaltion of UTF8 to Ansi or something like this).

-Laco.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rebuilding Lazarus on Windows 98
« Reply #5 on: February 20, 2009, 02:07:08 pm »
I fixed a similar error a couple of weeks ago. What Lazarus version do you use?

Lacak2

  • Guest
Re: Rebuilding Lazarus on Windows 98
« Reply #6 on: February 20, 2009, 02:44:29 pm »
I fixed a similar error a couple of weeks ago. What Lazarus version do you use?
Latest stable 0.9.26
As I wrote this error is specific to only Win9x (WinXP and Vista does not have this problem as there is lazarus.new.exe)
I have tried as workaround this:
1. rename original lazarus.exe to lazarus2.exe
2. run lazarus2.exe
3. add package
4. save and rebuild IDE
5. lazarus.exe is sucesfully compiled and linked
6. IDE is restarting
7. after restart, there are some tabs with packages missing (RTTI, sqldb,...) and the new added package is also mising

-Laco.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rebuilding Lazarus on Windows 98
« Reply #7 on: February 20, 2009, 02:46:09 pm »
Maybe because Lazarus cannot find the configuration file?

Can you try a snapshot?

Lacak2

  • Guest
Re: Rebuilding Lazarus on Windows 98
« Reply #8 on: February 20, 2009, 04:03:07 pm »
Can you try a snapshot?
With Lazarus-0.9.26.3-18768-fpc-2.2.2-20090220 is it OK  ;D
(Linking C:\Programy\lazarus\lazarus.new.exe)
But after linking and closing IDE there appears "Cannot rename lazarus.exe to lazarus.old.exe. Access denied".
(may be starting does not wait enought time for flushing "old" lazarus?)
When I run manually startlazarus.exe, renaming is done and all work as expected.
New Lazarus.exe is 96MB (old is 10MB)  :'(

But problem with Lazarus (debug) message box "Cannot open file: C:\Windows\...\lazarus\debug.log" stil exists, but this is not a problem for me at this time.

Thank you very much
-Laco.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rebuilding Lazarus on Windows 98
« Reply #9 on: February 20, 2009, 10:52:42 pm »
New lazarus executable is not stripped.

Lacak2

  • Guest
Re: Rebuilding Lazarus on Windows 98
« Reply #10 on: February 23, 2009, 11:48:02 am »
New lazarus executable is not stripped.
Yes I know, and it is not stripped becasue of provide debug ability by default ?
(original lazarus.exe is stripped)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8141
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Rebuilding Lazarus on Windows 98
« Reply #11 on: February 23, 2009, 12:41:50 pm »
Quote
Yes I know, and it is not stripped becasue of provide debug ability by default ?
(original lazarus.exe is stripped)
Correct, that's why I always provide -Xs in the configure build lazarus dialog (strip sometimes causes the binary to be bigger 1K or so).