Mach4 Build Requirements
Build environment requirements
Software:
Visual Studio.
NSIS Installer.
InfoZip's zip.exe
AnthemIon's DialogBlocks, HelpBlocks, ImageBlocks
OpenSSL
TortoisSVN client w/ command line tools
Repositories:
https://machremote.machsupport.com/svn/Mach4Core/4.x - Check out to C:\src\Mach4\Mach4Core
https://machremote.machsupport.com/svn/Installer - Check out to C:\src\Mach4\Mach4Core\Installer
https://machremote.machsupport.com/svn/Mach4Lib/trunk - Check out to C:\src\lib\Mach4Lib
Environment Variables:
M4HOBBY
- Points to the Mach4 installation directory. This is where built EXEs and DLLs end up. e.g. C:\src\Mach4 (on a development machine)
M4HOBBY64
- Points to the Mach4 64 bit installation directory. This is where built EXEs and DLLs end up. e.g. C:\src\Mach4-x64 (on a development machine)
M4SDKBUILDDIR
- Points to the directory for the SDK build. Typically, install Mach4 from the most recent installer package to this directory to populate it first. e.g. C:\Mach4
M4SDKBUILDDIR64
- Points to the directory for the 64 bit SDK build. Typically, install Mach4 from the most recent installer package to this directory to populate it first. e.g. C:\Mach4-x64
M4SDKDESTDIR
- Points to the SDK distribution file directory. e.g. C:\src\Mach4\Mach4Core\Installer\Mach4SDKs
M4SDKDESTDIR64
- Points to the SDK distribution file directory. e.g. C:\src\Mach4\Mach4Core\Installer\Mach4SDK64s
MACHSDK
- Points to the Mach SDK directory. On a develepment machine, this is inside the source tree. e.g. C:\src\Mach4\Mach4Core\SDK
MSVCDRIVE
- The drive which Visual Studio is installed. e.g. C:\
M4LIB
- Points to the directory that the Mach4Lib repository is checked out.
M4INCLUDE
Points to the Mach 4 include directory. e.g. C:\src\Mach4\Mach4Core\include
ENIGMA
- Points to the Enigma Protector's installation directory. e.g. C:\Program Files (x86)\The Enigma Protector
ENIGMA64
- Points to the Enigma Protector's 64 bit installation directory. e.g. C:\Program Files\The Enigma Protector
ENIGMASDK
- Points to the Enigma Protector's SDK directory. e.g. C:\Program Files (x86)\The Enigma Protector\EnigmaSDK\VC
ENIGMASDK64
- Points to the Enigma Protector's 64 bit SDK directory. e.g. C:\Program Files\The Enigma Protector\EnigmaSDK\VC
OPENCV_DIR
- Points to the OpenCV library directory. e.g. C:\src\lib\Mach4Lib\opencv
WXWIN
- Points to the wxWidgets source directory. e.g. C:\src\lib\Mach4Lib\wxWidgets-3.2
BOOST
- Points to the Boost source. e.g. C:\src\lib\Mach4Lib\boost_1_85_0
BUILDTOOLS
- Points to the mach vore build tools directory. e.g. C:\src\Mach4\Mach4Core\build-tools
For building plugins, only M4HOBBY and MACHSDK need to be set. If wxWidgets is used by a plugin, WXWIN also needs to be set.
If you checked out all of the libraries, the only library that you need to build is the boots libraries. Run machboost.bat in the boost directory.