Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Sven Barth via fpc-pascal
Carlo Kok via fpc-pascal schrieb am Mi., 2. Sep. 2020, 15:01: > On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote: > > Carlo Kok via fpc-pascal schrieb am > Mi., 2. Sep. 2020, 11:09: > > > > Is there something else I need to do to allow FFI to work on arm64? (Does > this depend on

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Carlo Kok via fpc-pascal
On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote: > Carlo Kok via fpc-pascal schrieb am Mi., 2. > Sep. 2020, 11:09: >> __ >> >> Is there something else I need to do to allow FFI to work on arm64? (Does >> this depend on a dylib? or a static library?, and do I need to explicitly

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Sven Barth via fpc-pascal
Carlo Kok via fpc-pascal schrieb am Mi., 2. Sep. 2020, 11:09: > Seems I had to use ffi.manager.pas too. However when building then it > fails with; > > Undefined symbols for architecture arm64: > > "_ffi_call", referenced from: > _FFI.MANAGER_$$_FFIINVOKE$crc7AE31AA0 in ffi.manager.o >

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-09-02 Thread Carlo Kok via fpc-pascal
Seems I had to use ffi.manager.pas too. However when building then it fails with; Undefined symbols for architecture arm64: "_ffi_call", referenced from: _FFI.MANAGER_$$_FFIINVOKE$crc7AE31AA0 in ffi.manager.o "_ffi_closure_alloc", referenced from:

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-08-19 Thread Carlo Kok via fpc-pascal
It looks like I misread the error completely, and presumed, from the include logic that it was x86_64 / x86 only. It compiles now, thanks! On Wed, Aug 19, 2020, at 14:09, Sven Barth via fpc-pascal wrote: > Carlo Kok via fpc-pascal schrieb am Mi., > 19. Aug. 2020, 13:17: >> Hi, >> >> for

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-08-19 Thread Sven Barth via fpc-pascal
Carlo Kok via fpc-pascal schrieb am Mi., 19. Aug. 2020, 13:17: > Hi, > > for PascalScript FFI support, are there plans to support RTTI .Invoke, or > any form of FFI available to do dynamic invoke from Pascalscript to FPC/api > code? > Rtti.Invoke is available in 3.2.0 however for all platforms

Re: [fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-08-19 Thread Michael Van Canneyt via fpc-pascal
On Wed, 19 Aug 2020, Carlo Kok via fpc-pascal wrote: Hi, for PascalScript FFI support, are there plans to support RTTI .Invoke, or any form of FFI available to do dynamic invoke from Pascalscript to FPC/api code? As far as I know, the RTTI.Invoke is there. There are even tests for it. We

[fpc-pascal] FFI or RTTI invoke for Apple arm64

2020-08-19 Thread Carlo Kok via fpc-pascal
Hi, for PascalScript FFI support, are there plans to support RTTI .Invoke, or any form of FFI available to do dynamic invoke from Pascalscript to FPC/api code? -- Carlo Kok ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org