Sign in Join

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

Mailing lists / lazarus / 2011-01

No FPC sources on lazarus start....

7 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

I installed FPC on Win XP-Pro from the 2.4.2 installer. Then I retrieved the lazarus sources from SVN.
Then I did make clean all for lazarus.
All this worked OK.

But now when I start lazarus it complains about missing fpc sources and it looks like the fpc 2.4.2 does indeed *not* deposit any source files...
At least I cannot find any in the dir I installed FPC into. All subfolders there are:
bin
demo
doc
examples
msg
units (which does not contain the sources)

So no source folder. :-(

What can I do now?

Bo Berglund Developer in Sweden

Reply by email

David Emerson
to Bo Berglund

Sounds like you installed the compiler part, but not the fpc sources.

Try here: http://www.freepascal.org/down/source/sources.var

Bo Berglund wrote 33 lines
I installed FPC on Win XP-Pro from the 2.4.2 installer. Then I retrieved the lazarus sources from SVN. Then I did make clean all for lazarus. All this worked OK. But now when I start lazarus it complains about missing fpc sources and it looks like the fpc 2.4.2 does indeed *not* deposit any source files... At least I cannot find any in the dir I installed FPC into. All subfolders there are: bin demo doc examples msg units (which does not contain the sources) So no source folder. :-( What can I do now? -- Bo Berglund Developer in Sweden -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mark Morgan Lloyd
to David Emerson
David Emerson wrote 25 lines
Sounds like you installed the compiler part, but not the fpc sources. Try here: http://www.freepascal.org/down/source/sources.var On Mon 3 Jan 2011, Bo Berglund wrote: > I installed FPC on Win XP-Pro from the 2.4.2 installer. > Then I retrieved the lazarus sources from SVN. > Then I did make clean all for lazarus. > All this worked OK. > > But now when I start lazarus it complains about missing fpc sources > and it looks like the fpc 2.4.2 does indeed *not* deposit any source > files... > At least I cannot find any in the dir I installed FPC into. All > subfolders there are: > bin > demo > doc > examples > msg > units (which does not contain the sources) > > So no source folder. :-( > > What can I do now?

I don't know whether this is any help and it is oriented towards Linux, but I'd add that I normally build FPC from source, in part because doing so is a good test that the compiler is working on the machine in question. Having done so I do a make install and check that the symlink in /usr/local/bin is OK, then make clean and copy the fpcsrc directory into the appropriate place in /usr/local/lib (I'm being intentionally vague here since this will vary depending on version number).

Having done that, one is left with a consistent tree of binaries and source. Start Lazarus with the --pcp= option so that the IDE you're running uses a private configuration file that specifies how it can find the matching compiler.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Hans-Peter Diettrich
to Bo Berglund: I installed FPC on Win XP-Pro from the 2.4.2 installer. Then I retrieved the lazarus…
Show quoted text 8 lines
I installed FPC on Win XP-Pro from the 2.4.2 installer. Then I retrieved the lazarus sources from SVN. Then I did make clean all for lazarus. All this worked OK. But now when I start lazarus it complains about missing fpc sources and it looks like the fpc 2.4.2 does indeed *not* deposit any source files...

For some obscure reason you have to download the FPC sources separately, too.

AFAIR it's possible to download the sources only (even from SVN), then set the path to the existing FPC bin directory, and do a "make clean all". Afterwards a "make install" may be helpful (copies the binaries to \PP\... by default), but some missing pieces (mostly exe's) should be copied from the old bin directory as well - don't mix up 32 and 64 bit tools!

DoDi

Reply by email

Bo Berglund
to Mark Morgan Lloyd: I don't know whether this is any help and it is oriented towards Linux, but I'd add that…
Mark Morgan Lloyd wrote 40 lines
David Emerson wrote: > Sounds like you installed the compiler part, but not the fpc sources. > > Try here: http://www.freepascal.org/down/source/sources.var > > On Mon 3 Jan 2011, Bo Berglund wrote: >> I installed FPC on Win XP-Pro from the 2.4.2 installer. >> Then I retrieved the lazarus sources from SVN. >> Then I did make clean all for lazarus. >> All this worked OK. >> >> But now when I start lazarus it complains about missing fpc sources >> and it looks like the fpc 2.4.2 does indeed *not* deposit any source >> files... >> At least I cannot find any in the dir I installed FPC into. All >> subfolders there are: >> bin >> demo >> doc >> examples >> msg >> units (which does not contain the sources) >> >> So no source folder. :-( >> >> What can I do now? I don't know whether this is any help and it is oriented towards Linux, but I'd add that I normally build FPC from source, in part because doing so is a good test that the compiler is working on the machine in question. Having done so I do a make install and check that the symlink in /usr/local/bin is OK, then make clean and copy the fpcsrc directory into the appropriate place in /usr/local/lib (I'm being intentionally vague here since this will vary depending on version number). Having done that, one is left with a consistent tree of binaries and source. Start Lazarus with the --pcp= option so that the IDE you're running uses a private configuration file that specifies how it can find the matching compiler.

I have just downloaded the 2.4.2 source zipfile and now I have the problem of extracting it to the right location...
My FPC install dir is C:\Programs\fpc\2.4.2\
Where should I put the sources?
In a subdir to this named source?

The zipfile expands to a top folder named fpc-2.4.2, which obviously is not my install folder name....
And inside there are no subdirs named source or anything like that.

Advice please?

Bo Berglund Developer in Sweden

Reply by email

Sven Barth
to Bo Berglund: On Tue, 04 Jan 2011 09:10:26 +0000, Mark Morgan Lloyd I have just downloaded the 2.4.2…
Bo Berglund wrote 57 lines
On Tue, 04 Jan 2011 09:10:26 +0000, Mark Morgan Lloyd wrote: > David Emerson wrote: >> Sounds like you installed the compiler part, but not the fpc sources. >> >> Try here: http://www.freepascal.org/down/source/sources.var >> >> On Mon 3 Jan 2011, Bo Berglund wrote: >>> I installed FPC on Win XP-Pro from the 2.4.2 installer. >>> Then I retrieved the lazarus sources from SVN. >>> Then I did make clean all for lazarus. >>> All this worked OK. >>> >>> But now when I start lazarus it complains about missing fpc sources >>> and it looks like the fpc 2.4.2 does indeed *not* deposit any source >>> files... >>> At least I cannot find any in the dir I installed FPC into. All >>> subfolders there are: >>> bin >>> demo >>> doc >>> examples >>> msg >>> units (which does not contain the sources) >>> >>> So no source folder. :-( >>> >>> What can I do now? > > I don't know whether this is any help and it is oriented towards Linux, > but I'd add that I normally build FPC from source, in part because doing > so is a good test that the compiler is working on the machine in > question. Having done so I do a make install and check that the > symlink in /usr/local/bin is OK, then make clean and copy the fpcsrc > directory into the appropriate place in /usr/local/lib (I'm being > intentionally vague here since this will vary depending on version number). > > Having done that, one is left with a consistent tree of binaries and > source. Start Lazarus with the --pcp= option so that the IDE you're > running uses a private configuration file that specifies how it can find > the matching compiler. > I have just downloaded the 2.4.2 source zipfile and now I have the problem of extracting it to the right location... My FPC install dir is C:\Programs\fpc\2.4.2\ Where should I put the sources? In a subdir to this named source? The zipfile expands to a top folder named fpc-2.4.2, which obviously is not my install folder name.... And inside there are no subdirs named source or anything like that. Advice please?

The top folder (fpc-2.4.2) should contain directories like "compiler", "rtl", "packages", etc. The best place would be to put those into your "C:\Programs\fpc\2.4.2" directory and point Lazarus' FPC dir setting to that directory (then everything is where it belongs ^^).

Another possibility (your choice) is to put all those directories into a "source" directory in "C:\Programs\fpc\2.4.2" and point Lazarus to that.

You are pretty free here, but Lazarus checks that "rtl" and "packages" directories exist in the set source directory.

Regards,
Sven

Reply by email