×

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

Bi-monthly release with minor bug fixes and improvements

INDI Web Manager does not see my driver? [SOLVED]

  • Posts: 33
  • Thank you received: 0
Hi,

I've recently completed a new INDI driver for my DIY focuser. It compiles, installs and runs just fine but for some reason the INDI Web Manager running on the same system does not list the driver at all. Is it supposed to find it automatically or do I need to do something?

sudo make install installs these two files:
/usr/local/bin/indi_bullseye_focus
/usr/local/share/indi/indi_bullseye_focus.xml

Strangely it does list my super old drivers that I've done years ago the same way.

Any pointers to how to solve this?

Cheers,
Kari
Last edit: 2 years 7 months ago by Kari Brown.
2 years 7 months ago #74455

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

  • Posts: 33
  • Thank you received: 0
After poking around a bit more I sort of solved the problem.

Looks like indi-web is looking in
/usr/share/indi
and not
/usr/local/share/indi/
for the xml files. Not sure why the sudo make install puts them there by default?
2 years 7 months ago #74457

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

  • Posts: 33
  • Thank you received: 0
Continuing my monologue... :)

Looks like it's because of what I have in my CMakeLists.txt e.g.
set(INDI_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/indi")
And ${CMAKE_INSTALL_PREFIX} defaults to /usr/local
2 years 7 months ago #74459

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

  • Posts: 421
  • Thank you received: 102
Not sure why the sudo make install puts them there by default?

That's a Unix/Linux convention. Stuff under /usr/bin is the domain of the package manager. Locally built and installed stuff goes into /usr/local/bin
Last edit: 2 years 7 months ago by Kevin Ross.
2 years 7 months ago #74460

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

That's why you see in all the guides to run cmake with -DCMAKE_INSTALL_PREFIX=/usr
2 years 7 months ago #74465

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

  • Posts: 33
  • Thank you received: 0
Thanks guys. I should have known that but had completely forgotten about it. I must have done the DCMAKE_INSTALL_PREFIX=/usr with my old drivers as they were in the right place.

Just as a thought would it not make sense to have indi-web look into /usr/local too?
2 years 7 months ago #74470

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

Time to create page: 2.774 seconds