Name: dmtx-wrappers
Owner: Natural History Museum
Description: Visual Studio solution for 32-bit and 64-bit builds of the pydmtx Python package
Created: 2015-04-03 16:30:07.0
Updated: 2016-10-28 14:25:26.0
Pushed: 2016-10-28 14:25:25.0
Size: 2792
Language: C
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Visual Studio solution for 32-bit and 64-bit builds of the pydmtx
Python
package. Tested with Anaconda distribution of
Python 2.7.x and Visual Studio Community 2013.
Forked from http://sourceforge.net/p/libdmtx/libdmtx/ci/master/tree/ on 2015-04-03.
Install a release from this repo. For 32-bit:
s://github.com/NaturalHistoryMuseum/dmtx-wrappers/releases/download/v0.7.4b1/pydmtx-0.7.4b1-cp27-none-win32.whl
64-bit:
s://github.com/NaturalHistoryMuseum/dmtx-wrappers/releases/download/v0.7.4b1/pydmtx-0.7.4b1-cp27-none-win_amd64.whl
The wheel was built using Visual C++ 2013. If Python reports an ImportError
when import pydmtx
is run then you will need to install the
Visual C++ Redistributable Packages for Visual Studio 2013.
You should only need to build if you want to release a new version.
pydmtx
can be built using MinGW but I had limited
success with that solution - the 32-bit build was able to find barcodes in some
images but not all and the 64-bit build caused the Python process to segfault
as soon as a _pydmtx
function was called. 64-bit builds of MinGW
are
known to be buggy.
This Visual Studio project was created by following Python's instructions for Building C and C++ Extensions on Windows and instructions on libdmtx wiki.
Install Visual C++ 2013 Community Edition
Build the 32-bit and/or 64-bit Release target of libdmtx-windows
Install the current Python 2.7 release of Anaconda
Build the pydmtx Python extension module and a wheel:
mtx-wrappers\pydmtx
install --upgrade pip
install --upgrade setuptools
install wheel
d.bat