Sign in Join

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

Mailing lists / lazarus / 2010-03

svn r23973 unable to open old projects

25 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

ik

Hello,

I've built lazarus today from few weeks ago to r23973. I had an open project while compiled Lazarus again.
When Lazarus arrive back from compilation, it was unable to open the project. When I try to force it to open it, it just hangs until I'll kill it.

I'm using Linux x86_64 with fpc 2.5.1

What should I be looking for, before calling it a bug ?

Thanks,
Ido

http://ik.homelinux.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100313/343ce786/attachment.html>

Reply by email

Kjow
to ik

2010/3/13 ik :

Show quoted text 14 lines
Hello, I've built lazarus today from few weeks ago to r23973. I had an open project while compiled Lazarus again. When Lazarus arrive back from compilation, it was unable to open the project. When I try to force it to open it, it just hangs until I'll kill it. I'm using Linux x86_64 with fpc 2.5.1 What should I be looking for, before calling it a bug ? Thanks, Ido

I have a similar problem from ~r23957:
http://mantis.freepascal.org/view.php?id=15972

Try with r23932, it worked for me:
http://snapshots.lazarus.shikami.org/files/lazarus-0.9.29-23932-20100311-src.zip

Regards,
Kjow

Reply by email

zeljko
to ik: I've built lazarus today from few weeks ago to r23973. I had an open project while…
ik wrote 11 lines
Hello, I've built lazarus today from few weeks ago to r23973. I had an open project while compiled Lazarus again. When Lazarus arrive back from compilation, it was unable to open the project. When I try to force it to open it, it just hangs until I'll kill it. I'm using Linux x86_64 with fpc 2.5.1 What should I be looking for, before calling it a bug ?

Probably newautosize bug. Try to rebuild lazarus with -dOldAutoSize and then try again to open your project.

zeljko

Reply by email

ik
to Kjow

http://ik.homelinux.org/

Kjow wrote 12 lines
2010/3/15 zeljko : > Probably newautosize bug. Try to rebuild lazarus with -dOldAutoSize and then > try again to open your project. > > zeljko Building IDE with -dOldAutoSize option solves both these bug: http://mantis.freepascal.org/view.php?id=15971 http://mantis.freepascal.org/view.php?id=15972

Indeed it solved my problem. How can I migrate to the new AutoSize ?

Show quoted text 13 lines
Thanks! Kjow PS what is the "newautosize function"? -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100315/b0fa88f5/attachment.html>

Reply by email

zeljko
to ik
Indeed it solved my problem. How can I migrate to the new AutoSize ?

I don't think that you have to migrate to new autosize but wait until newautosize bugs fixed.

zeljko

Reply by email

ik
to zeljko

http://ik.homelinux.org/

zeljko wrote 6 lines
> Indeed it solved my problem. How can I migrate to the new AutoSize ? I don't think that you have to migrate to new autosize but wait until newautosize bugs fixed.

Thanks

Show quoted text 9 lines
zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100315/7bf7c8f6/attachment.html>

Reply by email

ik
to Kjow

http://ik.homelinux.org/

Kjow wrote 10 lines
2010/3/15 zeljko : > Probably newautosize bug. Try to rebuild lazarus with -dOldAutoSize and then > try again to open your project. > > zeljko How to recompile from "command prompt" with -dOldAutoSize option? I tried, but it doesn't like it...

On menu tools choose "Configure Build Lazarus"
Then there use the tab "Advance build options"
And there on the "Options" TEdit place your option (-dOldAutoSize)

And then build Lazarus from there :)

Show quoted text 13 lines
>From "IDE->Advanced Build Option->options" No problems. Thanks, Kjow -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100315/851338c7/attachment.html>

Reply by email

Kjow
to ik

2010/3/15 ik :

Show quoted text 5 lines
On menu tools choose "Configure Build Lazarus" Then there use the tab "Advance build options" And there on the "Options" TEdit place your option (-dOldAutoSize) And then build Lazarus from there :)

Yes I know :)

>> From "IDE->Advanced Build Option->options" No problems.

But I need to include this option on a script that update everyday my lazarus revision to the latest, so I need a way to build lazarus IDE by command prompt / terminal with this option :)

Kjow

Reply by email

Vincent Snijders
to Kjow
Kjow wrote 14 lines
2010/3/15 ik : > On menu tools choose "Configure Build Lazarus" > Then there use the tab "Advance build options" > And there on the "Options" TEdit place your option (-dOldAutoSize) > > And then build Lazarus from there :) Yes I know :) >>> From "IDE->Advanced Build Option->options" No problems. But I need to include this option on a script that update everyday my lazarus revision to the latest, so I need a way to build lazarus IDE by command prompt / terminal with this option :)

If you did previously:
make clean bigide
now do:
make clean bigide OPT="-dOldAutoSize"

Vincent

Reply by email

Kjow
to Vincent Snijders

2010/3/15 Vincent Snijders :

Show quoted text 6 lines
If you did previously: make clean bigide now do: make clean bigide OPT="-dOldAutoSize" Vincent

Thanks, but now I have a question:

make clean bigide (and so: make clean bigide OPT="-dOldAutoSize" )

is the command above the equivalent to this below?

lazbuild --build-ide=
(so, without option -dOldAutoSize)

Kjow

Reply by email

Kjow
to Kjow

2010/3/15 Kjow :

> make clean bigide (and so: make clean bigide OPT="-dOldAutoSize" )

I have an other question:

Can "make clean bigide" replace "make clean all" after an svn update?

Thanks,
Kjow

Reply by email

Paul Ishenin
to Kjow
Kjow wrote
I have an other question: Can "make clean bigide" replace "make clean all" after an svn update?

"make bigideclean bigide" installs just more packages than "make clean all" so you can use the first command after an svn update.

Best regards,
Paul Ishenin.

Reply by email

Kjow
to Paul Ishenin

2010/3/16 Paul Ishenin :

Show quoted text 5 lines
"make bigideclean bigide" installs just more packages than "make clean all" so you can use the first command after an svn update. Best regards, Paul Ishenin.

Thanks!

So I'm going to replace this:

...
cd C:\Develop\Lazarus
svn up
make clean all
lazbuild --build-ide=
strip --strip-all lazarus.exe
strip --strip-all lazbuild.exe
strip --strip-all startlazarus.exe
pause
exit

With this:

...
cd C:\Develop\Lazarus
svn up
make clean bigide OPT="-dOldAutoSize"
strip --strip-all lazarus.exe
strip --strip-all lazbuild.exe
strip --strip-all startlazarus.exe
pause
exit

Thank you,
Kjow

Reply by email

Kjow

2010/3/16 Fl?vio Etrusco :

Show quoted text 9 lines
Yes. You may also try to add FPCOPT="-Xg" to 'make', so you don't have to run strip ;-) Also, please note that this "OldAutoSize" is not "a solution", it's a temporary work-around to the new AutoSize code, which was introduced to resolve some fundamental issues. Mattias is very busy, but I'm sure he'll fix these soon :-) Best regards, Fl?vio

Thank you very much, your help is very apprecciated :)

Kjow

Reply by email

Vincent Snijders
to Kjow: 2010/3/16 Paul Ishenin : Thanks! So I'm going to replace this: ... cd C:\Develop\Lazarus…

Kjow schreef:
Thanks!

Show quoted text 14 lines
So I'm going to replace this: ... cd C:\Develop\Lazarus svn up make clean all lazbuild --build-ide= strip --strip-all lazarus.exe strip --strip-all lazbuild.exe strip --strip-all startlazarus.exe pause exit

AFAIK OldAutoSize is used in the LCL en IDE only, relinking and adding components don't recompile it.

With this:

cd C:\Develop\Lazarus
svn up
make clean all OPT="-dOldAutoSize"
lazbuild --build-ide=
strip --strip-all lazarus.exe
strip --strip-all lazbuild.exe
strip --strip-all startlazarus.exe
pause
exit

Vincent

Reply by email

Paul Ishenin
to Kjow: 2010/3/16 Paul Ishenin : Thanks! So I'm going to replace this: ... cd C:\Develop\Lazarus…
Kjow wrote 9 lines
cd C:\Develop\Lazarus svn up make clean bigide OPT="-dOldAutoSize" strip --strip-all lazarus.exe strip --strip-all lazbuild.exe strip --strip-all startlazarus.exe pause exit

I would recommend to do:

make bigideclean bigide OPT="-dOldAutoSize -Xs"

1. is to use bigideclean instead of clean
2. to use -Xs instead of strip

Best regards,
Paul Ishenin.

Reply by email

Vincent Snijders
to Paul Ishenin
Paul Ishenin wrote 17 lines
16.03.2010 15:47, Kjow wrote: > cd C:\Develop\Lazarus > svn up > make clean bigide OPT="-dOldAutoSize" > strip --strip-all lazarus.exe > strip --strip-all lazbuild.exe > strip --strip-all startlazarus.exe > pause > exit > I would recommend to do: make bigideclean bigide OPT="-dOldAutoSize -Xs" 1. is to use bigideclean instead of clean 2. to use -Xs instead of strip

I thought -Xs doesn't work if you add -gl to the compiler parameters, as the Lazarus makefiles do.

So you would have to do OPT="-g- -Xs", but then the compiled units don't have debug info either.

Vincent

Reply by email

Paul Ishenin
to Vincent Snijders
Vincent Snijders wrote 11 lines
> > 1. is to use bigideclean instead of clean > 2. to use -Xs instead of strip > make bigideclean bigide OPT="-dOldAutoSize -Xs" I thought -Xs doesn't work if you add -gl to the compiler parameters, as the Lazarus makefiles do. So you would have to do OPT="-g- -Xs", but then the compiled units don't have debug info either.

Ok, then:

make bigideclean bigide OPT="-dOldAutoSize -Xg"
del lazarus.dbg
del startlazarus.dbg
del lazbuild.dbg

Best regards,
Paul Ishenin.

Reply by email

Kjow
to Paul Ishenin

2010/3/16 Paul Ishenin :

Show quoted text 7 lines
make bigideclean bigide OPT="-dOldAutoSize -Xg" del lazarus.dbg del startlazarus.dbg del lazbuild.dbg Best regards, Paul Ishenin.

Ok, thank you so much.
Now I there is the problem how to compile every extra packages already installed without lose -dOldAutoSize option.
(see latest email with topic: "make clean bigide")

Regards,
Kjow

Reply by email

Vincent Snijders
to Kjow
Kjow wrote 13 lines
2010/3/16 Paul Ishenin : > make bigideclean bigide OPT="-dOldAutoSize -Xg" > del lazarus.dbg > del startlazarus.dbg > del lazbuild.dbg > > Best regards, > Paul Ishenin. Ok, thank you so much. Now I there is the problem how to compile every extra packages already installed without lose -dOldAutoSize option. (see latest email with topic: "make clean bigide")

You don't need it, unless your packages implement different behavior depending on that define. You do need the -Xg.

Vincent

Reply by email

Kjow
to Vincent Snijders

2010/3/16 Vincent Snijders :

You don't need it, unless your packages implement different behavior depending on that define. You do need the -Xg. Vincent

Umm... Do you mean that depends by the package if there isn't between the components after the build?
I'm writing about GLScene and if I build with:

make bigideclean bigide OPT="-dOldAutoSize -Xg"

I have all I need, but no GLScene.

The only way to have GLScene in the IDE is to build from ide.

Kjow

Reply by email

Vincent Snijders
to Kjow
Show quoted text 7 lines
make bigideclean bigide OPT="-dOldAutoSize -Xg" I have all I need, but no GLScene. The only way to have GLScene in the IDE is to build from ide.

<frustration>What happens if you just do what I told you?</frustration> http://lists.lazarus.freepascal.org/pipermail/lazarus/2010-March/050400.html

More relaxed:
First you update:
svn up
then you build a new LCL and IDE and lazbuild with debug information (I like that, because then you can give good back traces to the lazarus developers, given better feedback etc), using a define to use tested old autosize code:
make clean all OPT="-dOldAutoSize"
Then you build the IDE with no custom options but with all your currently installed packages, recompiling the packages as necessary. lazbuild --build-ide=
To economize on disk space and to rob you from giving valuable back traces to the lazarus developers, you strip the executables from debug information:
strip --strip-all lazarus.exe
strip --strip-all lazbuild.exe
strip --strip-all startlazarus.exe
pause
exit

Ready.

Alternatively, you can do
lazbuild --build-ide=-dOldAutoSize if glscene has a {$IFDEF OldAutoSize} or
lazbuild --build-ide=-Xg if you do want to have the debug information, but not in the same file as the executable
or
lazbuild --build-ide=-g- if you want to compile the extra packages without debug information and the lazarus IDE without debug information too, so you don't need to strip it.

Vincent

Reply by email

Kjow
to Vincent Snijders

2010/3/16 Vincent Snijders :

<frustration>What happens if you just do what I told you?</frustration> http://lists.lazarus.freepascal.org/pipermail/lazarus/2010-March/050400.html

I'm sorry... but I did it and it didn't work for me... otherwise I would not have asked again.
I'm a simple user of Lazarus, not a developer of it, so I don't know what there is at the base.
I'm sorry to bother you all with my unknowledge (not sarcastic).

However, no way to include GLScene by command prompt building.

No problems, I'll wait a more stable "autosize" function to reuse my old script.

Thank you for help and the time spent with me,
Kjow :)

Reply by email