Big thanks to Andy and Patrick over on the phd2 list for these details and for putting up with my constant noise.
prequisites
sudo apt-get install build-essential git cmake pkg-config libwxgtk3.0-dev \
wx-common wx3.0-i18n libindi-dev libnova-dev gettext zlib1g-dev libx11-dev \
libcurl4-gnutls-dev
Get the PHD2 sources
git clone https://github.com/OpenPHDGuiding/phd2.git
cd phd2
Generate the Makefiles
mkdir -p tmp
cd tmp
cmake ..
Build PHD2
make
Once PHD2 is built, you can either run PHD2 from the local build directory:
./phd2
or install PHD2 onto the system:
sudo make install
upgrade the SDK in your build
download the sdk from here: https://astronomy-imaging-camera.com/software-drivers (section: for developers e.g. ASI_linux_mac_SDK_V1.14.0715.tar.bz2)
unpack the SDK
/path/to/phd2/build/unpack_zwo_libs ~/Downloads/ASI_linux_mac_SDK_V1.14.0715.tar.bz2
rebuild phd2
(note that unpack_zwo_libs is a script which extracts the SDK into the proper directories for you)
make -C /path/to/phd2/tmp
run phd2
/path/to/phd2/tmp/phd2.bin
(confirm the SDK version in the debug log, look for "ZWO: SDK Version = ")
debug
To debug a crash run phd2 under gdb.
phd2 needs to be built with debugging symbols:
When you are at the cmake step do: cmake -DCMAKE_BUILD_TYPE=Debug ..
Then: make
to debug: gdb ./phd2.bin
you should see a line : Reading symbols from ./phd2.bin...
from with gdb then type
run
After a crash
bt
gives the backtrace
generate-core-file
does what it says
you will need to present the core file and the file phd2.bin to the developers