The compilation is failed. Because:
fatal error LNK 1181: cannot open input file..\..\subprojects\protobuf-3.5.1\protobuf-lite.lib'
The file protobuf-lite.lib misses from source and it can not make the project too.
What is the solution?
I used VS 2017, CUDA ver.10.0, meson-0.49.0 and other standard programs for leela compilation.
Note for leela ver.23.3 VS 2015 and other standard programs worked fine.
Issue with compilation of leela ver.0.24.x
Moderators: hgm, Rebel, chrisw
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
-
- Posts: 4889
- Joined: Thu Mar 09, 2006 6:34 am
- Location: Pen Argyl, Pennsylvania
Re: Issue with compilation of leela ver.0.24.x
sudo cp libprotobuf.a /usr/local/lib
sudo cp libprotobuf-lite.a /usr/local/lib
sudo cp libprotoc.a /usr/local/lib
sudo cp libprotoc.la /usr/local/lib
sudo cp libprotoc.so.21.0.1 /usr/local/lib
sudo cp protoc /usr/local/bin
sudo cp libprotobuf-lite.a /usr/local/lib
sudo cp libprotoc.a /usr/local/lib
sudo cp libprotoc.la /usr/local/lib
sudo cp libprotoc.so.21.0.1 /usr/local/lib
sudo cp protoc /usr/local/bin
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
Re: Issue with compilation of leela ver.0.24.x
Sorry, I use Windows 10 x64 and Windows does not know "sudo" but Linux.
Moreover there is protobuf-lite.lib nowhere.
Maybe it is constructed by meson during the process of compilation.
There is only a protobuf-lite.dll file in the \build\subprojects\protobuf-3.5.1\ dir.
Please, see in your compilation the \build\subprojects\protobuf-3.5.1\ what contains.
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
Re: Issue with compilation of leela ver.0.24.x
I think it is the time the developers of Leela should renew the tools and the writing down of the compilation of Leela.corres wrote: ↑Mon Mar 23, 2020 9:19 am ...
Sorry, I use Windows 10 x64 and Windows does not know "sudo" but Linux.
Moreover there is protobuf-lite.lib nowhere.
Maybe it is constructed by meson during the process of compilation.
There is only a protobuf-lite.dll file in the \build\subprojects\protobuf-3.5.1\ dir.
Please, see in your compilation the \build\subprojects\protobuf-3.5.1\ what contains.
-
- Posts: 343
- Joined: Sun Aug 25, 2019 8:33 am
- Full name: .
Re: Issue with compilation of leela ver.0.24.x
When I was compiling 0.23.2, in the VS solution there was a directory subprojects and protobuf-lite is there. You have to build it.
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
Re: Issue with compilation of leela ver.0.24.x
Earlier for compiling lc0-v0.23.3 I used VS 2015 and after some modifications it was fine.
Now I tried to compile it using VS 2017 without success and the fault was the same as in the case of ver.0.24.1.
The file protobuf-lite.lib is nowhere. But I found in \build\subprojects\protobuf 3.5.1\ dir the file protobuf-lite.DLL.
I am afraid protobuf do not like VS 2017.
Note
lc0 v0.24.1 needs VS 2017 only because its source contain <optional>, what is not the part of VS2015 (merely 17/19).
In lc0 v0.23.x instead of <optional> developers used a trick and it is working. I do not know why they no keep to that good solution.
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
Re: Issue with compilation of leela ver.0.24.x
Maybe there is no developer of Leela, who read TCM?
Or from them lacks the readiness to help?
Or from them lacks the readiness to help?
-
- Posts: 536
- Joined: Thu Mar 09, 2006 3:01 pm
Re: Issue with compilation of leela ver.0.24.x
My impression is that very few of the many helpful Leela devs read here, and then only occasionally.
If you want help, suggest joining the Lc0 Discord server and asking in the #help channel, which is very active.
https://discord.gg/pKujYxD
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
Re: Issue with compilation of leela ver.0.24.x
Thanksbrianr wrote: ↑Tue Mar 24, 2020 5:37 pmMy impression is that very few of the many helpful Leela devs read here, and then only occasionally.
If you want help, suggest joining the Lc0 Discord server and asking in the #help channel, which is very active.
https://discord.gg/pKujYxD
But I have no google account.
-
- Posts: 177
- Joined: Wed May 23, 2018 9:29 pm
Re: Issue with compilation of leela ver.0.24.x
You don't need a Google account to join Discord.corres wrote: ↑Tue Mar 24, 2020 7:08 pmThanksbrianr wrote: ↑Tue Mar 24, 2020 5:37 pm
My impression is that very few of the many helpful Leela devs read here, and then only occasionally.
If you want help, suggest joining the Lc0 Discord server and asking in the #help channel, which is very active.
https://discord.gg/pKujYxD
But I have no google account.
And starting from v0.24, Lc0 doesn't require libprotobuf.