Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Installing Lazarus on Windows, my own experiences

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

I booted Windows XP on a mini-laptop. It is practically non-touched since I bought the machine. I installed and used Linux since then. For the first time I downloaded and installed the official Lazarus Windows installer. It goes smootly, SourceForge offers you a Download Now link and the installation is easy like in other Windows programs. I accepted the defaults for everything.

Then I copied my own source under a new C:\SW directory, just like I told my friend to do earlier.
I just created the directories so I must have write access for them, right?

I open my project. There is a stream error about an unknown property TForm1.Anchors because I used the latest delelopment version for making the prog. I choose Continue Loading and it opens without problems. Then I try to run it and get the errors below. I don't have any spaces in paths. I really don't know what is wrong.
Are you people really saying the default installation is OK?

These files are in C:\SW\jorma :
29.07.2010 21:26 7?884 project1.lpi
26.07.2010 15:50 323 project1.lpr
29.07.2010 21:26 791 project1.manifest 29.07.2010 21:26 250 project1.rc
29.07.2010 05:28 3?656 unit1.lfm
29.07.2010 05:28 4?666 unit1.pas

----------------------

Hint: Start of reading config file
c:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg
Hint: End of reading config file c:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.2.4 [2009/10/25] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling project1.lpr
Compiling unit1.pas
unit1.pas(117,54) Hint: Converting the operands to "Int64" before doing the add could prevent overflow errors.
unit1.pas(32,28) Hint: Parameter "Sender" not used unit1.pas(33,33) Hint: Parameter "Sender" not used unit1.pas(34,33) Hint: Parameter "Sender" not used Compiling resource C:\SW\jorma\unit1.lfm
windres: can't open file `TForm1': No such file or directory unit1.pas(176,1) Error: Error while linking
Hint: Start of reading config file
c:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg
Hint: End of reading config file c:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.2.4 [2009/10/25] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling project1.lpr
Compiling unit1.pas
unit1.pas(32,28) Hint: Parameter "Sender" not used unit1.pas(33,33) Hint: Parameter "Sender" not used unit1.pas(34,33) Hint: Parameter "Sender" not used Compiling resource C:\SW\jorma\unit1.lfm
c:\lazarus\fpc\2.2.4\bin\i386-win32\windres.exe: can't open file `TForm1': No such file or directory
unit1.pas(176,1) Error: Error while linking
unit1.pas(176,1) Fatal: There were 1 errors compiling module, stopping -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100729/f1023f8a/attachment.html>

Reply by email

Michael Van Canneyt
to Juha Manninen
Juha Manninen wrote 11 lines
I booted Windows XP on a mini-laptop. It is practically non-touched since I bought the machine. I installed and used Linux since then. For the first time I downloaded and installed the official Lazarus Windows installer. It goes smootly, SourceForge offers you a Download Now link and the installation is easy like in other Windows programs. I accepted the defaults for everything. Then I copied my own source under a new C:\SW directory, just like I told my friend to do earlier. I just created the directories so I must have write access for them, right? I open my project. There is a stream error about an unknown property TForm1.Anchors because I used the latest delelopment version for making the prog. I choose Continue Loading and it opens without problems. Then I try to run it and get the errors below. I don't have any spaces in paths. I really don't know what is wrong. Are you people really saying the default installation is OK?

Yes.

I'm sorry to say, but it is your own fault that it fails.

You should never use the released version of Lazarus to compile a program developed in the latest (SVN) version. That can never work. (the unknown property should already have given you a clue, actually).

One of the reasons is that the streaming system has changed, and this is why you get the error:

Compiling resource C:\SW\jorma\unit1.lfm windres: can't open file `TForm1': No such file or directory

This is where you get an error related to streaming (windres is used to compile resources)

Michael.

Reply by email

Juha Manninen
to Michael Van Canneyt

2010/7/29 Michael Van Canneyt

Show quoted text 18 lines
I'm sorry to say, but it is your own fault that it fails. You should never use the released version of Lazarus to compile a program developed in the latest (SVN) version. That can never work. (the unknown property should already have given you a clue, actually). One of the reasons is that the streaming system has changed, and this is why you get the error: Compiling resource C:\SW\jorma\unit1.lfm > windres: can't open file `TForm1': No such file or directory > This is where you get an error related to streaming (windres is used to compile resources)

Damn yes. I thought it can't make such a big difference.

I tested with a new program and it works. I still don't know why my friend could not compile even a new project. Anyway we will work with binaries now and return to Lazarus installation later, if he is still interested.

Again it looks like the Windows installer works after all. Thanks.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100729/7441f48b/attachment.html>

Reply by email