Sign in Join

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

Mailing lists / fpc-devel / 2021-10

different fpc dir structure on different platforms?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Jos Wegman

Hi,

I have two virtual machines
1. Debian 11
2. Win 10
In both machines I want to install the fpc compiler from sourcecode.

I create a base directory and two subdirectories.
fpc -> fpcsrc
      -> fpcbin

I clone the sourcecode from gitlab into the fpc\fpcsrc directory enter the directory and do a make all.
after that i do a make install INSTALL_PREFIX= ..\fpcbin

On both vm's the fpcbin directory contains the newly compiled fpc compiler.

If I check both fpcbin directories on the vm's the is a different directory structure.

My questions are:
Why is there a difference?
Where can i find documentation about these differences?

Below a short example of the directorystructure.

win
fpcbin
-bin
--x86_64-win64
-doc
--ide
--symbolic
-examples
-fpmkinst
-msg
-units
--x86_64-win64
---bzip2 (etc)

lin
fpcbin
-bin
-fpcpkgconfig
-lib
--fpc
---3.3.1
----fpmkinst
-----x86_64-linux64
----msg
----units
-----x86_64-linux64
---lexyacc
-share
--doc
---fpc-3.1.1
----bzip2 (etc)
-----examples

Sincerely,
Jos

Reply by email

Michael Van Canneyt
to Jos Wegman
Jos Wegman wrote 22 lines
Hi, I have two virtual machines 1. Debian 11 2. Win 10 In both machines I want to install the fpc compiler from sourcecode. I create a base directory and two subdirectories. fpc -> fpcsrc       -> fpcbin I clone the sourcecode from gitlab into the fpc\fpcsrc directory enter the directory and do a make all. after that i do a make install INSTALL_PREFIX= ..\fpcbin On both vm's the fpcbin directory contains the newly compiled fpc compiler. If I check both fpcbin directories on the vm's the is a different directory structure. My questions are: Why is there a difference?

Because the directory structure adheres to the platform conventions. On windows, all is below 1 directory, the program install directory. (this is PREFIX)

On linux/unix, the compiler is in PREFIX/lib/fpc/VERSION and symlinks are made from PREFIX/bin/ to the actual binaries.

Where can i find documentation about these differences?

There is no documentation of this.

Michael.

Reply by email