×

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

Bi-monthly release with minor bug fixes and improvements

How can I modify a driver?

  • Posts: 210
  • Thank you received: 104
You must replace ~/Projects/indi/libindi by the exact path where you install the indi source code. From your previous message it is projects in lowercase.

If you get other error message please copy the error text here.
4 years 8 months ago #40980

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

  • Posts: 31
  • Thank you received: 1
I appreciate your help.

I forgot to capitalize the p in projects in my previous post. Where does ubuntu install indi when you do sudo apt-get install indi-full? The ~/Projects folder is where the git hub source was loaded into.
4 years 8 months ago #40985

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

  • Posts: 1957
  • Thank you received: 420
The CMAKE_INSTALL_PREFIX is set by your command to /usr so the libraries end up in /usr/lib. Note that they will only appear there after issuing

sudo make install
4 years 8 months ago #40986

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

  • Posts: 210
  • Thank you received: 104
The indi deb (indi-full and other) get installed in /usr

This is why you specify -DCMAKE_INSTALL_PREFIX=/usr in the cmake command. This way when you run "sudo make install" it install in /usr , overwriting the version installed by the deb. This is much better than having two install at different place.
Ekos will use your new compiled version without any other configuration.
4 years 8 months ago #40987

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

  • Posts: 31
  • Thank you received: 1
I copied the all the libindi files including the modified driver for my mount to the ~/Projects/build/libindi folder.

This is what I got when I enter the cmake command:

doug@doug-X551CA:~/Projects/build/libindi$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi
bash: /usr/bin/cmake: No such file or directory

Then I created a new folder in /usr/bin and named it cmake and did the cmake command again and got:
doug@doug-X551CA:~/Projects/build/libindi$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi
bash: /usr/bin/cmake: Is a directory

Then did the install command:
doug@doug-X551CA:~/Projects/build/libindi$ sudo make install
make: *** No rule to make target 'install'. Stop.

What am I doing wrong?
4 years 8 months ago #40989

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

  • Posts: 210
  • Thank you received: 104
Please remove this /usr/bin/cmake directory.

Then follow carefully all the steps in this page:
www.indilib.org/develop/developer-manual...ent-environment.html

cmake is installed part of the pre-requisit:
sudo apt-get install libnova-dev libcfitsio3-dev libusb-1.0-0-dev zlib1g-dev libgsl0-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev kdesudo

And do not not copy files around, just follow the instruction.

Make sure the procedure to build and install Indi work, then edit the file you want and run "make install" again, this compile only the modified file and install the modified version ready for use.
The following user(s) said Thank You: Doug Albrecht
4 years 8 months ago #40990

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

  • Posts: 1957
  • Thank you received: 420
You need to install the build-essentials package in order to have cmake available on your machine. Have a look at the links that Patrick put in his comment #40961 which explain all that.
The following user(s) said Thank You: Doug Albrecht
4 years 8 months ago #40999

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

  • Posts: 31
  • Thank you received: 1
libcfitsio3-dev was not available and libcfitsio- dev was what I could install. kdesudo was also not available.
I did install build-essentials.

On that page there are a lot of steps missing.
4 years 8 months ago #41001

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

  • Posts: 31
  • Thank you received: 1
There was something else in the prerequisite list that ubuntu changed to a different name on it's own while it was installing.
4 years 8 months ago #41003

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

  • Posts: 31
  • Thank you received: 1
Success!

I had to jump through some hoops to get kdesudo and libcfitsio3-dev installed. Still ran into some roadblocks and had to install other missing bits and then it worked and my mount moved in the right direction.
Now I have to do it again on the stellarmate where the driver is run from.

Thanks for your help!
4 years 8 months ago #41004

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

  • Posts: 31
  • Thank you received: 1
Ran into more roadblocks trying to do this on stellarmate. There is no kdesudo available. I downloaded kdesudo.deb package for arm64, but when I tried to install it with GDebi installer I got an error message: "Error: Wrong architecture 'arm64' -- Run dpkg --add-architecture to add it and update afterwards"

I thought Rpi was arm64 architecture?

How can I get the modified driver to stellarmate?
4 years 8 months ago #41010

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

  • Posts: 31
  • Thank you received: 1
Here are 2 log files that were created when I ran the cmake command. one is an error log and the other is and output log.
Last edit: 4 years 8 months ago by Doug Albrecht.
4 years 8 months ago #41011
Attachments:

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

Time to create page: 1.360 seconds