ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Ivan Pešić via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: "Ivan Pešić" <ivan.pesic@gmail.com>
Subject: Re: zint module on LMTX
Date: Sun, 4 Sep 2022 03:36:33 +0400	[thread overview]
Message-ID: <79dbd516-6c1f-3e64-6e5f-2acccad7b9fc@gmail.com> (raw)
In-Reply-To: <mailman.2658.1647466369.1172.ntg-context@ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2826 bytes --]

Hi Pablo,
I'm resurrecting this thread, as I've just managed to get some progress 
on Windows with zint in LMTX.
The thing is that you need 64-bit DLL, because LuaMetaTex is built for 
64-bit architecture on Windows.
As it is not available, I built 64-bit zint.dll (and zlib + libpng) from 
the latest git sources (2.11.1.9 (dev)),
renamed it to libzint.dll and placed in appropriate place, as per the 
instructions.

But there are still some problems... here is the excerpt from the log:

modules         > using user prefixed file 'libs-imp-zint'
modules         > 'zint' is loaded
open source     > level 2, order 3, name 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
resolvers       > lua > loading file 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt' succeeded
close source    > level 2, order 3, name 'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
optional        > using library 'c:/Data/context/tex/texmf-win64/bin/lib/luametatex/zint/libzint.dll'
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
backend         > xmp > using file 'c:/Data/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector
zint            > something went wrong: invalid result vector

I tested the library with the generated CLI tool, and I get the barcode 
images created.
Although, png format is not working, I get file with length 0 and no 
error whatsoever.
It could be that there is something wrong with the build, I'll try to 
figure out.

Best regards,
Ivan



Дана 17.03.2022. у 1:32, ntg-context-request@ntg.nl пише:
> On 3/16/22 18:05, Hans Hagen via ntg-context wrote:
>> On 3/16/2022 5:37 PM, Pablo Rodriguez via ntg-context wrote:
>>> Dear list,
>>>
>>> using latest LMTX and following the steps from
>>> https://wiki.contextgarden.net/Barcodes#Zint_module, I’m afraid I don’t
>>> get any barcode either in Linux or Windows.
>>>
>>> Minimal sample:
>>>
>>>     \starttext
>>>     \usemodule[zint]
>>>     \barcode[alternative=isbnx, text=9783865419026, width=4cm]
>>>     \stoptext
>>> [...]
>> Are you sure that you have the latest zint? (from sourceforge)
> Many thanks for your reply, Hans.
>
> I have version 2.9.2 on Linux and version 2.10 on Windows.
>
> I’ll try to install the new version on Linux and report results here.
>
> Many thanks for your help,
>
> Pablo
>

[-- Attachment #1.2: Type: text/html, Size: 4129 bytes --]

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

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

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

       reply	other threads:[~2022-09-03 23:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2658.1647466369.1172.ntg-context@ntg.nl>
2022-09-03 23:36 ` Ivan Pešić via ntg-context [this message]
2022-09-04  8:51   ` Hans Hagen via ntg-context
     [not found] <mailman.0.1662285601.13547.ntg-context@ntg.nl>
2022-09-04 12:53 ` Ivan Pešić via ntg-context
     [not found] <mailman.272.1662280561.1198.ntg-context@ntg.nl>
2022-09-04  9:59 ` Ivan Pešić via ntg-context
2022-09-04 10:59   ` Michal Vlasák via ntg-context
2022-09-04 11:27     ` Hans Hagen via ntg-context
2022-09-04 11:43     ` Hans Hagen via ntg-context
2022-09-04 11:25   ` Hans Hagen via ntg-context
2022-09-04 12:23     ` Michal Vlasák via ntg-context
2022-03-16 16:37 Pablo Rodriguez via ntg-context
2022-03-16 17:05 ` Hans Hagen via ntg-context
2022-03-16 18:11   ` Adam Reviczky via ntg-context
2022-03-16 21:32     ` Pablo Rodriguez via ntg-context
2022-03-16 23:04       ` Adam Reviczky via ntg-context
2022-03-17 15:26       ` Pablo Rodriguez via ntg-context
2022-03-25 10:43         ` Lutz Haseloff via ntg-context
2022-03-16 18:12   ` Pablo Rodriguez 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=79dbd516-6c1f-3e64-6e5f-2acccad7b9fc@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=ivan.pesic@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).