ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: zint module on LMTX
Date: Sun, 4 Sep 2022 13:25:42 +0200	[thread overview]
Message-ID: <6823c596-2bdf-2c44-11db-d30b1d49f2c9@freedom.nl> (raw)
In-Reply-To: <632852c8-aa7f-7f5d-5ce8-40bd77074eea@gmail.com>

On 9/4/2022 11:59 AM, Ivan Pešić via ntg-context wrote:
> Дана 04.09.2022. у 12:36, ntg-context-request@ntg.nl пише:
> 
> looks like the library is loaded ... so what is your test
> 
> we don't do png, we do outlines (actually native zint graphic structures 
> that we then convert with mp)
> 
> Hans
> 
> 
> 
> Hi Hans,
> here is the example that I used, basically I took it from the from the 
> module:
> 
> \starttext
> \usemodule[zint]
>      \startTEXpage
>          \barcode[alternative=PDF417,text={Hans Hagen}]%
>          \blank
>          \barcode[alternative=pdf417,text={Ton Otten}]%
>          \blank
>          \barcode[alternative=ISBN,text=9789490688011]%
>          \blank
>          \barcode[alternative=isbn,text=9789490688011,width=3cm]%
>          \blank
>          \dontleavehmode
>          %\barcode[alternative=qr code,text={This is ConTeXt MKIV : #1}]
>          \barcode[alternative=qr code,text={This is ConTeXt LMTX}]
>          \barcode[alternative=qr code,text={\input{tufte}},width=3cm]
>      \stopTEXpage
> \stoptext
> 
> The resulting PDF has just empty page

bah, there used to be precompiled x64 files for windows so one cpuld 
just drop in the dll (kind of strange to stick to 32 bit as most windows 
installations today are 64 bit)

although i don't like top do it i cloned the zint repos and tried to 
compile (after migrating the proj file to vs2022) but it fails on some 
png.h file missing and i see no way to disable png)

a pitty as zint used to be quite stable over years (at some point we 
will set up compilation on the farm and then we can stick to old stable 
versions forever)

anyway, so instead of trying that i went for a quick and dirty cross 
compile on wls

# mingw-64.cmake

set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX  x86_64-w64-mingw32)
set(CMAKE_C_COMPILER  ${TOOLCHAIN_PREFIX}-gcc)

and on build then run

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../mingw-64.cmake ..
make

which gives me a huge dll that we can strip to some 600+K and that one 
seems to load ok

it assume of course that you have the linus subsystem installwd with gcc 
and the crosscompiler (which i have as it is how i compile luametatex)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2022-09-04 11:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2022-09-04 12:23     ` Michal Vlasák 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.2658.1647466369.1172.ntg-context@ntg.nl>
2022-09-03 23:36 ` Ivan Pešić via ntg-context
2022-09-04  8:51   ` Hans Hagen 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=6823c596-2bdf-2c44-11db-d30b1d49f2c9@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /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).