WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install libzbar on rpi 4 8 gb arm7  (Read 1967 times)

Offline ketank

  • Newbie
  • *
  • Posts: 40
  • learning ...
How to install libzbar on rpi 4 8 gb arm7
« 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.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #1 on: October 10, 2021, 03:54:21 AM »
Build instructions are given here: https://github.com/mchehab/zbar

Offline ketank

  • Newbie
  • *
  • Posts: 40
  • learning ...
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #2 on: October 10, 2021, 04:28:27 AM »
Thank you.
Will go thru it and post update.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11581
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #3 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.

Offline ketank

  • Newbie
  • *
  • Posts: 40
  • learning ...
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #4 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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11581
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #5 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #6 on: October 11, 2021, 06:55:42 AM »
zbar posted (not tested)

Offline ketank

  • Newbie
  • *
  • Posts: 40
  • learning ...
Re: How to install libzbar on rpi 4 8 gb arm7
« Reply #7 on: November 13, 2021, 11:15:10 AM »
Thank you Juanito