Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-25 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 23 Nov 2016, Alfred wrote: > > TL;DR: if this patch was accepted into NewPascal w/o comments or concerns, > > then "ouch"... > > Thanks for your advice. > This is exactly why NewPascal is here ! > > Have an idea. Implement. Make public. > perfect:=false; > while (NOT perfect) Use;

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-23 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 23 Nov 2016, Alfred wrote: > To enable cross from Windows towards Darwin, some changes in FPC were needed. > They have been added into NewPascal, and can be found here: > https://github.com/newpascal/freepascal/commit/a99fe9054957d2c42c780c4d05e59c6fbda31621 > Not meant to be 100%

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-21 Thread Jonas Maebe
> On 21 Nov 2016, at 11:40, Alfred wrote: > > > So, as far as I understand correctly, if a fpc abc.o file is presented > towards the linker, it replaces the extension with tbd and goes looking for > abc.tbd. > I checked: if I add a dummy abc.tbd in the same location, all

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-21 Thread Sven Barth
Am 21.11.2016 11:40 schrieb "Alfred" : > c++ code. Comments added inline. > > findFile(path): > Options::FileInfo Options::findFile(const std::string ) const > calls: You should check before this call whether the file exists. "tbdInfo.checkFileExists(*this, path.c_str());"

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-21 Thread Sven Barth
Am 21.11.2016 11:40 schrieb "Alfred" : > > Well. > > All files that are needed by the linker, have to be found by the linker. > The osxcrosstools use a findfile process that is a bit peculiar. And not fully understood by me. Perhaps you can help. > > c++ code. > >

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-21 Thread Jonas Maebe
Alfred wrote on Mon, 21 Nov 2016: So, as far as I understand correctly, if a fpc abc.o file is presented towards the linker, it replaces the extension with tbd and goes looking for abc.tbd. I checked: if I add a dummy abc.tbd in the same location, all goes well. That why I patched the

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-21 Thread Sven Barth
Am 21.11.2016 10:15 schrieb "Alfred" : > > Please skip my previous mail. > > I think I found the problem. > I had to patch osxcross-tools to work with FPC. > Now I need a new patch to include .or files ! In how far did you have to patch the tools? The .or file should already

Re: [fpc-devel] Crosscompiling win towards darwin

2016-11-21 Thread Jonas Maebe
Alfred wrote: > With the osxcross tools, cross-compilation of non-LCL programs from > Windows to Darwin is now successful. > > When compiling with LCL, one final error keeps popping up: > Error: linker: Undefined symbols for architecture i386: > Error: linker: "FPC_RESSYMBOL", referenced from: