Re: [fpc-pascal] OpenCV

2020-02-14 Thread Adriaan van Os

Sven,

You could try to use this modified version of Swig which is supposed to 
support Delphi:Â https://github.com/FMXExpress/swig-delphi


I played a bit with SWIG, but my impression is that it will take considerable time to get OpenCV to 
compile.


SWIG 4.0.1 did build out of the box on OSX, the Delphi version did not. Porting the Delpi changes 
to a newer version of SWIG will take time too. Is there any special reason why Delphi support is 
not accepted for the SWIG main code tree ?


It is strange that SWIG doesn't have a "neutral" C target language option: C++ wrappers for use 
as-if-by-C.


I will write the C++ wrappers by hand for a few OpenCV functions I need. And 
see from there.

Thanks for the replies.

Regards,

Adriaan van Os

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] OpenCV

2020-02-14 Thread Adriaan van Os
SWIG 4.0.1 did build out of the box on OSX, the Delphi version did not. Porting the Delpi changes 
to a newer version of SWIG will take time too. Is there any special reason why Delphi support is 
not accepted for the SWIG main code tree ?


I found . It looks like tha patches for 
Delphi (and FPC) just needs some rework, to get included. Projects like these (swig-delphi) tend to 
die out, unless included in the main code tree.


Regards,

Adriaan van Os

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] OpenCV

2020-02-14 Thread Henry Vermaak via fpc-pascal
On Thu, 13 Feb 2020 at 13:26, Adriaan van Os  wrote:
>
>
> I looked around on the web for OpenCV Pascal bindings. What I found, seems to 
> be based (mostly) on
> the OpenCV C interfaces, which covers only part of OpenCV.
>
> Alternatives are:
>8---
> 2. Hook into the Python wrapper/bindings generator >

I think using the python/java generator is the only way to make
anything that resembles a complete binding.  As an intermediate step I
hoped that the generated C bindings could be run through h2pas, but
h2pas has never worked without manual tinkering for me.  In the long
run a class-based binding would be great to have.  I've been meaning
to look into this, but digging through thousands of lines of python is
not my idea of fun.

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] OpenCV

2020-02-14 Thread Sven Barth via fpc-pascal
Adriaan van Os  schrieb am Fr., 14. Feb. 2020, 12:22:

> > SWIG 4.0.1 did build out of the box on OSX, the Delphi version did not.
> Porting the Delpi changes
> > to a newer version of SWIG will take time too. Is there any special
> reason why Delphi support is
> > not accepted for the SWIG main code tree ?
>
> I found . It
> looks like tha patches for
> Delphi (and FPC) just needs some rework, to get included. Projects like
> these (swig-delphi) tend to
> die out, unless included in the main code tree.
>

You did look at the date right? They are many years older then the github
fork I linked to so those will probably work even less.

I agree though that some it should become part of their upstream, but for
that there first needs to be a working implementation. That is also
probably the reason they don't have it yet: no version got far enough...

Regards,
Sven

>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] ncurses 6

2020-02-14 Thread Kevin Monceaux
Pascal Fans,

The ncurses and oCRT example programs appear to have an issue with ncurses
6.  Attempting to compile them gets an undefined reference to symbol
'keypad' error.  Adding {$LINKLIB tinfow} to the affected programs works
around the issue.  The ncurses units might need to use:

pkg-config --libs ncursesw

to gracefully determine which libraries need to be linked against based on
the system's ncurses version.  On my Gentoo Linux system, with ncurses
6.1_p20190609, pkg-config --libs ncursesw returns:

-lncursesw -ltinfow



-- 

Kevin
http://www.RawFedDogs.net
http://www.Lassie.xyz
http://www.WacoAgilityGroup.org
Bruceville, TX

What's the definition of a legacy system? One that works!
Errare humanum est, ignoscere caninum.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal