Coder Social home page Coder Social logo

Android issue about rubichess HOT 12 CLOSED

matthies avatar matthies commented on July 30, 2024
Android issue

from rubichess.

Comments (12)

Matthies avatar Matthies commented on July 30, 2024

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.

Matthies avatar Matthies commented on July 30, 2024

Master has some fallback malloc for Android now. Please test again.

from rubichess.

AlexB123 avatar AlexB123 commented on July 30, 2024

Master has some fallback malloc for Android now. Please test again.

Hi! From your last source code. The issue is still there.
Rubi test 2

from rubichess.

Matthies avatar Matthies commented on July 30, 2024

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.

Matthies avatar Matthies commented on July 30, 2024

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.

AlexB123 avatar AlexB123 commented on July 30, 2024

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 :-)

Nope. Still not working.
Rubi test 3

from rubichess.

AlexB123 avatar AlexB123 commented on July 30, 2024

I checked the older code, the last "working" one is Ttinqs (#194) bddd8b8
Rubi older working
The problem appeared in the next update Eval (#195) bd9d640
Rubi issue older
It started with "malloc" and later affected to "HashAlignBytes" and "MADV_HUGEPAGE".

from rubichess.

Matthies avatar Matthies commented on July 30, 2024

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.

AlexB123 avatar AlexB123 commented on July 30, 2024

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.

Matthies avatar Matthies commented on July 30, 2024

Okay. So I leave the Android stuff for the experts and close here.

from rubichess.

Matthies avatar Matthies commented on July 30, 2024

@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 avatar AlexB123 commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.