Doug Albrecht replied to the topic 'How can I modify a driver?' in the forum. 5 years ago

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?

Read More...