Sign in Join

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

Mailing lists / lazarus / 2010-03

windres: can't open manifest

38 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Schnell

I tried to do another test on windows.

I just wanted to create a new empty application and start it.

I got the error message:

c:\lazarus\fpc\2.2.4\bin\386-win32\windres.exe: can't open file 'project1.manifest': No such file or directory
project1.lpr(20.1) Error: Error while linking.

I deleted the complete c:\lazarus directory and reinstalled lazarus-0.9.23.2-fpc-2.2.4-win32 (that did work just fine before) just leaving all defaults.

But the problem did not go away.

What did Lazarus save where that triggers this error ?

Thanks,
-Michael

Reply by email

Paul Ishenin
to Michael Schnell
Michael Schnell wrote 14 lines
I got the error message: c:\lazarus\fpc\2.2.4\bin\386-win32\windres.exe: can't open file 'project1.manifest': No such file or directory project1.lpr(20.1) Error: Error while linking. I deleted the complete c:\lazarus directory and reinstalled lazarus-0.9.23.2-fpc-2.2.4-win32 (that did work just fine before) just leaving all defaults. But the problem did not go away. What did Lazarus save where that triggers this error ?

To do the tests better to also use lazarus test version (0.9.29) which already does not have such problems.

Previosly lazarus required windres program to build resources for an executable. Lazarus created an rc file per application which had references to manifest, icon and version information (if enabled). That rc file was compiled by windres. Sometimes (for example if you did not save your project before the compile) not all required files was properly saved before the compile and this caused problems like you have.

So the solution was to save your project to some directory without special symbols (like spaces) in path before the compile. Latest lazarus and latest fpc don't have these resources problems.

Best regards,
Paul Ishenin.

Reply by email

Michael Schnell
to Paul Ishenin
Paul Ishenin wrote
To do the tests better to also use lazarus test version (0.9.29) which already does not have such problems.

I really would like to do that. But for my tests I need to install the same versions of Lazarus and FPC on Windows and Linux. 9.28.2 was the most recent version I was able to install on both systems.

I do have the svc sources of Lazarus and FPC. What version do you recommend to install and how to extract the correct source files and how to install them on both Systems. Is there a Wiki page for that ?

Thanks !
-Michael

Reply by email

Paul Ishenin
to Michael Schnell
Michael Schnell wrote
I really would like to do that. But for my tests I need to install the same versions of Lazarus and FPC on Windows and Linux. 9.28.2 was the most recent version I was able to install on both systems.

First you need to install fpc >= 2.4.0 on all your systems. There are packages available on fpc site for most of platforms.

I do have the svc sources of Lazarus and FPC. What version do you recommend to install and how to extract the correct source files and how to install them on both Systems. Is there a Wiki page for that ?

Just checkout the lazarus sources into some directory and run "make bigide" after that. If you need all other packages which are installed with lazarus usually then rebuild the IDE from the IDE itself after.

Best regards,
Paul Ishenin.

Reply by email

Michael Schnell
to Paul Ishenin
Paul Ishenin wrote
Just checkout the lazarus sources into some directory and run "make bigide" after that. If you need all other packages which are installed with lazarus usually then rebuild the IDE from the IDE itself after.

Sound easy :)

This will give me the most recent version. It it stable enough to do decent work ? Is it recommended to work with same to create a new package ?

-Michael

Reply by email

Paul Ishenin
to Michael Schnell
Michael Schnell wrote
Sound easy :) This will give me the most recent version. It it stable enough to do decent work ? Is it recommended to work with same to create a new package ?

Most of time it is stable enough but no guaranties are given. And a week ago it lost the stability because of new autosize behavior. But we all hope that Mattias will fix all the problems soon :)

Anyway, it is possible even now to build everything with old stable code
- just use "make bigide -dOldAutoSize" instead of previosly suggested command.

Best regards,
Paul Ishenin.

Reply by email

Michael Schnell
to Paul Ishenin: First you need to install fpc >= 2.4.0 on all your systems. There are packages available…
Paul Ishenin wrote
First you need to install fpc >= 2.4.0 on all your systems. There are packages available on fpc site for most of platforms.

Should I use the svc sources here, too (how to do this ? ) or should I install a prebuilt packed (for Linux and for Windows) Are the "2.4.0" ones in Sourceforge fpc-2.4.0-1.i386.rpm <http://sourceforge.net/projects/freepascal/files/Linux/2.4.0/fpc-2.4.0-1.i386.rpm/download>, fpc-2.4.0-1.src.rpm
<http://sourceforge.net/projects/freepascal/files/Linux/2.4.0/fpc-2.4.0-1.src.rpm/download> and fpc-2.4.0.i386-win32.exe
<http://sourceforge.net/projects/freepascal/files/Win32/2.4.0/fpc-2.4.0.i386-win32.exe/download> the appropriate files ?

Will I STILL be able to use the Lazarus installation once I updated FPC ?

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100317/2827c1a8/attachment.html>

Reply by email

Paul Ishenin
to Michael Schnell
Michael Schnell wrote 12 lines
On 03/16/2010 12:04 AM, Paul Ishenin wrote: > First you need to install fpc >= 2.4.0 on all your systems. There are > packages available on fpc site for most of platforms. Should I use the svc sources here, too (how to do this ? ) or should I install a prebuilt packed (for Linux and for Windows) Are the "2.4.0" ones in Sourceforge fpc-2.4.0-1.i386.rpm <http://sourceforge.net/projects/freepascal/files/Linux/2.4.0/fpc-2.4.0-1.i386.rpm/download>, fpc-2.4.0-1.src.rpm <http://sourceforge.net/projects/freepascal/files/Linux/2.4.0/fpc-2.4.0-1.src.rpm/download> and fpc-2.4.0.i386-win32.exe <http://sourceforge.net/projects/freepascal/files/Win32/2.4.0/fpc-2.4.0.i386-win32.exe/download> the appropriate files ?

You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which was already fixes in the svn version. So you can install 2.4.0 and checkout an svn version. Then do "make clean all", "sudo make install". Depends on your linux you need also to pass install directory (for make install) or fpc will be installed in /usr/local/lib

Will I STILL be able to use the Lazarus installation once I updated FPC ?

You are able to use both fpc versions if they are properly installed (both to /usr/lib or both to /usr/local/lib). You need to pass PP=/usr/lib/fpc/fpc2.5.1/ppc386 if you want to building lazarus using paticular fpc version.

Anyway, all that info is available in the wiki. Try to find it.

Best regards,
Paul Ishenin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100318/9049ab94/attachment-0001.html>

Reply by email

Michael Schnell
to Paul Ishenin: You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which…
Paul Ishenin wrote 6 lines
You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which was already fixes in the svn version. So you can install 2.4.0 and checkout an svn version. Then do "make clean all", "sudo make install". Depends on your linux you need also to pass install directory (for make install) or fpc will be installed in /usr/local/lib

It seems not to be that easy to install fpc on my Suse 11.1 :(

I found the fpc '2.4.0-1 rpm on Sourceforge.

To install this ncurses-lib is needed. I found same using "rpm finder" (versions 5.7-.7 and 5.7-3)

To install this ncurses-base is needed I found same using "rpm finder" (versions 5.7-.7 and 5.7-3)

With these RPMs available (either of 5.7-7 or 5.7-3 versions) I can start installing the fpc 2.4.0-1 rpm. But when "accepting" the setup both with versions 5.7-7 and 5.7-3 I get a "bad magic" error with "ncurses-base". So I needed to "ignore" the dependency error. I suppose fpc will work for me anyway, as ncurses supposedly only is needed for ide.

Now I was able to install fpc-docs 2.4.0-1 from Sourceforge.

I was not able to install fpc-src 2.4.0-1 from Sourceforge due to "MD5-error". So I suppose Lazarus will not work out of the box, as same needs the FPC sources.

I will try to point Lazarus to the FPC sources I got from the svn, but I'm not sure that this really will make it work.

Thanks for any additional pointers,
-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100322/5adba840/attachment.html>

Reply by email

Vincent Snijders
to Michael Schnell
Michael Schnell wrote
I was not able to install fpc-src 2.4.0-1 from Sourceforge due to "MD5-error". So I suppose Lazarus will not work out of the box, as same needs the FPC sources.

From what mirror did you download?

Vincent

Reply by email

Michael Schnell
to Paul Ishenin: You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which…
Paul Ishenin wrote
Then do "make clean all", "sudo make install". Depends on your linux you need also to pass install directory (for make install) or fpc will be installed in /usr/local/lib

After installing the fpc 2.4.0 RPM, doing "fpc" I get

"Free Pascal Compiler version 2.4.0 [2009/12/31] for i386"

Sounds OK,

"make clean" and "make all" seems to work (takes a while and does not issue an error message).

"sudo make install" seems to work, too, but afterwards I still get

"Free Pascal Compiler version 2.4.0 [2009/12/31] for i386"

"which fpc" indeed says "/usr/local/bin/fpc" so this fpc seems to be used.

"ls /usr/local/bin/fpc -l" says "-rwxr-xr-x 1 root root 281788 2010-03-22 16:32 /usr/local/bin/fpc"

So this in fact seems to be the one I just compiled. It just offers a peculiar date.

OTOH,

"whereis fpc" provides
"/usr/bin/fpc"
"/usr/lib/fpc"
"/usr/bin/X11/fpc"
"/usr/local/bin/fpc"
"/usr/local/lib/fpc"

with some of these files having other dates

Do you think I'm fine here ?

-Michael

Reply by email

Michael Schnell
to Vincent Snijders: From what mirror did you download? Vincent
Vincent Snijders wrote 6 lines
Michael Schnell schreef: > I was not able to install fpc-src 2.4.0-1 from Sourceforge due to > "MD5-error". So I suppose Lazarus will not work out of the box, as > same needs the FPC sources. From what mirror did you download?

I'll check this.

Anyway, "make bigide" in the Lazarus svn directory did finish without an error message.

I seem to be able to start the resulting executable (by "selecting system default" in startlazarus) and it does identify as 0.9.29 as of today.

Trying to make the LCL by "rebuild Lazarus" does not work as it tries to create the old (write protected) version.

I'll check the wiki for informations on hat to do....

-Michael

Reply by email

Vincent Snijders
to Michael Schnell: I'll check this. Anyway, "make bigide" in the Lazarus svn directory did finish without…

2010/3/22 Michael Schnell :

Show quoted text 10 lines
On 03/22/2010 04:48 PM, Vincent Snijders wrote: > Michael Schnell schreef: >> I was not able to install fpc-src 2.4.0-1 from Sourceforge due to >> "MD5-error". So I suppose Lazarus will not work out of the box, as >> same needs the FPC sources. > > From what mirror did you download? I'll check this.

The reason I ask this: I want to find out, if a corrupted file is on all SF mirrors or on just one or that your download was the only corrupted one.

Vincent

Reply by email

Vincent Snijders
to Michael Schnell
Michael Schnell wrote 6 lines
On 03/22/2010 04:48 PM, Vincent Snijders wrote: > From what mirror did you download? ftp://fr2.rpmfind.net/linux/fedora/development/13/i386/os/Packages/ncurses-base-5.7-7.20100130.fc13.i686.rpm Is that bad in any way ? Should I try something else ?

Oh, I thought you had a problem with fpc-src:

I was not able to install fpc-src 2.4.0-1 from Sourceforge due to "MD5-error".

That is a rpm offered by the lazarus team, so that is an error I could try to prevent for the next person.

Vincent

Reply by email

Michael Schnell
to Vincent Snijders
Vincent Snijders wrote 11 lines
Michael Schnell schreef: > On 03/22/2010 04:48 PM, Vincent Snijders wrote: >> From what mirror did you download? > ftp://fr2.rpmfind.net/linux/fedora/development/13/i386/os/Packages/ncurses-base-5.7-7.20100130.fc13.i686.rpm > > > Is that bad in any way ? Should I try something else ? > That is a rpm offered by the lazarus team, so that is an error I could try to prevent for the next person.

I see. Anyway, I suppose anybody who wants to install Lazarus from source code will need to separately install FPC. To install FPC from source code you first need a binary FPC 2.4 version and same - if installed from the RPM provided - seems to request the ncurses-base RPM which seems to be broken.

Oh, I thought you had a problem with fpc-src: > I was not able to install fpc-src 2.4.0-1 from Sourceforge due to

"MD5-error".

In fact that is true as well. I just did not retry to install this, as I do have the svn sources of FPC and just pointed Lazarus to same.

But anyway, I re-downloaded the file and retried to install it and again I got the MD5 error. Here is the link I used:

http://sourceforge.net/projects/freepascal/files/Linux/2.4.0/fpc-2.4.0-1.src.rpm/download

Thanks for helping to make these things work !
-Michael

Reply by email

Michael Schnell
to Paul Ishenin: You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which…
Paul Ishenin wrote
Anyway, all that info is available in the wiki. Try to find it.

In fact it was quite easy. I did not even need to check the Wiki. Just setting the appropriate paths in "Environmet" (and restarting Lazarus after that !! ) did the trick and I now can recompile the IDE and the LCL.

I just am a little bit unsure if I really use the correct compiler

After compiling FPC from the source code I have

268572 2009-12-31 16:23 /usr/bin/fpc
---> Free Pascal Compiler version 2.4.0 [2009/12/31] for i386

268572 2009-12-31 16:23 /usr/bin/X11/fpc
---> Free Pascal Compiler version 2.4.0 [2009/12/31] for i386

281788 2010-03-22 16:32 /usr/local/bin/fpc
---> Free Pascal Compiler version 2.4.0 [2009/12/31] for i386

so I set the Lazarus compiler path to /usr/local/bin/fpc. But uis this good enough ?

A seemingly related question:

At first I left the compiler setting to be /usr/bin/fpc. After recompilinig everything, I could step into the LCL functions with F7.

Then I set it to /usr/local/bin/fpc
After recompilinig everything, I could not step into the LCL functions with F7 any more.

How did this happen ?
I suppose the LCL is now compiled without debug information. How can I reenable this.

-Michael

Reply by email

Michael Schnell
to Paul Ishenin: You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which…

On 03/17/2010 11:58 PM, Paul Ishenin wrote:

If I do a "test" in project options I get seven Warnings:

WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/httpd20/httpd.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd13/httpd.ppu WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/httpd22/apriconv.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd20/apriconv.ppu WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/httpd22/apr.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd20/apr.ppu WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/httpd22/aprutil.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd20/aprutil.ppu WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/httpd22/httpd.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd20/httpd.ppu WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/fv/dialogs.ppu, /home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/dialogs.ppu WARNING: ppu exists twice:
/usr/lib/fpc/2.4.0/units/i386-linux/fv/menus.ppu,
/home/mschnell/Downloads/svn/lazarus/trunk/lcl/units/i386-linux/menus.ppu

I don't know why /usr/lib/fpc is known to Lazarus (it's not configured in the "Environment" menu).

Is this a problem ?

but if I rename this directory, I get this:

ERROR: compiled FPC unit not found: system.ppu
ERROR: compiled FPC unit not found: sysutils.ppu
ERROR: compiled FPC unit not found: classes.ppu
ERROR: compiled FPC unit not found: avl_tree.ppu
ERROR: compiled FPC unit not found: zstream.ppu

and Lazarus does not compile anything any more.

-Michael

Reply by email

Hans-Peter Diettrich
to Michael Schnell
Show quoted text 6 lines
If I do a "test" in project options I get seven Warnings: WARNING: ppu exists twice: /usr/lib/fpc/2.4.0/units/i386-linux/httpd20/httpd.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd13/httpd.ppu

I sometimes get the same duplicate errors. It's an FPC thing, possibly related to Apache versions (Marc said).

I don't know why /usr/lib/fpc is known to Lazarus (it's not configured in the "Environment" menu).

FPC is used by Lazarus, and it has its own settings.

DoDi

Reply by email

Michael Schnell
Paul Ishenin wrote
please check your /etc/fpc.cfg and if exists .fpc.cfg It must to point to corrct fpc units.

in /etc/fpc.cfg I see this:

....
#IFDEF FPCAPACHE_1_3
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd13/ #ELSE
#IFDEF FPCAPACHE_2_0
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd20 #ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd22 #ENDIF
#ENDIF

# searchpath for units and other system dependent things -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
...

Obviously this is used by Lazarus and FPC.

the FPC "make install" seems to have created the appropriate directories and file in /usr/lib.

I don't know if that is good or bad.

Where do you suggest are the "correct fpc units" ?

/etc/.fpc does not exist.

Also check that your ppc386 symlink points to correct fpc version.

I have this:

which ppc386

/usr/bin/ppc386

ls -l /usr/bin/ppc386

lrwxrwxrwx 1 root root 25 2010-03-22 15:24 /usr/bin/ppc386 -> /usr/lib/fpc/2.4.0/ppc386

ls -l /usr/lib/fpc/2.4.0/ppc386

-rwxr-xr-x 1 root root 2149452 2009-12-31 16:23 /usr/lib/fpc/2.4.0/ppc386

so this does not seem to be the one compiled from the svn :(

But where id fpc's "make install" move the correct executable ?

Thanks a lot for all your help !
-Michael

Reply by email

Michael Schnell
Paul Ishenin wrote
Also check that your ppc386 symlink points to correct fpc version.

Now I've got another very peculiar problem.

I copied the ppc386 executable the fpc make created in the "compiler" directory to the directory the /usr/bin/ppc386 symlink points to (before, that file was older and smaller, supposedly generated by the RPM) But now I can't rebuild Lazarus and get this error:

masks.pas(29,22) Fatal: Can't find unit Contnrs used by Masks

If I do "make clean" and "make bigide" in the Lazarus svn directory I get the same error.

So I'm completely crashed :(

I have no idea at all what happens at this point.

-Michael

Reply by email

Michael Schnell
Paul Ishenin wrote
The best solution was to "make install" to the /usr/lib instead of default location. But I don't remember the arguments.

it's make install INSTALL_PREFIX=/usr/bin

seems to work !

Thanks!
-Michael

Reply by email

Michael Schnell

It finally works. I now really get

"Free Pascal Compiler version 2.5.1 [2010/03/23] for i386" when I do "fpc" so I do have the compiler that is built from the svn.

I rebuilt Lazarus and the LCL.

But the problem now is that I can't step into LCL units with F7.

Is it normal that doing "rebuild LCL" takes less than a second ?

-Michael

Reply by email

Hans-Peter Diettrich
to Michael Schnell: Now I've got another very peculiar problem. I copied the ppc386 executable the fpc make…
Show quoted text 6 lines
I copied the ppc386 executable the fpc make created in the "compiler" directory to the directory the /usr/bin/ppc386 symlink points to (before, that file was older and smaller, supposedly generated by the RPM) But now I can't rebuild Lazarus and get this error: masks.pas(29,22) Fatal: Can't find unit Contnrs used by Masks

That looks like a misplaced fpc source directory. The RPMs put fpc into /usr/lib/, the source erroneously into /usr/shared/.

DoDi

Reply by email

Michael Schnell
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote
That looks like a misplaced fpc source directory. The RPMs put fpc into /usr/lib/, the source erroneously into /usr/shared/.

Right ! two different versions of FPC 2.4.0 were installed :(. Works now. Thanks !
-Michael

Reply by email

Mattias Gaertner
to Michael Schnell: It finally works. I now really get "Free Pascal Compiler version 2.5.1 [2010/03/23] for…
Show quoted text 8 lines
It finally works. I now really get "Free Pascal Compiler version 2.5.1 [2010/03/23] for i386" when I do "fpc" so I do have the compiler that is built from the svn. I rebuilt Lazarus and the LCL. But the problem now is that I can't step into LCL units with F7.

Maybe you stripped the debug info from your application?

Is it normal that doing "rebuild LCL" takes less than a second ?

Yes. FPC is fast.

Mattias

Reply by email

Michael Schnell
to Michael Schnell: In fact it was quite easy. I did not even need to check the Wiki. Just setting the…

On 03/23/2010 10:42 AM, Michael Schnell wrote

Show quoted text 7 lines
At first I left the compiler setting to be /usr/bin/fpc. After recompilinig everything, I could step into the LCL functions with F7. Then I set it to /usr/local/bin/fpc After recompilinig everything, I could not step into the LCL functions with F7 any more.

Funny:

If I do F7 on

Button1.Caption := 'test';

it does step into the set procedure, but If I do it on

Caption:= 'test';

it just steps over it.

-Michael

Reply by email

Hans-Peter Diettrich
to Michael Schnell: Right ! two different versions of FPC 2.4.0 were installed :(. Works now. Thanks !…
Show quoted text 5 lines
> That looks like a misplaced fpc source directory. The RPMs put fpc > into /usr/lib/, the source erroneously into /usr/shared/. > Right ! two different versions of FPC 2.4.0 were installed :(. Works now. Thanks !

Can you please post what you did, or add your problem-detection-solution to the wiki?

I'm just collecting all details about possible installation woes, so that nobody else will have to ask the same questions over and over again. Herefore the exact steps to spot and solve the problem are required. E.g. on Ubuntu I found no simple way yet, to move the misplaced sources to the right directory - dunno how to do this in a console or script :-(

DoDi

Reply by email

Michael Schnell
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 9 lines
Michael Schnell schrieb: >> That looks like a misplaced fpc source directory. The RPMs put fpc >> into /usr/lib/, the source erroneously into /usr/shared/. >> > Right ! two different versions of FPC 2.4.0 were installed :(. Works > now. Thanks ! Can you please post what you did,

Situation before starting:

- Suse 11.1
- fpc 2.2.4 installed from RPM from sourceforge
- Lazarus 0.9.28.2-beta installed from RPM from sourceforge

Wanting to install the latest "released" Lazarus from the RPM
- not possible due to broken RPM file in sourceforge

Now Wanting to install the current (FPC and) Lazarus from svn
- installed svn
- loaded fpc sources (Rev 15031)
- loaded Lazarus sources (Rev 24168)

Compiling FPC 2.4.x needs FPC 2.4.x so
- installed FPC 2.4.0-1 from sourceforge
- "make clean all" in the FPC svn trunk creating "Free Pascal Compiler version 2.5.1 [2010/03/23] for i386"
- "sudo make install" in the FPC svn trunk
- this installed the new FPC in the wrong place, so that the PATH pointed to the the old fpc 2.4.0-1
and seemingly Lazarus used part of same even it I set the path to the new compiler correctly
- after some more testing and asking in the forums
- "sudo make install INSTALL_PREFIX=/usr" in the FPC svn trunk seemed to install fpc 2.5.1 correctly, including the correct file /etc/fpc
- "make bigide" in the Lazarus svn trunk
- started Lazarus
- removed installed additional packages
- "tools" -> "configure build Lazarus" -> "Clean up and build all"
- Lazarus seems to work as expected

or add your problem-detection-solution to the wiki?

Please do this for me :)

I'm just collecting all details about possible installation woes, so that nobody else will have to ask the same questions over and over again.

GREAT !

Show quoted text 5 lines
Herefore the exact steps to spot and solve the problem are required. E.g. on Ubuntu I found no simple way yet, to move the misplaced sources to the right directory - dunno how to do this in a console or script :-(

Seemingly on SUSE the FPC RPM uses a different install directory than the fpc make default. I feel that this is not a good idea.

Moreover the Lazarus RPM is broken. Maybe this could be fixed.

Thanks !
-Michael

Reply by email

Vincent Snijders
to Michael Schnell: I retried using the "direct link" link on the sourceforge page with the same results:…
Michael Schnell wrote 8 lines
On 03/23/2010 10:08 AM, Vincent Snijders wrote: > That is a general link for all mirrors. Please give the direct link > (or the miror name). I retried using the "direct link" link on the sourceforge page with the same results: http://downloads.sourceforge.net/project/freepascal/Linux/2.4.0/fpc-2.4.0-1.src.rpm?use_mirror=mesh

I downloaded that file and ran the rpm check on it: vincent at fpclin32:~/tmp$ rpm -K fpc-2.4.0-1.src.rpm fpc-2.4.0-1.src.rpm: sha1 md5 OK

It was ok.

I ran md5sum on it:
vincent at fpclin32:~/tmp$ md5sum fpc-2.4.0-1.src.rpm 2394ebb4ce81d6d16663ec4c5ac03313 fpc-2.4.0-1.src.rpm

I suspect something went wrong when you downloaded that file. You can confirm it by running md5sum on it, like I did just above. If you get the same results, then something else is wrong. Please let us know what you find out.

Vincent

Reply by email

Vincent Snijders
to Michael Schnell: Situation before starting: - Suse 11.1 - fpc 2.2.4 installed from RPM from sourceforge -…
Michael Schnell wrote
Seemingly on SUSE the FPC RPM uses a different install directory than the fpc make default. I feel that this is not a good idea. Moreover the Lazarus RPM is broken. Maybe this could be fixed.

What Lazarus RPM is broken? You only told about a fpc src.rpm, that you downloaded from the freepascal project on SF. Note that you only need a src.rpm, if you want to (re)build a rpm for another architecture, not for Lazarus.

Vincent

Reply by email

Michael Schnell
Vincent Snijders wrote
What happens if you execute the same command lines as I did in a console? What is the exact output?

rpm -K fpc-2.4.0-1.src.rpm
fpc-2.4.0-1.src.rpm: sha1 md5 OK

md5sum fpc-2.4.0-1.src.rpm
2394ebb4ce81d6d16663ec4c5ac03313 fpc-2.4.0-1.src.rpm

seems OK

What is the exact message you got from Yast?

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100326/d861bc8f/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot.png
Type: image/png
Size: 28700 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100326/d861bc8f/attachment-0001.png>

Reply by email

Michael Schnell
to Vincent Snijders: What Lazarus RPM is broken? You only told about a fpc src.rpm, that you downloaded from…
Vincent Snijders wrote 7 lines
Michael Schnell schreef: > Seemingly on SUSE the FPC RPM uses a different install directory than > the fpc make default. I feel that this is not a good idea. > > Moreover the Lazarus RPM is broken. Maybe this could be fixed. What Lazarus RPM is broken?

I never found out how to overcome this. I seem to remember that I also asked in the forum some day.

You only told about a fpc src.rpm, that you downloaded from the freepascal project on SF. Note that you only need a src.rpm, if you want to (re)build a rpm for another architecture, not for Lazarus.

I nows did build fpc and Lazarus from the svn. Seems to work fine.

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100326/679e034f/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot-1.png
Type: image/png
Size: 27571 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100326/679e034f/attachment-0001.png>

Reply by email