ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Luis Montgomery via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Luis Montgomery <monty.luis@gmail.com>,
	Keith McKay <mckaymeister@gmail.com>
Subject: Re: Setting up zint on a mac with macOS Montery Version 12.3.1
Date: Sun, 10 Apr 2022 13:00:34 -0500	[thread overview]
Message-ID: <CAE+cQBz9BQxi54+T4gWrq7KGW6j2y+oHd7Vo-meVu5F84Uy9xw@mail.gmail.com> (raw)
In-Reply-To: <35dfcbda-f5aa-1eeb-f8af-8f6ddba2b3dd@gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 3056 bytes --]

On my macOS High Sierra your MWE works fine. Although I remember that
I didn't use Homebrew, but had to build zint manually.

From log:


optional > using library
'/Users/monty/context/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so'

Here it is enough that
libzint.so be a link:

libzint.so -> /usr/local/lib/libzint.2.10.0.0.dylib

Delete the texmf-cache and run ./mtxrun --generate again, once you've
made this link (or copied libzint.2.10.0.0.dylib to
$TEXROOT/tex/texmf-osx-64/bin/lib/luametatex /zint/libzint.so)

[image: image.png]

Greetings,

L. Montgomery

PD.- Does zint-qt work well?


El dom, 10 abr 2022 a las 8:49, Keith McKay via ntg-context (<
ntg-context@ntg.nl>) escribió:

> Hi All
>
> I have been struggling today trying to setup and use the Barcode module
> zint in ConTeXt and failed. I have followed the instructions on the wiki (
> https://wiki.contextgarden.net/Barcodes ) but with some changes as
> follows. Which maybe why I failed.
>
> 1) I downloaded Zint using Homebrew since I'm using macOS, and installed
> it according to the instructions.
>
> 2) Since I'm using LMTX I looked for the file libzint.dylib and found it
> in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path
> given on the wiki. The directory contained three files, two of which were
> aliases,  libzint.2.10.dylib and libzint.dylib, and an exe file
> libzint.2.10.0.0.dylib
>
> 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint
> and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as
> suggested on the wiki instructions. So I basically added
> lib/luametatex/zint to texmf-osx-64/bin .
>
> 4) I ran mtxrun --generate to update the database.
>
> 5) I ran the MWE below but no barcode appeared. The console output shows:
>
> *modules > using user prefixed file 'libs-imp-zint'*
>
> *modules > 'zint' is loaded*
>
> however further down the output it gives:
>
> *optional > unable to locate library 'libzint'*
>
> I have tried renaming libzint2.10.0.0.so to libzint.so, but still no
> barcode. Is their something I am missing? Tips or hints appreciated.
>
> Best Wishes
>
> Keith McKay
>
> %%%%%%%%%%%%%% MWE %%%%%%%%
>
> \usemodule[zint]
>
> \starttext
>
> \barcode[alternative=isbn,text=9783865419026,width=4cm]
>
> \barcode[alternative=isbnx, text=9783865419026, width=4cm]
>
> \barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
> width=3cm]
>
> \stoptext
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.1.2: Type: text/html, Size: 10521 bytes --]

[-- Attachment #1.2: image.png --]
[-- Type: image/png, Size: 312 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-04-10 18:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-10 13:49 Keith McKay via ntg-context
2022-04-10 18:00 ` Luis Montgomery via ntg-context [this message]
2022-04-10 21:26 ` Bruce Horrocks via ntg-context
2022-04-12 20:04   ` Keith McKay via ntg-context
2022-04-12 22:47     ` Bruce Horrocks via ntg-context
2022-05-30 18:19       ` Jan-Erik Hägglöf via ntg-context
2022-05-30 22:13         ` Luis Montgomery via ntg-context
2022-05-30 22:49         ` Michal Vlasák via ntg-context
2022-05-31  1:51           ` Aditya Mahajan via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE+cQBz9BQxi54+T4gWrq7KGW6j2y+oHd7Vo-meVu5F84Uy9xw@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=mckaymeister@gmail.com \
    --cc=monty.luis@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).