From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114688 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith McKay via ntg-context Newsgroups: gmane.comp.tex.context Subject: Setting up zint on a mac with macOS Montery Version 12.3.1 Date: Sun, 10 Apr 2022 14:49:30 +0100 Message-ID: <35dfcbda-f5aa-1eeb-f8af-8f6ddba2b3dd@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7952216460658713651==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Cc: Keith McKay To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 10 15:50:17 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndXxI-0003h8-SQ for gctc-ntg-context-518@m.gmane-mx.org; Sun, 10 Apr 2022 15:50:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC0262A2A41; Sun, 10 Apr 2022 15:49:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WOFo45r5Eq7V; Sun, 10 Apr 2022 15:49:41 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 35C362A211F; Sun, 10 Apr 2022 15:49:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EF1F32A211F for ; Sun, 10 Apr 2022 15:49:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cNi9R60s88Q8 for ; Sun, 10 Apr 2022 15:49:37 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.46; helo=mail-wr1-f46.google.com; envelope-from=mckaymeister@gmail.com; receiver= Original-Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 511A02A1A58 for ; Sun, 10 Apr 2022 15:49:37 +0200 (CEST) Original-Received: by mail-wr1-f46.google.com with SMTP id b19so19299837wrh.11 for ; Sun, 10 Apr 2022 06:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject; bh=mgQoIWNTP7IKdoyITkzjrMGbGsqTnk2VVp8STApN8Ys=; b=M92jlueIQuyN+uPlnKrv9VqAFCgBWGWOSw1CkTv1Ih36ftyyGImWa46menupJtZWXv BBLKI9zNPBje4mj0vAVvWA/jGs+G7+99tVtBLKLQGdYMY8pRX4zNJiM0c+7w4kV/bdsb u8jplBi5fe2lx7SkNhf6YuLbMOOBEVmHmun2yc/JYRgSKfqL/A6eWLQCyJSnoExsjHJU sISn29VWVqBxOgsJXSl3lHFk0bvyD4E1j2rYs3pL9rr/zTcCQ/vG5M5Wlk5DN/6Y0iL2 dUm9s72zIUsXE0NVnL69ImVUqdXIUb3IM3aRLMnPzEtstmUh1iGHw6iE9xE4QuQ5Tc4F cZ5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject; bh=mgQoIWNTP7IKdoyITkzjrMGbGsqTnk2VVp8STApN8Ys=; b=LUerFe+nQGjTXgwQryQlb7J4/lWO/ukdNv3qeITJ9yEBjpSEY7LyOHHJ2YIxhfjd3r pzedCoaNTXSIsL4IQbzHFqY9jKnE5okzGUTmWx+4+haGr4WZ7LzWj8WoKynob54UCjSL QtPa/GWJygKCxl9VcEt2EQb49hcyeYz0OGlfM+ff73N2u2veu8aszcTn3ty6VkonANe/ GJ6CZWyw4JzSVWJe/POAFj3z8s941XLrbX+osq/bqla0Mjjh+ksP5WTa8bZqMDexfp9Q Xd0WAEkEoWhaWq2+/XHqQkQf7NityCvABHlSCU/DXT2R6oeGMXe2fffJfWFBiIXlB9+J NdHQ== X-Gm-Message-State: AOAM530JuxQkpZx8Vk3JEWTXKX8ejpEcWQ6or6K+DyOz5/eTqrEEJirQ i0z2SXQwwT+9Xx4uWiT2/ZNHHkjqZc8= X-Google-Smtp-Source: ABdhPJyiEnMLOjE+p6l/k0QctXFgKtzoCBnh0GIk8JRG+RuJXPy29gPEwIhdPDx8UNt2kj1nmbDRGA== X-Received: by 2002:a05:6000:18c3:b0:206:1575:ec8f with SMTP id w3-20020a05600018c300b002061575ec8fmr20824561wrq.479.1649598576027; Sun, 10 Apr 2022 06:49:36 -0700 (PDT) Original-Received: from [192.168.0.33] (cpc100594-uddi29-2-0-cust51.20-3.cable.virginm.net. [82.42.107.52]) by smtp.gmail.com with ESMTPSA id bi7-20020a05600c3d8700b0038eb78569aasm1956645wmb.20.2022.04.10.06.49.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 06:49:35 -0700 (PDT) Content-Language: en-GB X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114688 Archived-At: This is a multi-part message in MIME format. --===============7952216460658713651== Content-Type: multipart/alternative; boundary="------------lyjVMYaDzDWES6r1GazXlmYX" Content-Language: en-GB This is a multi-part message in MIME format. --------------lyjVMYaDzDWES6r1GazXlmYX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------lyjVMYaDzDWES6r1GazXlmYX Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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

--------------lyjVMYaDzDWES6r1GazXlmYX-- --===============7952216460658713651== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7952216460658713651==--