CNC-Halftone-Wizard is a project mainly written in C++ and PROLOG, based on the GPL-3.0 license.
Generates from bitmaps g-code for cutting halftone images
Building the CNC Halftone Wizard
If you want to (or have to) build the app from source, it's pretty painless if
you've already got Qt and a C++ compiler installed on your computer. Many
linux distros include these in their standard configuration, so if you're
building the app under linux, you probably won't even have to worry about them.
Under Windows, you may need to install these things (Qt supports the Intel,
MinGW, and Microsoft C++ compilers); how to set up a Windows C++/Qt development
environment is more than I want to tackle in these instructions, but there are probably
plenty of tutorials out there on the intertubes. I have no idea how to go about
building C++/Qt apps (or any apps, for that matter) on a Mac; my understanding
is that it's probably about as easy as it is under linux, but you'll have to ask
Mr. Google about that.
Once you have Qt and a C++ compiler installed and configured on your machine, you should be able to build the app by typing these commands from a command prompt in the directory that holds the CNC Halftone Wizard source code (most likely, that is the directory where the file that you're reading right now is): qmake CNCHalftoneWizard.pro make
If you're using Microsoft's compiler, you'll need to type 'nmake' instead of 'make'. Also, you may have noticed that I've been a bit schizophrenic about naming this thing.
The qmake command should only take a few seconds; it's building the 'makefile'
that the next command will use. The make (or nmake) command will take a bit
longer as it compiles each source file and then links them into the final app.
If, after the make command finishes, there is nothing saying "error" in the
output, the app should be in the 'release' directory of the directory where you
ran the commands from.
I developed this app under Windows 7 using Microsoft Visual Studio 2005 and Qt 4.5.0. I didn't do anything tricky in my code, so it should have no problems compiling under more current versions of MSVC and Qt (and it should run under Windows XP, Vista and Windows 7). I've also verified that the app builds and runs under Ubuntu 10.10, so there shouldn't be any problems building and running this app under most recent linux distros.
Running the pre-built Windows App
If you're running the pre-built app, you may need to install the proper Microsoft Visual C++ 2005 redistributable DLLs. Finding the one that matches the version of MSVC2005 that I built the app with has been an exercise in futility, so I've simply added the correct one to the git repo. vcredist_x86.exe is the installer for the DLLs needed by the app, but you should try running the app first (before running vcredist_x86.exe) in case you don't need it. If you do need it, you'll get one of a few cryptic error messages, referring to "side-by-side caches" or simply "the application cannot be run". These aren't my error messages! They come from Windows, so I have no control over the cryptic messages that are displayed if all of the app's DLLs aren't just where they should be.
Using the CNC Halftone Wizard
Using it is fairly straight-forward (spoken like a true software developer).
First, you load an image that you want to generate some halftone g-code for:
Click on 'Open' in the File menu and then navigate to the file that you want
to perform some Halftone wizardry on.
In the Halftone tab of the app, there are three fields that you can change:
In the G-Code tab, there is a single field:
In the Tool tab, there are several values you can change to suit the tool you want to generate g-code for.