GithubHelp home page GithubHelp logo

veloce / cordova-plugin-stockfish Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 13.0 705 KB

Cordova interface for the Stockfish chess engine

License: GNU General Public License v3.0

Java 0.62% JavaScript 0.11% Makefile 2.48% C++ 95.34% Objective-C 0.05% Objective-C++ 0.45% Shell 0.94%

cordova-plugin-stockfish's People

Contributors

bapmrl avatar freefal avatar gcp avatar srenault avatar veloce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cordova-plugin-stockfish's Issues

NDK build: GCC to Clang migration

Per an Android announcement, the Android OS migrated to Clang from GCC long ago, and "future versions" of the NDK will disallow GCC as a compiler.

As of at least Android NDK r19c (19.2.5345600), GCC is banned:

Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process /home/joe/Android/Sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/joe/code/lichobile/platforms/android/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/home/joe/code/lichobile/platforms/android/app/src/main/jni/Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=/home/joe/code/lichobile/platforms/android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/joe/code/lichobile/platforms/android/app/build/intermediates/ndkBuild/debug/lib /home/joe/code/lichobile/platforms/android/app/build/intermediates/ndkBuild/debug/obj/local/x86/libstockfishjni.so}
  
  /home/joe/Android/Sdk/ndk-bundle/build/core/setup-toolchain.mk:52: *** Android NDK: Invalid NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported. See https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md.    .  Stop.

chess960 analysis replay bug

I found a bug in veloce/lichobile in a 960 replay analysis. App crashes when rewinding or fast forwarding on iOS.

Will try to reproduce on android too.

It appears to be a bug in stockfish.

Improve Stockfish performance on Android

Some issues to try, I'll make pull requests if any work:

  • Add -O3, by default Android only uses -O2 in release mode
  • Add LOCAL_ARM_MODE := arm to Android.mk to avoid the code being built in Thumb mode
  • Enable AArch64 builds

Stockfish ndk-build

Hi,

I am trying to use this package in an Ionic app but I got stuck.

When trying to ndk-build -C app/platforms/android within ionicApp/node_modulescordova-plugin-stockfish directory I am getting:

make: *** app/platforms/android: No such file or directory. Stop.

After changing the command to ndk-build -C src/android I am getting a bit further:

make: Entering directory 'G:/ionicApps/ionicApp/node_modules/cordova-plugin-stockfish/src/android'
[armeabi-v7a] Compile++ thumb: stockfishjni <= stockfishjni.cpp
jni/stockfishjni/stockfishjni.cpp:3:10: fatal error: 'threadbuf.h' file not found
#include <threadbuf.h>

Thanks!
Any idea what am I missing here?

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.