[fpc-pascal] Strange compile error

Tomas Hajny XHajT03 at hajny.biz
Thu May 17 13:26:14 CEST 2012

On Thu, May 17, 2012 11:07, dhkblaszyk at zeelandnet.nl wrote:

> Second try. My previous email with attachement got blocked
> probably. I will send the files now in two emails. Just put everything
> together in one folder.

 First, I'd recommend renaming your main program from video.pp to
something else to avoid conflict with unit video which is one of RTL

 Second, OpenCV uses unit Dialogs in its implementation. FPC provides unit
Dialogs as part of the FreeVision package (fv). FreeVision uses unit
Video, which is why adding OpenCV triggered your problem. However, I
suspect that the original OpenCV did not intend to use FreeVision
(considering the headers referring to use with Delphi) but rather some
GUI support unit (assuming that a different unit with the same name may
be distributed with Delphi and probably also Lazarus/LCL). I can see at
least one call to a function probably provided by that unit being
commented out in the provided source so it's possible that the reference
to this unit (and the whole uses clause in the implementation section of
OpenCV.pas - lines 1718 and 1719) may be removed. Once you fix these,
there's a bunch of other problems, but these are not related to your
original post.


More information about the fpc-pascal mailing list