Requests for Android engines

MichaelM
I've been banned!
Points: 17 852,00 
Posts: 234
Joined: 27/08/2020, 23:44
Status: Offline (Active 8 Months, 3 Weeks, 2 Days, 5 Hours, 58 Minutes ago)
Topics: 3
Reputation: 255
1
Has thanked: 389 times
Been thanked: 362 times

Re: Requests for Android engines

Post by MichaelM »

Archimedes wrote: 05/12/2021, 12:24
kramnik wrote: 04/12/2021, 19:23 Does someone know how to compile Stockfish 1 for GCC? The Makefile is completely different from the recent ones; I did a try by my own but I failed...
Why not using your own makefile? A quick test with Stockfish 1.0 shows, that the build with g++ doesn't work in DroidFish, but with clang++ it works. Therefore, all you need is a makefile like the following one. But, before you start the compile with "make", delete the file timeoday.cpp in the source directory (Stockfish 1.0 and may be other versions too).

Code: Select all

MODULE = Stockfish
SRC_FILES = *.cpp

CFLAGS += -std=c++11 -DNDEBUG -O3 -flto -march=armv8-a
DFLAGS += 
WFLAGS += -Wfatal-errors -Wall -Wextra -Wshadow
LFLAGS += -static-libstdc++

default:
	clang++ $(CFLAGS) $(DFLAGS) $(WFLAGS) $(SRC_FILES) $(LFLAGS) -o $(MODULE)
	strip $(MODULE)
I could compile SF1.0 after some trouble with missing tabs in the makefile. The bench seems to work fine. In Droidfish everything looks good but always the engine works only short time and then stops. xrf27

Return to “Mobile Software, Engines”