[fpc-pascal] Strange compile error

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Fri May 18 01:19:08 CEST 2012

Hi Tomas,

That did the trick! I didn't notice the dialogs unit in the implementation section. After removing it everything works fine now. I got opencv running on windows and displaying the webcam feed on a opengl texture. I will put the code on the ccr as soon as I have access again. In the coming period I'll try to get it working for mac and linux as well after which the wrapper unit possibly could be added to the fpc packages hopefully.

Regards, Darius

On May 17, 2012, at 1:26 PM, Tomas Hajny wrote:

> 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
> units.
> 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.
> Tomas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list