Page 1 of 1

make stopped with error "Recursive variable 'PROTOC' references itself"

Posted: 16 May 2019 09:20
by Donggyu Lee
I am building libVLC on Ubuntu for win32 (cross-compile).
I'm following this page (https://wiki.videolan.org/Win32Compile/)
some problems has been occured, but managed to solve them.
but this error, I can't deal with it.

"../../contrib/src/protobuf/rules.mak:19: *** Recursive variable 'PROTOC' references itself (eventually). Stop"

rules.mak: 19th line is like this
PROTOC = $(error $(PROTOC) version $(SYS_PROTOC) doesn't match the protobuf $(PROTOBUF_VERSION) we're building

PROTOC variable is using PROTOC variable itself !

what can I do to make successfully?

Re: make stopped with error "Recursive variable 'PROTOC' references itself"

Posted: 16 May 2019 11:13
by mangup
Straight cross-compilation is not alive method. I've tried. Maintainers recognize this problem and recommend workaround: docker method

https://forum.videolan.org/viewtopic.php?f=14&t=146175&p=490185

Re: make stopped with error "Recursive variable 'PROTOC' references itself"

Posted: 17 May 2019 02:27
by Donggyu Lee
Straight cross-compilation is not alive method. I've tried. Maintainers recognize this problem and recommend workaround: docker method

https://forum.videolan.org/viewtopic.php?f=14&t=146175&p=490185
Thank you, I'll try this one. :D

Re: make stopped with error "Recursive variable 'PROTOC' references itself"

Posted: 17 May 2019 15:10
by unidan
./extra/package/win32/build.sh is also working, but you have to setup your environment and apply some patches on mingw or maybe download the development version.

Nevertheless, if you just want to compile and not bother with the environment itself, use docker :)