amiaopensource / vrecord

Vrecord is open-source software for capturing a video signal and turning it into a digital file.
https://github.com/amiaopensource/vrecord
151 stars 45 forks source link

Dependency install error: deckcontrol #731

Open camardo opened 1 year ago

camardo commented 1 year ago

Just received the following error installing vrecord on Ubuntu 22.04. Any thoughts regarding the below log?

==> Installing amiaopensource/amiaos/vrecord dependency: amiaopensource/a
==> make BMSDK=/home/linuxbrew/.linuxbrew/opt/decklinksdk/include
Last 15 lines from /home/dr-capture-01/.cache/Homebrew/Logs/deckcontrol/01.make:
2022-10-27 01:20:50 +0000

make
BMSDK=/home/linuxbrew/.linuxbrew/opt/decklinksdk/include

gcc -g -I/home/linuxbrew/.linuxbrew/opt/decklinksdk/include -c deckcontrol.cpp
gcc -g -I/home/linuxbrew/.linuxbrew/opt/decklinksdk/include -c /home/linuxbrew/.linuxbrew/opt/decklinksdk/include/DeckLinkAPIDispatch.cpp
gcc -lstdc++ -lpthread -ldl -g -o deckcontrol deckcontrol.o DeckLinkAPIDispatch.o
/home/linuxbrew/.linuxbrew/opt/binutils/bin/ld: deckcontrol.o: in function `StatusCallback::~StatusCallback()':
deckcontrol.cpp:(.text._ZN14StatusCallbackD0Ev[_ZN14StatusCallbackD5Ev]+0xa): undefined reference to `operator delete(void*, unsigned long)'
/home/linuxbrew/.linuxbrew/opt/binutils/bin/ld: deckcontrol.o:(.data.rel.ro._ZTI8IUnknown[_ZTI8IUnknown]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/home/linuxbrew/.linuxbrew/opt/binutils/bin/ld: deckcontrol.o:(.data.rel.ro._ZTI34IDeckLinkDeckControlStatusCallback[_ZTI34IDeckLinkDeckControlStatusCallback]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/home/linuxbrew/.linuxbrew/opt/binutils/bin/ld: deckcontrol.o:(.data.rel.ro._ZTI14StatusCallback[_ZTI14StatusCallback]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
collect2: error: ld returned 1 exit status
make: *** [Makefile:13: deckcontrol] Error 1
privatezero commented 1 year ago

Hi @ncam610 thanks for all the reporting! I haven't yet been able to reproduce this on my end, so no solution yet. Not sure if it would impact this part of the install, but as a shot in the dark - did you install the Blackmagic drivers via installing Desktop Video from the first link found here?

bishbashbackup commented 1 year ago

Hi @ncam610

Just adding a comment to say I also experienced this issue. I'm using Ubuntu 22.04, Blackmagic drivers 12.4.1

It's an issue that occus when trying to install deckcontrol - https://github.com/bavc/deckcontrol with homebrew.

I bypassed it by installing all other vrecord dependencies, except for deckcontrol. Then: brew install vrecord --ignore-dependencies

This produced a working vrecord, just means no deckcontrol facility.

privatezero commented 1 year ago

thanks for the follow up report @alexhabgood - I'll try to take a look at this next week to see if I can recreate on my end. Might be worth building an option to disable deckcontrol install directly into the linux side of the homebrew install