Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: ketank on October 10, 2021, 01:29:12 AM

Title: How to install libzbar on rpi 4 8 gb arm7
Post by: ketank on October 10, 2021, 01:29:12 AM
Hi

I need to install zbar library on rpi  4 with arm7.
I did not find a package in the current tcz repo.

Please help. Demo scheduled for tomorrow.

Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: Juanito on October 10, 2021, 03:54:21 AM
Build instructions are given here: https://github.com/mchehab/zbar
Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: ketank on October 10, 2021, 04:28:27 AM
Thank you.
Will go thru it and post update.
Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: Rich on October 10, 2021, 08:10:35 AM
Hi ketank
Attaching extensions or binaries to posts is not allowed, if that is what you meant by  "post update".
Links to extensions or binaries are not allowed either.

If you are considering submitting an extension, Instructions can be found here:
https://web.archive.org/web/20200208152109/http://wiki.tinycorelinux.net/wiki:creating_extensions#submitting

Use the  tcesubmit  email address, not the  picoresubmit  address.
Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: ketank on October 10, 2021, 09:32:46 AM
Hello Rich

I was not suggesting any attachment just an update

I was able to compile but making it persistent was a big problem.
Finally installed in a custom folder and using LD_LIBRARY_PQTH

Thank yoi for your help.
Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: Rich on October 10, 2021, 10:31:07 AM
Hi ketank
I was not suggesting any attachment just an update ...
No problem. The statement was a little vague so your intent was not clear to me.

Quote
I was able to compile but making it persistent was a big problem.
Looking here:
https://github.com/mchehab/zbar/blob/master/INSTALL.md
I saw the following:
Quote
You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give configure the option --exec-prefix=PATH, the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix.

So if you include this when you run  configure:
Code: [Select]
--exec-prefix=/home/tc/packageThen  make  should install libraries and programs under  /home/tc/package.

If you install  squashfs-tools.tcz  you can now create an extension from the installed files like this:
Code: [Select]
cd
mksquashfs package libzbar.tcz -noappend
Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: Juanito on October 11, 2021, 06:55:42 AM
zbar posted (not tested)
Title: Re: How to install libzbar on rpi 4 8 gb arm7
Post by: ketank on November 13, 2021, 11:15:10 AM
Thank you Juanito