Lazarus

Programming => Packages and Libraries => Ported from Delphi/Kylix => Topic started by: DonAlfredo on June 30, 2018, 11:18:07 am

Title: ZXing
Post by: DonAlfredo on June 30, 2018, 11:18:07 am
Just to inform you.
I have ported the ZXing library towards FPC and Lazarus.

https://github.com/LongDirtyAnimAlf/ZXing.Delphi

Included are working demo's for Windows and Lazarus.
https://github.com/LongDirtyAnimAlf/ZXing.Delphi/tree/v_3.0/Lazarus

Please note.
This library makes extended use of generics.
ZXing library and demo's have been tested with FPC trunk and Lazarus trunk only.
Title: Re: ZXing
Post by: af0815 on June 30, 2018, 02:39:54 pm
Thx to DonAlfredo for his work.

I have done a try one year ago, but it was not successfull. So i know how much work it is, and how tricky some generic routines are programmed.
Title: Re: ZXing
Post by: DonAlfredo on June 30, 2018, 03:02:36 pm
You are welcome !

Porting was not that hard: the new Delphi compatible Generics made life much easier than before. Besides, the new source is still Delphi compatible !

I use this ZXing port for desktops together with an Android app that also scans qr-codes with the help of the native Java ZXing library.

All done with FPC and Lazarus and LAMW and Generics !!!
Title: Re: ZXing
Post by: af0815 on June 30, 2018, 03:36:55 pm
I have seen you work with v4l2. Some Cameras are only working with gstreamer.

Have you experience with gstreamer too ? I have not found any ported header, nor a project in Lazarus/Freepascal using this library for video and shooting still pictures.

 
Title: Re: ZXing
Post by: Xor-el on June 30, 2018, 03:47:49 pm
Just to inform you.
I have ported the ZXing library towards FPC and Lazarus.

https://github.com/LongDirtyAnimAlf/ZXing.Delphi

Included are working demo's for Windows and Lazarus.
https://github.com/LongDirtyAnimAlf/ZXing.Delphi/tree/v_3.0/Lazarus

Please note.
This library makes extended use of generics.
ZXing library and demo's have been tested with FPC trunk and Lazarus trunk only.

Edit:
Binaries for testing: https://github.com/LongDirtyAnimAlf/ZXing.Delphi/releases/tag/v3.5a

splendid, that's all I can say.
Good Job.
One Less Library to make FPC Compatible.  :D

Quick Question.
Is it possible for you to submit your changes as a pull request to the original repository.
it will make it less work to keep them in sync when the original repository makes an update.

Once again, well done and thanks.
Title: Re: ZXing
Post by: DonAlfredo on July 03, 2018, 01:41:57 pm
Small update.

Done: unit tests have been added.
Todo: solve some memory leaks.

Quote
Is it possible for you to submit your changes as a pull request to the original repository.

If I am ready with my work on this library, I will ask the original author.
However, I think changes are dim, due to the many changes.
Delphi compatibility is still maintained, so that will not be a show-stopper.

Quote
Have you experience with gstreamer too ?

No, I don't. Due to my limited time, I have to restricts my efforts to my current use of this lib.
Title: Re: ZXing
Post by: DonAlfredo on July 07, 2018, 01:58:08 pm
The work has been done.
ZXing has been ported 100%.
Consumed more effort due to memory-leaks: source had to be de-"ARC"-ed (ARC=auto-ref-count).

Two simple demo binaries (for Windows) are available:
https://github.com/LongDirtyAnimAlf/ZXing.Delphi/releases/latest

I have asked the author to have the two projects merged.
Title: Re: ZXing
Post by: avra on February 25, 2019, 10:51:41 am
I have asked the author to have the two projects merged.
Were they merged? What would be the recommended repo now?

Btw, it would be more convenient if there was a LPK file.