Forum > Unix

compile pascal source on Linux by FPC ?

<< < (2/3) > >>

MarkMLl:

--- Quote from: tissatussa on August 28, 2022, 03:56:43 pm ---i can put a ZIP with the source here.

your newest option (compile the Moustique chess engine) DID succeed according to the compilation line on that page : i get a working binary.

--- End quote ---

Welcome to the forum, and congratulations on an exemplary first message: a clear statement of what you were trying to do, the compiler version etc. clearly shown in the message (rather than in the sig), and full error messages.

MarkMLl

hansotten:
I had a look at the booot 6.5 sources. Looks like Windows is involved (handles).
Doubt it will run as is n Linux.

Fred vS:

--- Quote from: tissatussa on August 28, 2022, 03:56:43 pm ---i can put a ZIP with the source here.

--- End quote ---

Hum, it will not be "out-of-the-box" to compile this project for Linux because there are many call to the "Windows" unit, like GetStdHandle, STD_INPUT_HANDLE, etc...
But, with some (many) cups coffee, and many {$ifndef mswindows} ... {$else} ... {$endif} it is doable.

tissatussa:
thanks for pointing this out .. i often find sources (of other chess engines, in C, C++, D, etc) which are typical for Windows and they also are hard to convert / adjust for Linux .. sometimes i succeed, but it's rare.  I leave it for now .. nevermind.

Fred vS:
If you are interested by Chess engine-program, here other excellent fpc projects compatible for Windows and Unix OS (all done by Roland Chastain):

Chess engines:
https://gitlab.com/rchastain/mater
https://github.com/rchastain/alouette

Chess programs:
https://github.com/rchastain/nero5
https://github.com/rchastain/eschecs

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version