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

This forum is about all development around libVLC.
Donggyu Lee
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2014 08:21

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

Postby Donggyu Lee » 16 May 2019 09:20

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?

mangup
Blank Cone
Blank Cone
Posts: 71
Joined: 12 Apr 2019 20:23

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

Postby mangup » 16 May 2019 11:13

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

Donggyu Lee
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2014 08:21

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

Postby Donggyu Lee » 17 May 2019 02:27

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

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

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

Postby unidan » 17 May 2019 15:10

./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 :)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests