libdmtx on Windows Using MinGW

1. Installing libdmtx on Windows using MinGW and MSYS

libdmtx can be installed on MinGW using the instructions provided in the General Instructions. However, please see below for additional details that might benefit users on this platform.

2. Installing MinGW and MSYS

If you haven't done so already, first install MinGW, MSYS, and all recommended updates to your Windows system. Instructions for doing this are provided here:

3. Building and installing the core library

To install libdmtx, download and unpack the libdmtx source to your MSYS folder. If you accepted the installation defaults this will be C:\msys\1.0.

Open the MSYS shell and run the following:

$ ./configure --disable-dmtxread --disable-dmtxwrite --disable-dmtxquery
$ make
$ sudo make install

Go to folder .libs:

$ cd .libs
$ ls

Now you should see following output:

libdmtx.a libdmtx.lai  libdmtx_la-dmtx.o

Finally run:

$ gcc -shared -o dmtx.dll libdmtx_la-dmtx.o -Wl,--out-implib,libdmtx.a

Now you should have working dmtx.dll in the folder .libs.

4. External Dependencies

The dmtxread and dmtxwrite command line utilities require ImageMagick to be installed on your system. To satisfy this requirement you can download and install the current stable branch of ImageMagick from:

After downloading, unpack the ImageMagick sources and run:

$ ./configure
$ make
$ sudo make install

Once ImageMagick is installed, change into the libdmtx directory and perform a full install:

$ ./configure
$ make
$ sudo make install

5. Anything Else?

Is something missing from these instructions? If you spent hours searching for a solution that you feel should be included here then please update this page directly.

[Add your documentation hereā€¦]

6. This Document

Updates to this page ultimate feed into the README.mingw file that is distributed with the source package. If you are looking for information specific to an older release, please refer to this file as it exists in that package version.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License