Comments (12)
Cool. I was not aware that this code is (almost) ready for Android. I will do some commits in a few moments and you can test again. And I will probably setup this Android NDK later so I can test myself.
from rubichess.
Master has some fallback malloc for Android now. Please test again.
from rubichess.
Master has some fallback malloc for Android now. Please test again.
Hi! From your last source code. The issue is still there.
from rubichess.
Hmm. Strange.
#ifdef ANDROID
#define allocalign64(x) malloc(x)
#define freealigned64(x) free(x)
#else
#define allocalign64(x) aligned_alloc(64, x)
#define freealigned64(x) free(x)
#endif
Seems that the #ifdef ANDROID doesn't work here. Are you sure this ANDROID is the correct define to check for?
from rubichess.
Stockfish uses __ANDROID__
to test for Android compilation. Can you try latest master again and report if it works. I still haven't setup any Android development environment. And I just noticed that Github changes the underscores to some bold font as we can see them in your first report :-)
from rubichess.
Stockfish uses
__ANDROID__
to test for Android compilation. Can you try latest master again and report if it works. I still haven't setup any Android development environment. And I just noticed that Github changes the underscores to some bold font as we can see them in your first report :-)
from rubichess.
I checked the older code, the last "working" one is Ttinqs (#194) bddd8b8
The problem appeared in the next update Eval (#195) bd9d640
It started with "malloc" and later affected to "HashAlignBytes" and "MADV_HUGEPAGE".
from rubichess.
I hope that this works now finally. Can you describe in short words how to setup the Android environment? I have installed the NDK but I probably need some more tools or at least set some environment variables to find the correct libs?
from rubichess.
I hope that this works now finally. Can you describe in short words how to setup the Android environment? I have installed the NDK but I probably need some more tools or at least set some environment variables to find the correct libs?
Thanks, now it works! Regarding NDK, there is no short description of how it works. :-) You will need to generate android-toolchain for arm7 (32bit) and arm8 (64bit) engines, with appropriate API level for each, separately. After that you'll need to create a batch file, where you have to set paths to android-toolchains and all the necessary flags for android compiles..
from rubichess.
Okay. So I leave the Android stuff for the experts and close here.
from rubichess.
@AlexB123 Can you test current master if it compiles for Android? I will release soon and it would be good to check if it is ready for Android.
from rubichess.
@AlexB123 Can you test current master if it compiles for Android? I will release soon and it would be good to check if it is ready for Android.
Hi, sorry for delay with the answer. Yes, engine compiles fine, without any problems. Used source code from here 26fa0c6
from rubichess.
Related Issues (20)
- There are identical sub-expressions to the left and to the right of the && operator HOT 1
- Mating exercises HOT 2
- Kingdanger HOT 4
- Stack overflow
- No TB bug HOT 1
- Difficult positions
- Time management query HOT 4
- Using RubiChess in a film HOT 1
- Fix for OS X clang build error HOT 9
- Invite RubiChess to participate in a chess engine tournament.
- Rubi loses TB win with 50moves rule HOT 1
- Possible time control bug HOT 3
- Embedded NNUE HOT 7
- MultiPV is broken HOT 1
- Bug in delay measuring HOT 1
- Quite big delay on first move at TCEC HOT 4
- TB bug HOT 4
- Score of instamove
- Another 3-fold-blunder HOT 5
- Possible bug selecting a fail high move HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubichess.