×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

How to install phd2 on raspian OS

  • Posts: 17
  • Thank you received: 1
Cannot find a good post for this. Launchpad addresses ubuntu distributions only.
Any one have success with this?
Last edit: 2 years 5 months ago by Hal.
2 years 5 months ago #76640

Please Log in or Create an account to join the conversation.

  • Posts: 1309
  • Thank you received: 226
sudo apt -y install libwxgtk3.0-dev
git clone --depth 1 https://github.com/OpenPHDGuiding/phd2.git
mkdir build
cd build
make -j $(expr $(nproc) + 2)
sudo make install
Last edit: 2 years 5 months ago by Andrew.
2 years 5 months ago #76641

Please Log in or Create an account to join the conversation.

  • Posts: 210
  • Thank you received: 104
The following user(s) said Thank You: Hal
2 years 5 months ago #76642

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 27
Or just follow instructions on indilib.org/get-indi/download-rpi/category/6-raspberry-pi.html

This will install the astroberry repo which also has PHD2

Paul
Last edit: 2 years 5 months ago by PDB.
2 years 5 months ago #76671

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 1
Andrew, where are you creating the build directory?  When you execute thegit clone --depth 1 github.com/OpenPHDGuiding/phd2.git

command, it creates a phd2 directory and a build sub-directory under it, with what appears to be the files your (make -j $(expr $(nproc) + 2) needs. I cd'd over to that to issue the command below:

The command make -j $(expr $(nproc) + 2) yields the following error:
make: *** No targets specified and no makefile found.  Stop.

I think the expr and nproc variable is not defined. What goes in there?

Thanks for your time.
2 years 5 months ago #76675

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 1
The link Patrick posted worked.
Thanks!
[SOLVED]
Last edit: 2 years 5 months ago by Hal.
2 years 5 months ago #76676

Please Log in or Create an account to join the conversation.

  • Posts: 1309
  • Thank you received: 226
Where ever you like. Git clone will download the source code into a folder. You then create a build directory within it and cd into it. Then run the make command.
2 years 5 months ago #76677

Please Log in or Create an account to join the conversation.

  • Posts: 210
  • Thank you received: 104
You cannot run make directly, cmake is required first.

Also cmake as some interesting option, for example if using all INDI driver you can specify -DOPENSOURCE_ONLY=1
This prevent PHD2 to install its own libasi and libqhy, this keep your system cleaner by not having multiple version of this libraries installed.
Last edit: 2 years 5 months ago by Patrick Chevalley.
2 years 5 months ago #76686

Please Log in or Create an account to join the conversation.

Time to create page: 0.353 seconds