Requests for Android engines

Archimedes

Android Engines Top Active Users
Forum Contributions
Points: 42 582,00 
Posts: 2059
Joined: 04/11/2019, 21:13
Status: Offline (Active 7 Hours, 34 Minutes ago)
Medals: 2
Topics: 158
Reputation: 7111
Been thanked: 6477 times

Re: Requests for Android engines

Post by Archimedes »

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)

Return to “Mobile Software, Engines”