Compiling PHD2 on Raspberry Pi 2 - Raspbian

336 views
Skip to first unread message

sgomber...@gmail.com

unread,
Sep 23, 2015, 11:49:59 AM9/23/15
to Open PHD Guiding

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

Patrick Chevalley

unread,
Sep 23, 2015, 12:59:36 PM9/23/15
to Open PHD Guiding
Hi,

The current phd2 version is not tested for build with Wheezy,  Jessie is the minimal requirement, or other distrib at the same level like Ubuntu 14.04.
With Jessie you also get wxWidget 3.0 and there is no need to compile it.

On my Raspberry Pi 2 I run the last Ubuntu MATE 15.04 and everything run very well.
It is worth to try if you have a spare microsd: https://ubuntu-mate.org/raspberry-pi/

If you really want to keep Wheezy do not try to install packages form other version, this only make the problem worst, but compile everything you need including cmake.

Patrick


sgomber...@gmail.com

unread,
Sep 24, 2015, 6:01:22 PM9/24/15
to Open PHD Guiding
Thank you for the clarification, I will try Ubuntu on a new sd.

Alessio 

Chris Moses

unread,
Oct 8, 2015, 1:15:51 AM10/8/15
to Open PHD Guiding
I havent looked at the code, but you could consider compiling under windows 10 core. Ive been meaning to try to compile astrotortilla to it for a while. 

Patrick Chevalley

unread,
Oct 8, 2015, 1:50:32 AM10/8/15
to Open PHD Guiding
Chris,

I am very interested by your result with Win10 IoT.
What I see as a main limitation of IoT at the moment is the fact you can only run a single UI application without any way to switch to another, as described here: http://ms-iot.github.io/content/en-US/win10/HeadlessMode.htm

About Raspbian, the "Jessie" version of Raspbian is now released and PHD2 must compile without problem with this new version.

Patrick
Reply all
Reply to author
Forward
0 new messages