Sign in Join

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

Mailing lists / lazarus / 2011-08

Migrating from Laz 0.9.30 (fixes_0_9_30) to Laz 0.9.31 (trunk)

32 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Marcos Douglas

What is the best way to migrating from Laz 0.9.30 (fixes_0_9_30) to Laz 0.9.31 (trunk)?

My environment now is:
- WinXP
- FPC 2.4.5 (fixes_2_5)
- Laz 0.9.30 (fixes_0_9_30)
- Paths:
c:\freepascal\compiler\2.4.5 (FPC)
c:\freepascal\ide\laz\0.9.30 (that works)
c:\freepascal\ide\laz\0.9.30-config (--pcp=...
environmentoptions.xml, fpcdefines.xml, compileroptions.xml, etc) c:\freepascal\ide\laz\0.9.31 (trunk... the new Laz) c:\freepascal\ide\laz\0.9.31-config (a copy from 0.9.30-config... but I replaced all 0.9.30 texts to 0.9.31 in all files)

I want to compile the Lazarus on trunk, but I want migrate my packages too.

So,
1. I got the sources
2. compiled the first time... everything ok.
3. close the IDE, copy 0.9.30-config to 0.9.31-config and replaced all 0.9.30 texts to 0.9.31 in all files
4. open IDE without errors.
5. build up + clean all using the main menu
6. IDE compile all files, creates the lazarus.new.exe and restart.
7. ERROR(?) I see the image in attachment.

What happend?
How I can migrate?

Thanks,
Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 30 lines
What is the best way to migrating from Laz 0.9.30 (fixes_0_9_30) to Laz 0.9.31 (trunk)? My environment now is: - WinXP - FPC 2.4.5 (fixes_2_5) - Laz 0.9.30 (fixes_0_9_30) - Paths: ?c:\freepascal\compiler\2.4.5 ?(FPC) ?c:\freepascal\ide\laz\0.9.30 ?(that works) ?c:\freepascal\ide\laz\0.9.30-config ?(--pcp=... environmentoptions.xml, fpcdefines.xml, ?compileroptions.xml, etc) ?c:\freepascal\ide\laz\0.9.31 ?(trunk... the new Laz) ?c:\freepascal\ide\laz\0.9.31-config ?(a copy from 0.9.30-config... but I replaced all 0.9.30 texts to 0.9.31 in all files) I want to compile the Lazarus on trunk, but I want migrate my packages too. So, 1. I got the sources 2. compiled the first time... everything ok. 3. close the IDE, copy 0.9.30-config to 0.9.31-config and replaced all 0.9.30 texts to 0.9.31 in all files 4. open IDE without errors. 5. build up + clean all using the main menu 6. IDE compile all files, creates the lazarus.new.exe and restart. 7. ERROR(?) I see the image in attachment. What happend? How I can migrate?

I mean: - FPC 2.4.5 (fixes_2_4)
I forgot the file... in attachment now.

Marcos Douglas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printscreen.jpg
Type: image/jpeg
Size: 39536 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110805/174551d3/attachment-0001.jpg>

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 34 lines
On Fri, Aug 5, 2011 at 4:07 PM, Marcos Douglas wrote: > What is the best way to migrating from Laz 0.9.30 (fixes_0_9_30) to > Laz 0.9.31 (trunk)? > > My environment now is: > - WinXP > - FPC 2.4.5 (fixes_2_5) > - Laz 0.9.30 (fixes_0_9_30) > - Paths: > ?c:\freepascal\compiler\2.4.5 ?(FPC) > ?c:\freepascal\ide\laz\0.9.30 ?(that works) > ?c:\freepascal\ide\laz\0.9.30-config ?(--pcp=... > environmentoptions.xml, fpcdefines.xml, ?compileroptions.xml, etc) > ?c:\freepascal\ide\laz\0.9.31 ?(trunk... the new Laz) > ?c:\freepascal\ide\laz\0.9.31-config ?(a copy from 0.9.30-config... > but I replaced all 0.9.30 texts to 0.9.31 in all files) > > I want to compile the Lazarus on trunk, but I want migrate my packages too. > > So, > 1. I got the sources > 2. compiled the first time... everything ok. > 3. close the IDE, copy 0.9.30-config to 0.9.31-config and replaced all > 0.9.30 texts to 0.9.31 in all files > 4. open IDE without errors. > 5. build up + clean all using the main menu > 6. IDE compile all files, creates the lazarus.new.exe and restart. > 7. ERROR(?) I see the image in attachment. > > What happend? > How I can migrate? I mean: - FPC 2.4.5 (fixes_2_4) I forgot the file... in attachment now.

Well, well, well... I don't know what this mean the error before, but I managed:

1. restored lazarus.old.exe to lazarus.exe
2. start IDE (I see just the default pallete)
3. click in 'Package'>'Install/Unistall packages...'
4. I see my packages in the "Install list"...
5. I choose any package the the "Do not Install" (the rebuild button was enabled)
6. click in "Save and rebuild IDE"
7. my packages were installed!

=)

Is the best way to do this?

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 50 lines
On Fri, Aug 5, 2011 at 4:12 PM, Marcos Douglas wrote: > On Fri, Aug 5, 2011 at 4:07 PM, Marcos Douglas wrote: >> What is the best way to migrating from Laz 0.9.30 (fixes_0_9_30) to >> Laz 0.9.31 (trunk)? >> >> My environment now is: >> - WinXP >> - FPC 2.4.5 (fixes_2_5) >> - Laz 0.9.30 (fixes_0_9_30) >> - Paths: >> ?c:\freepascal\compiler\2.4.5 ?(FPC) >> ?c:\freepascal\ide\laz\0.9.30 ?(that works) >> ?c:\freepascal\ide\laz\0.9.30-config ?(--pcp=... >> environmentoptions.xml, fpcdefines.xml, ?compileroptions.xml, etc) >> ?c:\freepascal\ide\laz\0.9.31 ?(trunk... the new Laz) >> ?c:\freepascal\ide\laz\0.9.31-config ?(a copy from 0.9.30-config... >> but I replaced all 0.9.30 texts to 0.9.31 in all files) >> >> I want to compile the Lazarus on trunk, but I want migrate my packages too. >> >> So, >> 1. I got the sources >> 2. compiled the first time... everything ok. >> 3. close the IDE, copy 0.9.30-config to 0.9.31-config and replaced all >> 0.9.30 texts to 0.9.31 in all files >> 4. open IDE without errors. >> 5. build up + clean all using the main menu >> 6. IDE compile all files, creates the lazarus.new.exe and restart. >> 7. ERROR(?) I see the image in attachment. >> >> What happend? >> How I can migrate? > > I mean: - FPC 2.4.5 (fixes_2_4) > I forgot the file... in attachment now. Well, well, well... I don't know what this mean the error before, but I managed: 1. restored lazarus.old.exe to lazarus.exe 2. start IDE (I see just the default pallete) 3. click in 'Package'>'Install/Unistall packages...' 4. I see my packages in the "Install list"... 5. I choose any package the the "Do not Install" (the rebuild button was enabled) 6. click in "Save and rebuild IDE" 7. my packages were installed! =) Is the best way to do this?

NOT, the error continues...
If I use the menu Build, the error that I talked in first mail continues.

Anybody have an idea?

Marcos Douglas

Reply by email

Martin
to Marcos Douglas
Marcos Douglas wrote 18 lines
1. restored lazarus.old.exe to lazarus.exe 2. start IDE (I see just the default pallete) 3. click in 'Package'>'Install/Unistall packages...' 4. I see my packages in the "Install list"... 5. I choose any package the the "Do not Install" (the rebuild button was enabled) 6. click in "Save and rebuild IDE" 7. my packages were installed! =) Is the best way to do this? NOT, the error continues... If I use the menu Build, the error that I talked in first mail continues. Anybody have an idea?

Try to delete *ALL* *.ppu and *.o file in the entire lazarus directory then rebuild.

Maybe some path was changed, and now the file exists in both locations. clean will only clean the one that will be rebuild

Reply by email

Martin
to Martin
Martin wrote 27 lines
On 05/08/2011 23:52, Marcos Douglas wrote: > 1. restored lazarus.old.exe to lazarus.exe > 2. start IDE (I see just the default pallete) > 3. click in 'Package'>'Install/Unistall packages...' > 4. I see my packages in the "Install list"... > 5. I choose any package the the "Do not Install" (the rebuild button > was enabled) > 6. click in "Save and rebuild IDE" > 7. my packages were installed! > > =) > > Is the best way to do this? > NOT, the error continues... > If I use the menu Build, the error that I talked in first mail > continues. > > Anybody have an idea? > > Try to delete *ALL* *.ppu and *.o file in the entire lazarus directory then rebuild. Maybe some path was changed, and now the file exists in both locations. clean will only clean the one that will be rebuild

While the first bit may help, sorry, I mixed up to mails while reading, and answered to the mixture I read (applied another erro msg to your mail...)....

I have been continually updating from SVN. I never needed to go into the package menu.

When you migrate, there may be a point where you have to build from the commandline with "make" => or you get a pre-build lazarus exe from a snapshot.

Then with that l;azarus.exe you can use the Menu Tools/Build dialog. And that should rebuild it with the list of configured packages.

Martin

Reply by email

Marcos Douglas
to Martin
Martin wrote 28 lines
On 05/08/2011 23:54, Martin wrote: > > On 05/08/2011 23:52, Marcos Douglas wrote: >> >> 1. restored lazarus.old.exe to lazarus.exe >> 2. start IDE (I see just the default pallete) >> 3. click in 'Package'>'Install/Unistall packages...' >> 4. I see my packages in the "Install list"... >> 5. I choose any package the the "Do not Install" (the rebuild button >> was enabled) >> 6. click in "Save and rebuild IDE" >> 7. my packages were installed! >> >> =) >> >> Is the best way to do this? >> NOT, the error continues... >> If I use the menu Build, the error that I talked in first mail continues. >> >> Anybody have an idea? >> >> > > Try to delete *ALL* *.ppu and *.o file in the entire lazarus directory > then rebuild. > Maybe some path was changed, and now the file exists in both locations. > clean will only clean the one that will be rebuild

I did this and now I can not compile...
Error: \ide\laz\0.9.31\packager\registration\fcllaz.pas(1,1) Fatal: Can't find unit system used by fcllaz

Show quoted text 14 lines
While the first bit may help, sorry, I mixed up to mails while reading, and answered to the mixture I read (applied another erro msg to your mail...).... I have been continually updating from SVN. I never needed to go into the package menu. When you migrate, there may be a point where you have to build from the commandline with "make" => or you get a pre-build lazarus exe from a snapshot. Then with that l;azarus.exe you can use the Menu Tools/Build dialog. And that should rebuild it with the list of configured packages.

But how I installs (migrate) my packages old 0.9.30 to 0.9.31? The way I said before is right?

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 51 lines
On Fri, Aug 5, 2011 at 8:06 PM, Martin wrote: > On 05/08/2011 23:54, Martin wrote: >> >> On 05/08/2011 23:52, Marcos Douglas wrote: >>> >>> 1. restored lazarus.old.exe to lazarus.exe >>> 2. start IDE (I see just the default pallete) >>> 3. click in 'Package'>'Install/Unistall packages...' >>> 4. I see my packages in the "Install list"... >>> 5. I choose any package the the "Do not Install" (the rebuild button >>> was enabled) >>> 6. click in "Save and rebuild IDE" >>> 7. my packages were installed! >>> >>> =) >>> >>> Is the best way to do this? >>> NOT, the error continues... >>> If I use the menu Build, the error that I talked in first mail continues. >>> >>> Anybody have an idea? >>> >>> >> >> Try to delete *ALL* *.ppu and *.o file in the entire lazarus directory >> then rebuild. >> Maybe some path was changed, and now the file exists in both locations. >> clean will only clean the one that will be rebuild I did this and now I can not compile... Error: \ide\laz\0.9.31\packager\registration\fcllaz.pas(1,1) Fatal: Can't find unit system used by fcllaz > While the first bit may help, sorry, I mixed up to mails while reading, and > answered to the mixture I read (applied another erro msg to your > mail...).... > > > I have been continually updating from SVN. I never needed to go into the > package menu. > > When you migrate, there may be a point where you have to build from the > commandline with "make" => or you get a pre-build lazarus exe from a > snapshot. > > Then with that l;azarus.exe you can use the Menu Tools/Build dialog. And > that should rebuild it with the list of configured packages. But how I installs (migrate) my packages old 0.9.30 to 0.9.31? The way I said before is right?

Now, I'm downloading a new Lazarus' source, from trunk, to start again. But my question is: how I can migrates my packages, components and configurations from my old Lazarus to new?

Marcos Douglas

Reply by email

Martin
to Marcos Douglas: I did this and now I can not compile... Error:…
Marcos Douglas wrote 7 lines
On Fri, Aug 5, 2011 at 8:06 PM, Martin wrote: >> Try to delete *ALL* *.ppu and *.o file in the entire lazarus directory >> then rebuild. >> I did this and now I can not compile... Error: \ide\laz\0.9.31\packager\registration\fcllaz.pas(1,1) Fatal: Can't find unit system used by fcllaz

system is rtl.

Are you sure you are using the same FPC version?
Or if you changed it, your path, and fpc.cfg are correct.

That sounds a lot like you fpc is having the wrong path to the system.ppu (trying to use a system.ppu from an older fpc)

Show quoted text 5 lines
But how I installs (migrate) my packages old 0.9.30 to 0.9.31? The way I said before is right? Marcos Douglas -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Usually your list of packages is in your config dir (afaik staticpackages.inc)

If you rebuild lazarus from tool menu, it should include them all. If it says, it can't find one, just open the .lpk file , and it will remember where it is.

Reply by email

Martin
to Marcos Douglas: Now, I'm downloading a new Lazarus' source, from trunk, to start again. But my question…
Show quoted text 5 lines
Now, I'm downloading a new Lazarus' source, from trunk, to start again. But my question is: how I can migrates my packages, components and configurations from my old Lazarus to new?

Configuration is all stored in

Vista:
C:\Users\yourname\AppData\Local\lazarus

XP c:\Document and Settings\somewhere\lazarus

linux
/home/yourname/.lazarus

So it should all be kept.
you can backup it if you whish.

If you have paralell installations, you must have one folder for each install (or it will get messy over time...)
start lazarus with --primary-config-path=\whatever\directory\

Reply by email

Martin
to Martin: system is rtl. Are you sure you are using the same FPC version? Or if you changed it,…
Show quoted text 12 lines
> But how I installs (migrate) my packages old 0.9.30 to 0.9.31? The > way I said before is right? Marcos Douglas -- > _______________________________________________ Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Usually your list of packages is in your config dir (afaik staticpackages.inc) If you rebuild lazarus from tool menu, it should include them all. If it says, it can't find one, just open the .lpk file , and it will remember where it is.

One more, if you keep your old install (see primary-config-path / other mail), I su8ggest to temporarly rename the folder of the old installation.

so when you recompile the new installation, if anything should still point to the old path, you will get an error indicating this => rather than some weird error

Reply by email

Ludo Brands
to Marcos Douglas: What is the best way to migrating from Laz 0.9.30 (fixes_0_9_30) to Laz 0.9.31 (trunk)?…
Show quoted text 9 lines
So, 1. I got the sources 2. compiled the first time... everything ok. 3. close the IDE, copy 0.9.30-config to 0.9.31-config and replaced all 0.9.30 texts to 0.9.31 in all files 4. open IDE without errors. 5. build up + clean all using the main menu 6. IDE compile all files, creates the lazarus.new.exe and restart. 7. ERROR(?) I see the image in attachment.

There has been made a change in TCustomForm.Create constructor. It raises now an exception if the descendant has no resources. One of your packages needs to be adapted. More info here (look in the notes): http://bugs.freepascal.org/view.php?id=19389

Ludo

Reply by email

Marcos Douglas
to Martin: system is rtl. Are you sure you are using the same FPC version? Or if you changed it,…
Martin wrote 15 lines
On 06/08/2011 00:15, Marcos Douglas wrote: > > On Fri, Aug 5, 2011 at 8:06 PM, Martin ?wrote: >>> >>> Try to delete *ALL* *.ppu and *.o file in the entire lazarus directory >>> then rebuild. >>> > I did this and now I can not compile... > Error: \ide\laz\0.9.31\packager\registration\fcllaz.pas(1,1) Fatal: > Can't find unit system used by fcllaz system is rtl. Are you sure you are using the same FPC version? Or if you changed it, your path, and fpc.cfg are correct.

Yes. I have one fpc.cfg for each fpc.exe in \bin\i386-win32 to not have problems with PATH.

That sounds a lot like you fpc is having the wrong path to the system.ppu (trying to use a system.ppu from an older fpc)

The last problem happend after that I deleted all *.ppu *.o

Show quoted text 7 lines
> But how I installs (migrate) my packages old 0.9.30 to 0.9.31? The way I > said before is right? Usually your list of packages is in your config dir (afaik staticpackages.inc) If you rebuild lazarus from tool menu, it should include them all.

Was I did and worked (well, I thought). But if I recompile using the menu Build, happens the error that I said in first mail of this thread.

If it says, it can't find one, just open the .lpk file , and it will remember where it is.

If I have to open each .lpk then I do not need this all... just compile a new Lazarus and install each package.

Marcos Douglas

Reply by email

Marcos Douglas
to Martin: Configuration is all stored in Vista: C:\Users\yourname\AppData\Local\lazarus XP …
Martin wrote 23 lines
> Now, I'm downloading a new Lazarus' source, from trunk, to start again. > But my question is: how I can migrates my packages, components and > configurations from my old Lazarus to new? > > Configuration is all stored in Vista: C:\Users\yourname\AppData\Local\lazarus XP ?c:\Document and Settings\somewhere\lazarus linux /home/yourname/.lazarus So it should all be kept. you can backup it if you whish. If you have paralell installations, you must have one folder for each install (or it will get messy over time...) start lazarus with --primary-config-path=\whatever\directory\

I use -pcp, always. Was I said in the first mail: I have one directory (configuration) for each Lazarus (for \laz\0.9.30 so \laz\0.9.30-config).

Marcos Douglas

Reply by email

Marcos Douglas
to Martin: One more, if you keep your old install (see primary-config-path / other mail), I su8ggest…
Martin wrote 20 lines
>> But how I installs (migrate) my packages old 0.9.30 to 0.9.31? The way I >> said before is right? Marcos Douglas -- >> _______________________________________________ Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > Usually your list of packages is in your config dir (afaik > staticpackages.inc) > > If you rebuild lazarus from tool menu, it should include them all. > If it says, it can't find one, just open the .lpk file , and it will > remember where it is. One more, if you keep your old install (see primary-config-path / other mail), I su8ggest to temporarly rename the folder of the old installation. so when you recompile the new installation, if anything should still point to the old path, you will get an error indicating this => rather than some weird error

I tested this... but is not.

Marcos Douglas

Reply by email

Marcos Douglas
to Ludo Brands: There has been made a change in TCustomForm.Create constructor. It raises now an…
Ludo Brands wrote 16 lines
> So, > 1. I got the sources > 2. compiled the first time... everything ok. > 3. close the IDE, copy 0.9.30-config to 0.9.31-config and > replaced all 0.9.30 texts to 0.9.31 in all files 4. open IDE > without errors. 5. build up + clean all using the main menu > 6. IDE compile all files, creates the lazarus.new.exe and > restart. 7. ERROR(?) I see the image in attachment. > There has been made a change in TCustomForm.Create constructor. It raises now an exception if the descendant has no resources. One of your packages needs to be adapted. More info here (look in the notes): http://bugs.freepascal.org/view.php?id=19389

Hmm... but which package? Would be better if the error message said what class is "wrong". I use the packages default of Lazarus and Zeos, just this.

Marcos Douglas

Reply by email

Martin
to Marcos Douglas
Marcos Douglas wrote 19 lines
On Sat, Aug 6, 2011 at 4:22 AM, Ludo Brands wrote: > >> So, >> 1. I got the sources >> 2. compiled the first time... everything ok. >> 3. close the IDE, copy 0.9.30-config to 0.9.31-config and >> replaced all 0.9.30 texts to 0.9.31 in all files 4. open IDE >> without errors. 5. build up + clean all using the main menu >> 6. IDE compile all files, creates the lazarus.new.exe and >> restart. 7. ERROR(?) I see the image in attachment. >> > There has been made a change in TCustomForm.Create constructor. It raises > now an exception if the descendant has no resources. One of your packages > needs to be adapted. More info here (look in the notes): > http://bugs.freepascal.org/view.php?id=19389 Hmm... but which package? Would be better if the error message said what class is "wrong". I use the packages default of Lazarus and Zeos, just this.

I am not sure it is a package, or that it is the packages fault.

Look exactly at the error. IT is a "TForm1" for which the resources are missing.

If a packages tries to create a resourceless form, then it would be just a "TForm" (the package would call TForm.Create)

Now if it is a package (wich as unlikely as it sounds to me, has a TForm1, rather than aproper named form), then it's a problem with resources. e.g some resource, did not get compiled, some .lfr not created or included, or some $I *.LFM missing or not working....

Maybe it is failing to open your current project. Try opening Lazarus without project (remove from your config folder)

Reply by email

Marcos Douglas
to Martin: I am not sure it is a package, or that it is the packages fault. Look exactly at the…
Martin wrote 16 lines
I am not sure it is a package, or that it is the packages fault. Look exactly at the error. IT is a "TForm1" for which the resources are missing. If a packages tries to create a resourceless form, then it would be just a "TForm" (the package would call TForm.Create) Now if it is a package (wich as unlikely as it sounds to me, has a TForm1, rather than aproper named form), then it's a problem with resources. e.g some resource, did not get compiled, some .lfr not created or included, or some $I *.LFM missing or not working.... Maybe it is failing to open your current project. Try opening Lazarus without project (remove from your config folder)

The IDE try to open a new project, not the my last project. I compiled the IDE with FPC 2.4.5 (fixes_2_4). Would be this the problem? The Lazarus trunk only compiles with FPC trunk?

Marcos Douglas

Reply by email

Marcos Douglas
to Ludo Brands: I'm not using zeos on lazarus. I can't tell. The error message complains about a form…
Ludo Brands wrote 8 lines
> Hmm... but which package? Would be better if the error > message said what class is "wrong". I use the packages > default of Lazarus and Zeos, just this. > I'm not using zeos on lazarus. I can't tell. The error message complains about a form called TForm1. That'll make searching easier.

The Lazarus try to open a new project and, because that, the name is TForm1, I think.

Marcos Douglas

Reply by email

Martin
to Marcos Douglas: The IDE try to open a new project, not the my last project. I compiled the IDE with FPC…
Marcos Douglas wrote 5 lines
The IDE try to open a new project, not the my last project. I compiled the IDE with FPC 2.4.5 (fixes_2_4). Would be this the problem? The Lazarus trunk only compiles with FPC trunk?

I don't thing thats the problem. I am using a 2.5.1 version that is a few month old. very similar to 2.4.4 or.5

Compile you laz with debug -g -g- info, and either with -WC (console) or run with --debug-log=file

then you may get a stacktrace.

or run lazarus.new.exe, in the debugger, in lazarus itself.

Reply by email

Ludo Brands
to Marcos Douglas: The Lazarus try to open a new project and, because that, the name is TForm1, I think.…
Show quoted text 8 lines
> I'm not using zeos on lazarus. I can't tell. > The error message complains about a form called TForm1. That'll make > searching easier. The Lazarus try to open a new project and, because that, the name is TForm1, I think.

Try doing a lazarus build without packages from the command line "make clean all". This will make it clear where the problem is, the packages or lazarus.

Ludo

Reply by email

Marcos Douglas
to Martin: I don't thing thats the problem. I am using a 2.5.1 version that is a few month old. very…
Martin wrote 10 lines
On 06/08/2011 18:33, Marcos Douglas wrote: > > The IDE try to open a new project, not the my last project. > I compiled the IDE with FPC 2.4.5 (fixes_2_4). Would be this the > problem? The Lazarus trunk only compiles with FPC trunk? > > I don't thing thats the problem. I am using a 2.5.1 version that is a few month old. very similar to 2.4.4 or.5

I got the fixes_2_6 to do tests too.

Compile you laz with debug -g -g- info, and either with -WC (console) or run with --debug-log=file

Sorry to ask but these parameters are to the 'make' tool?

then you may get a stacktrace. or run lazarus.new.exe, in the debugger, in lazarus itself.

I never did this... can you explain, please?

Marcos Douglas

Reply by email

Marcos Douglas
to Ludo Brands: Try doing a lazarus build without packages from the command line "make clean all". This…
Ludo Brands wrote 11 lines
> > I'm not using zeos on lazarus. I can't tell. > > The error message complains about a form called TForm1. > That'll make > > searching easier. > > The Lazarus try to open a new project and, ?because that, the > name is TForm1, I think. > Try doing a lazarus build without packages from the command line "make clean all". This will make it clear where the problem is, the packages or lazarus.

That works, sure -- was I did and explained at the first mail on this thread. But the question persists: how migrate the packages to a new version? If I compile a clean source and install each package separate, ok it will works... but I can't do this everytime that a version is launched, right?

How do you works with that?

Marcos Douglas

Reply by email

Martin
to Marcos Douglas: I got the fixes_2_6 to do tests too. Sorry to ask but these parameters are to the 'make'…
Marcos Douglas wrote
On Sat, Aug 6, 2011 at 2:37 PM, Martin wrote: > Compile you laz with debug -g -g- info, and either with -WC (console) or run > with --debug-log=file Sorry to ask but these parameters are to the 'make' tool?

AFAIK:
make <target> OPT="-g -gl -WC"

I usually compile from within the IDE (tools menu). Anjd that for me always also recompiled the packages.

That is assuming the packages are compatible with the new version. If a package does not work any longer then it can't be migrated, until the package is updated too (if available)

--debug-log= is given to lazarus.exe when you start lazarus (use a windows shortcut, edit it's properties)

> then you may get a stacktrace. > > or run lazarus.new.exe, in the debugger, in lazarus itself. I never did this... can you explain, please?

assuming you compiled lazarus with -g -gl (and maybe -gw) and you did NOT strip symbol info; and ideally you did NOT smart-link:

- open the lazarus.lpi (from the ide directory)
- use "run param" from run menu, to specify the new exe (and the correct -primary-config-path)
- press F9

move the windows of the debugged Lazarus, so you do not mix them with the old one....

Reply by email

Luca Olivetti
to Marcos Douglas: Hmm... but which package? Would be better if the error message said what class is…

Al 06/08/11 17:28, En/na Marcos Douglas ha escrit:

Hmm... but which package? Would be better if the error message said what class is "wrong". I use the packages default of Lazarus and Zeos, just this.

IIRC (at least with the version I use, 6.6.4) zeos doesn't clean the compiled units (.o and .ppu) and hardcodes its output directory to "build" (packages/lazarus/build). Try deleting all files there and see if it helps (though I think it just caused building errors, not the run-time error you are seeing).

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007

Reply by email

Martin
to Marcos Douglas: That works, sure -- was I did and explained at the first mail on this thread. But the…
Marcos Douglas wrote 9 lines
That works, sure -- was I did and explained at the first mail on this thread. But the question persists: how migrate the packages to a new version? If I compile a clean source and install each package separate, ok it will works... but I can't do this everytime that a version is launched, right? How do you works with that?

I never had a problem with installed packages, but I always upgrade in place.
I use SVN to update my sources / but using install ,and installing the new version in the exact same place than the old should work too.

I can't comment on make, is use the build option from the menu.

And last not least (because you had problems finding system.ppu). If you get errors like this, somewhere your configuration (search path) is wrong. In this case if it compiled while old ppu files where in-place, it is expected that it would not work (as versions would be randomly mixed)
If your fpc was (as it is on normal windows installations) inside the lazarus directory, then find the fpc.cfg and make sure it has the correct -Fu paths. Same if ou rename/move the fpc directory.

Reply by email

Marcos Douglas
to Martin: AFAIK: make <target> OPT="-g -gl -WC" I usually compile from within the IDE (tools menu).
Martin wrote 39 lines
On 07/08/2011 03:12, Marcos Douglas wrote: > > On Sat, Aug 6, 2011 at 2:37 PM, Martin ?wrote: >> >> Compile you laz with debug -g -g- info, and either with -WC (console) or >> run >> with --debug-log=file > > Sorry to ask but these parameters are to the 'make' tool? AFAIK: make <target> ?OPT="-g -gl -WC" I usually compile from within the IDE (tools menu). Anjd that for me always also recompiled the packages. That is assuming the packages are compatible with the new version. If a package does not work any longer then it can't be migrated, until the package is updated too (if available) --debug-log= is given to lazarus.exe when you start lazarus (use a windows shortcut, edit it's properties) >> then you may get a stacktrace. >> >> or run lazarus.new.exe, in the debugger, in lazarus itself. > > I never did this... can you explain, please? assuming you compiled lazarus with -g -gl (and maybe -gw) and you did NOT strip symbol info; and ideally you did NOT smart-link: - open the lazarus.lpi (from the ide directory) - use "run param" from run menu, to specify the new exe (and the correct -primary-config-path) - press F9 move the windows of the debugged Lazarus, so you do not mix them with the old one....

Thanks for the explanation. If necessary, I will try this all. I will do more tests (not now because I'm not with my PC).

Marcos Douglas

Reply by email

Marcos Douglas
to Luca Olivetti: Al 06/08/11 17:28, En/na Marcos Douglas ha escrit: IIRC (at least with the version I use,…
Luca Olivetti wrote 10 lines
Al 06/08/11 17:28, En/na Marcos Douglas ha escrit: > Hmm... but which package? Would be better if the error message said > what class is "wrong". I use the packages default of Lazarus and Zeos, > just this. IIRC (at least with the version I use, 6.6.4) zeos doesn't clean the compiled units (.o and .ppu) and hardcodes its output directory to "build" (packages/lazarus/build). Try deleting all files there and see if it helps (though I think it just caused building errors, not the run-time error you are seeing).

I use the 6.6.6 version that was compiled with the same FPC version... so, IMHO that is not the problem.

Marcos Douglas

Reply by email

Marcos Douglas
to Martin: I never had a problem with installed packages, but I always upgrade in place. I use SVN…
Martin wrote 7 lines
On 07/08/2011 03:16, Marcos Douglas wrote: > How do you works with that? I never had a problem with installed packages, but I always upgrade in place. I use SVN to update my sources / but using install ,and installing the new version in the exact same place than the old should work too.

I want to continue with a stable version (FPC and Lazarus) before migrates. I use SVN too, but I have one directory for each version of FPC or Lazarus.

Show quoted text 9 lines
I can't comment on make, is use the build option from the menu. And last not least (because you had problems finding system.ppu). ?If you get errors like this, somewhere your configuration (search path) is wrong. In this case if it compiled while old ppu files where in-place, it is expected that it would not work (as versions would be randomly mixed) If your fpc was (as it is on normal windows installations) inside the lazarus directory, then find the fpc.cfg and make sure it has the correct -Fu paths. Same if ou rename/move the fpc directory.

I have a different directory for each FPC. See below my directories: c:\freepascal\compiler\2.4.5
c:\freepascal\compiler\2.6.0
c:\freepascal\ide\laz\0.9.30
c:\freepascal\ide\laz\0.9.31

Each FPC has your fpc.cfg (but they are equal).

Marcos Douglas

Reply by email

Marcos Douglas
to Martin: AFAIK: make <target> OPT="-g -gl -WC" I usually compile from within the IDE (tools menu).
Martin wrote 33 lines
On 07/08/2011 03:12, Marcos Douglas wrote: > > On Sat, Aug 6, 2011 at 2:37 PM, Martin ?wrote: >> >> Compile you laz with debug -g -g- info, and either with -WC (console) or run >> with --debug-log=file > > Sorry to ask but these parameters are to the 'make' tool? AFAIK: make <target> ?OPT="-g -gl -WC" I usually compile from within the IDE (tools menu). Anjd that for me always also recompiled the packages. That is assuming the packages are compatible with the new version. If a package does not work any longer then it can't be migrated, until the package is updated too (if available) --debug-log= is given to lazarus.exe when you start lazarus (use a windows shortcut, edit it's properties) >> then you may get a stacktrace. >> >> or run lazarus.new.exe, in the debugger, in lazarus itself. > > I never did this... can you explain, please? assuming you compiled lazarus with -g -gl (and maybe -gw) and you did NOT strip symbol info; and ideally you did NOT smart-link: - open the lazarus.lpi (from the ide directory) - use "run param" from run menu, to specify the new exe (and the correct -primary-config-path) - press F9 move the windows of the debugged Lazarus, so you do not mix them with the old one....

I did not used these tips (yet) but I think something wrong in "Lazarus Build menu command", trunk version.
I got the new sources of trunk; compiled with fixes_2_6 (2.5.1) with sucess; open the IDE (using my pcp directory with my environment and packages configurations) and clicked 'Install/Unistall packages' and chose one package just to "refresh" the packages to show in component bar; Save and Build button; the IDE reopened with sucess.

So, I tried to compile the IDE using Tools/Build (Clean Up + Build All) and I got the same error (printscreen) for the first mail on this thread.

So, I compiled Lazarus with lazbuild tool using the same PCP and... everything worked.

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 49 lines
On Sun, Aug 7, 2011 at 7:06 AM, Martin wrote: > > On 07/08/2011 03:12, Marcos Douglas wrote: >> >> On Sat, Aug 6, 2011 at 2:37 PM, Martin ?wrote: >>> >>> Compile you laz with debug -g -g- info, and either with -WC (console) or run >>> with --debug-log=file >> >> Sorry to ask but these parameters are to the 'make' tool? > > AFAIK: > make <target> ?OPT="-g -gl -WC" > > I usually compile from within the IDE (tools menu). > Anjd that for me always also recompiled the packages. > > That is assuming the packages are compatible with the new version. If a package does not work any longer then it can't be migrated, until the package is updated too (if available) > > --debug-log= is given to lazarus.exe when you start lazarus (use a windows shortcut, edit it's properties) > >>> then you may get a stacktrace. >>> >>> or run lazarus.new.exe, in the debugger, in lazarus itself. >> >> I never did this... can you explain, please? > > assuming you compiled lazarus with -g -gl (and maybe -gw) and you did NOT strip symbol info; and ideally you did NOT smart-link: > > - open the lazarus.lpi (from the ide directory) > - use "run param" from run menu, to specify the new exe (and the correct -primary-config-path) > - press F9 > > move the windows of the debugged Lazarus, so you do not mix them with the old one.... I did not used these tips (yet) but I think something wrong in "Lazarus Build menu command", trunk version. I got the new sources of trunk; compiled with fixes_2_6 (2.5.1) with sucess; open the IDE (using my pcp directory with my environment and packages configurations) and clicked 'Install/Unistall packages' and chose one package just to "refresh" the packages to show in component bar; Save and Build button; the IDE reopened with sucess. So, I tried to compile the IDE using Tools/Build (Clean Up + Build All) and I got the same error (printscreen) for the first mail on this thread. So, I compiled Lazarus with lazbuild tool using the same PCP and... everything worked.

I created a new thread because I think that some is wrong with the Build command in IDE.
See: http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-August/065746.html

Marcos Douglas

Reply by email