Hi,
I own a Raspberry Pi 2 running Raspbian "Wheezy", on which I would like to install PHD2.
I cloned all the files from the git repository and tried to follow the instructions to compile it, but soon realized the required version of CMake is 2.8.11, while the latest available for Raspbian is 2.8.9.
Then I tried editing the minimum required version and replacing the new commands (such as target_include_directories) with the old ones, but with no success due to my limited knowledge.
I tried a second way to update CMake, by editing the /etc/apt/sources.list file replacing “wheezy” with “jessie”. In this way I got CMake 3.0.2 but I am not sure of its compatibility. This time the makefile was created, but I got new problems while compiling:
[…]
[ 41%] Built target cfitsio
Linking CXX executable phd2
/usr/bin/ld: libcfitsio.a(imcompress.c.o)(.text+0xf620): unresolvable R_ARM_ABS32 relocation against symbol `results'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
CMakeFiles/phd2.dir/build.make:2767: recipe for target 'phd2' failed
make[2]: *** [phd2] Error 1
CMakeFiles/Makefile2:126: recipe for target 'CMakeFiles/phd2.dir/all' failed
make[1]: *** [CMakeFiles/phd2.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
I would like to know if this can be due to incompatibilities of CMake 3 or to other issues.
Thanks,
Alessio