Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error in capture.cpp Ubuntu 20.04 #758

Closed
hoetzgit opened this issue Nov 3, 2021 · 4 comments · Fixed by #762
Closed

Make error in capture.cpp Ubuntu 20.04 #758

hoetzgit opened this issue Nov 3, 2021 · 4 comments · Fixed by #762
Assignees
Labels
bug Needs software change

Comments

@hoetzgit
Copy link

hoetzgit commented Nov 3, 2021

The following error occurs when compiling the actual release under Ubuntu 20.04. Can this be corrected? I use a powerful virtual machine to create startrail, keogram and video. Many thanks

pi@allsky:~/allsky01$ make -C src all
make: Entering directory '/home/pi/allsky01/src'
2021-11-03 09:49:13 Building capture program...
capture.cpp: In function ‘void* SaveImgThd(void*)’:
capture.cpp:298:18: error: ‘cvGetTickCount’ was not declared in this scope
298 | st = cvGetTickCount();
| ^~~~~~~~~~~~~~
make: *** [Makefile:122: capture] Error 1
make: Leaving directory '/home/pi/allsky01/src'

@EricClaeys EricClaeys added bug Needs software change config enhancement and removed bug Needs software change labels Nov 3, 2021
@linuxkidd
Copy link
Collaborator

Hi @hoetzgit ... Sorry for the issue... Would you be able to test the following tweak and see if the compile succeeds:

cd ~/allsky
sed -i -e 's/cvGetTickCount/cv::getTickCount/g' src/capture.cpp
make -C src all

Thanks!

@hoetzgit
Copy link
Author

hoetzgit commented Nov 4, 2021

Thanks very much! With this adjustment, it works.

`pi@allsky:~/allsky01$ sed -i -e 's/cvGetTickCount/cv::getTickCount/g' src/capture.cpp

pi@allsky:~/allsky01$ make -C src all

make: Entering directory '/home/pi/allsky01/src'
2021-11-04 10:04:02 Building capture program...
2021-11-04 10:04:33 Done.
2021-11-04 10:04:33 Building capture_RPiHQ program...
2021-11-04 10:04:40 Done.
2021-11-04 10:04:40 Building startrails program...
2021-11-04 10:04:54 Done.
2021-11-04 10:04:54 Building keogram program...
2021-11-04 10:05:07 Done.
make: Leaving directory '/home/pi/allsky01/src'`

@EricClaeys EricClaeys added bug Needs software change confirmed and removed enhancement config labels Nov 4, 2021
EricClaeys added a commit that referenced this issue Nov 4, 2021
@linuxkidd
Copy link
Collaborator

Great to hear this resolved the compile issue. We've modified our code to include this fix. Thanks for helping us make Allsky better!

@EricClaeys
Copy link
Collaborator

@hoetzgit, you can grab the updated src/capture.cpp which includes the fix. Or not, since you already patched your file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs software change
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants