This note is how to compile the LabTool application on Mac OSX.
Compiling the LabTool Application requires Qt. For Mac OSX, Qt version 5.3.0 has been tested. And also libusb is required too.
-
Install pkg-config and libusb from homebrew.
$ brew install pkg-config libusb -
Prepare firmware.bin and place it inside labtool directory.
$ cp fw/firmware.bin . -
Open the LabTool.pro project file in Qt Creator.
-
Select the configuration to create a Debug or a Release target.
-
Build project "LabTool"
The LabTool Application can be executed directly from inside Qt Creator. If you have LabTool installed and want to replace that with the version you built then
-
Go to build directory.
$ cd build-LabTool-Desktop_Qt_5_3_0_clang_64bit-Release -
Add writable flag on libusb dylib file to change dependency while deploying.
$ chmod +w LabTool.app/Contents/MacOS/libusb-1.0.0.dylib -
Run macdeployqt script with
-dmgoption.$ /{Your Qt Directory}/Qt/5.3/clang_64/bin/macdeployqt LabTool.app -dmg -
You have the disk image
LabTool.dmgwhich contains LabTool Application. That's all.