×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Still not able to get cmake working correctly

1 year 5 months ago
eplumer
Fresh Boarder
Fresh Boarder
Posts: 18
More
Topic Author
Still not able to get cmake working correctly #34793
In previous thread, I reported not being able to run this build sequence:

cd astroberry-piface
mkdir build
cd build
cmake ..
make
make install


Specifically, the "make install" failed with bizarre git unstash errors. The work-around of not doing "make install" and instead moving the libraries manually appeared to work. However, after I attempted to modify the source to add some more logging, I found that I am not able to invoke the "make" command again to rebuild. Specifically, after editing the code and attempting

cd build
make


I get the same errors:

Performing update step for 'libmcp23s17'
Current branch master is up to date.
No stash found.
No stash found.
No stash found.
CMake Error at /home/edward/Tilion/astroberry-piface/build/libmcp23s17/tmp/libmcp23s17-gitupdate.cmake:136 (message):

Failed to unstash changes in:
'/home/edward/Tilion/astroberry-piface/libs/libmcp23s17/'.

You will have to resolve the conflicts manually

CMakeFiles/libmcp23s17.dir/build.make:94: recipe for target 'libmcp23s17/src/libmcp23s17-stamp/libmcp23s17-update' failed
make[2]: *** [libmcp23s17/src/libmcp23s17-stamp/libmcp23s17-update] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/libmcp23s17.dir/all' failed
make[1]: *** [CMakeFiles/libmcp23s17.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


The only work-around I have come up with is to move a copy of my modified source outside of astroberry-piface, redownload a fresh source, and replace the modified files each time I want to test a change. Needless to say, this is pretty slow going. Any ideas on what I can do to fix this build? I am not very fluent in cmake.

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

1 year 5 months ago
Kaczorek
Moderator
Moderator
Posts: 901
Karma: 6
More
Still not able to get cmake working correctly #34797
Just remove build/libmcp23s17 before running make

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM

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

Moderators: Kaczorek
Time to create page: 0.174 seconds