Page 1 of 1

Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 19 Jun 2018 05:03
by system
Hi, every one:
I try to compile VCL using this link:
https://wiki.videolan.org/Win32Compile/ ... _toolchain and, I choose Obtaining the cross-compilation toolchain mode.
Unfortunately, after I run Manually built (slow) 's step "$ ../bootstrap --host=HOST-TRIPLET"
It prompts me:

Code: Select all

/bin/sh: 1: HOST-TRIPLE-gcc: not found /bin/sh: 1: HOST-TRIPLE-gcc: not found ../../contrib/src/protobuf/rules.mak:19: *** /usr/bin/protoc version 3.0.0 doesn't match the protobuf 3.1.0 we're building. Stop.
please help, thanks.

Re: Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 19 Jun 2018 09:08
by robUx4
Did you use HOST-TRIPLET literally or you replaced it with a proper value ?

Re: Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 19 Jun 2018 12:32
by system
Did you use HOST-TRIPLET literally or you replaced it with a proper value ?
I tried literally also below:

Code: Select all

root@ubuntuaaa:/home/biubiu/vlc/contrib/win32# echo $HOSTNAME ubuntuaaa root@ubuntuaaa:/home/biubiu/vlc/contrib/win32# ../bootstrap --host=ubuntuaaa Guessing build system... x86_64-linux-gnu Packages licensing... GPL version 3 Creating configuration file... config.mak Bootstrap completed. ubuntuaaa: invalid machine specification /bin/sh: 1: ubuntuaaa-gcc: not found /bin/sh: 1: ubuntuaaa-gcc: not found ../../contrib/src/protobuf/rules.mak:19: *** /usr/bin/protoc version 3.0.0 doesn't match the protobuf 3.1.0 we're building. Stop.
Thank you for your help why it doesn't work?

Re: Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 19 Jun 2018 19:43
by Rémi Denis-Courmont
The answer to the question is very explicitly in the wiki page.

Re: Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 20 Jun 2018 03:16
by system
The answer to the question is very explicitly in the wiki page.
Thank you, Rémi.
Do you mean "To compile the VLC 3.0.x development branch, DO NOT USE the prebuilt libraries. "?
Is that means I can skip "Prepare 3rd party libraries " step and, directly into "Building VLC" step?

Re: Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 20 Jun 2018 03:40
by system
The answer to the question is very explicitly in the wiki page.
Sorry Rémi, please ignore my previous post. The new problem is follows:

Code: Select all

root@xdyubuntu:/home/biubiu/vlc/win32# ../extras/package/win32/configure.sh --host=xdyubuntu --build=x86_64-pc-linux-gnu checking build system type... x86_64-pc-linux-gnu checking host system type... Invalid configuration `xdyubuntu': machine `xdyubuntu' not recognized configure: error: /bin/bash ../extras/package/win32/../../../autotools/config.sub xdyubuntu failed root@xdyubuntu:/home/biubiu/vlc/win32# ping xdyubuntu PING xdyubuntu (127.0.1.1) 56(84) bytes of data. 64 bytes from xdyubuntu (127.0.1.1): icmp_seq=1 ttl=64 time=0.013 ms 64 bytes from xdyubuntu (127.0.1.1): icmp_seq=2 ttl=64 time=0.024 ms 64 bytes from xdyubuntu (127.0.1.1): icmp_seq=3 ttl=64 time=0.037 ms 64 bytes from xdyubuntu (127.0.1.1): icmp_seq=4 ttl=64 time=0.030 ms 64 bytes from xdyubuntu (127.0.1.1): icmp_seq=5 ttl=64 time=0.023 ms 64 bytes from xdyubuntu (127.0.1.1): icmp_seq=6 ttl=64 time=0.023 ms ^C --- xdyubuntu ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5103ms rtt min/avg/max/mdev = 0.013/0.025/0.037/0.007 ms root@xdyubuntu:/home/biubiu/vlc/win32#

Re: Help:HOST-TRIPLE-gcc: not found And protoc version mismatch

Posted: 31 Oct 2018 05:55
by WithinRafael
Re-read the wiki carefully.
Please make sure that you replace the keywords HOST-TRIPLET with either i686-w64-mingw32 or x86_64-w64-mingw32 adapted to your target Windows version (32-bit or 64-bit, respectively)
To clean up the protoc error (not on the wiki) you'll need to grab an older/newer copy of protoc (depending on your installed version). Precompiled binaries can be found at https://github.com/protocolbuffers/protobuf/releases