Skip to main content

Install macOS

·

This are instructions needed to built the hp41cx_tools on Apple macOS using the Alire source based package manager.

Prepare macOS for development #

Grab the Command Line Tools for Xcode (or the full Xcode if you’re feeling fancy or don’t have a developer account). If needed, point your system at ’em with:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

Then, nod politely to the legalese:

sudo xcodebuild -license accept

Finally, nudge the linker in the right direction (a fresh twist courtesy of the recent OS update — worked like a charm without this before):

export SDKROOT="$(xcrun --show-sdk-path)"
export LD_LIBRARY_PATH="${SDKROOT}/usr/lib:${LD_LIBRARY_PATH}"
export LDFLAGS="-L${SDKROOT}/usr/lib:${LDFLAGS}"
export LIBRARY_PATH="${SDKROOT}/usr/lib:${LIBRARY_PATH}"[/code]

Install Alire on Apple macOS #

Download Alire from the Alire website:

The Alire distribution for macOS is just an executable inside a zip file. You can extract the zip to any location you like and add the executable flag to the alr binary.

Build the application #

Start Terminal and change into an directory of your choosing and type the following commands one at a time. Note the directory name contains the version number and hash code of current version and will change with each new release.

bin/alr get "hp41cx_tools"
cd "hp41cx_tools_1.6.0_7337189c"
../bin/alr build --release

During the build Alire ask up to 4 questions which should be answered with either Y or 1 depending on the type of question. This will build the tool for your machine.

Run the Application #

Both applications support the --help option to show you the available options. Remember to adjust the directory name for newer Versions.

hp41cx_tools #

The finished application is found at ./hp41cx_tools_1.6.0_7337189c/bin/atr_tools-main.