featurecat / lizzie

Lizzie - Leela Zero Interface
GNU General Public License v3.0
958 stars 227 forks source link

Leela Zero problem #480

Open loopan1 opened 5 years ago

loopan1 commented 5 years ago

Hi, I'm trying to make Leela Zero analysing tool to work on my Mac under Sabaki. So what I did was /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" git clone https://github.com/gcp/leela-zero Documents/Go/leela-zero cd Documents/Go/leela-zero/src brew install boost make curl -O http://zero.sjeng.org/best-network

and when I run make command I get this error

Detected OS: Darwin /Library/Developer/CommandLineTools/usr/bin/make CC=gcc CXX=g++ CXXFLAGS=’-I./Eigen -I/System/Library/Frameworks/Accelerate.framework/Versions/Current/Headers -I. -Wall -Wextra -Wno-ignored-attributes -pipe -O3 -g -ffast-math -flto -march=native -std=c++14 -DNDEBUG’ LDFLAGS=’ -flto -g’ Lela g++ -I./Eigen -I/System/Library/Frameworks/Accelerate.framework/Versions/Current/Headers -I. -Wall -Wextra -Wno-ignored-attributes -pipe -O3 -g -ffast-math -flto -march=native -std=c++14 -DNDEBUG -MD -MP -c -o Network.o Network.cpp Network.cpp:34:10: fatal error: ‘Eigen/Dense’ file not found

include <Eigen/Dense>

^~~~~ 1 error generated. make[1]: [Network.o] Error 1 make: [default] Error 2

Any ideas?

featurecat commented 5 years ago

what's the problem?

loopan1 commented 5 years ago

As I understend " make " command create executive file. But in my case I get above error. So I'm asking what's the problem is :)

Ps. I don't know much about all this I found this solution on forum and it seems to work for everybody but me.

alreadydone commented 5 years ago

git submodule update --init --recursive https://github.com/gcp/leela-zero#example-of-compiling-and-running---macos

loopan1 commented 5 years ago

Ok After fallowing all this steps shouldn't I ended up with the executive file named Leelaz inside the Leela Zero /src ? But I don't have that file so I can't in Sabaki manage engines and set up a path

loopan1 commented 5 years ago

Sorry now I released I'm getting error after running cmake ..

CMake Error: The source directory "/Users/jakubziomko" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

suzuki-r commented 5 years ago

Found a following solution, which worked for me at least. I found it by accident and have no idea why it works. I assume you installed "Lizzie.0.6.Mac-Linux.zip", and executed in that folder $ git clone https://github.com/gcp/leela-zero $ cd leela-zero $ git submodule update --init --recursive

It is commonly said that one should look at leela-zero/src/config.h and change Line 79

define USE_OPENCL to //#define USE_OPENCL

Don't do this. Instead, just change Lines 121-126

ifdef USE_OPENCL ... #endif to / #ifdef USE_OPENCL ... #endif /

Now one can follow the rest of instructions in README.txt, namely $ cd leela-zero/src $ make Will it work?

featurecat commented 5 years ago

seems the instructions will need to change for cpu-only