SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

Hi! I’ve purchased your products including source code. I need to modify some of your code and have tried in many ways, but I have not compiled your source codes successfully. I am working on it on my Mac Osx, using android studio version of Android Gradle Plugin Version 3.1.0 and Gradle Version 4.4. I’ve got these errors, but I could not find any hints to solve this problem from your QnA site and google. The messages are following. Please let me know how to compile your source code properly. The source codes I have is SciChart_Android_v2.5.0.2540_SDK. Thank you for your good products and service.

Build command failed.

Error while executing process /Users/shiwansung/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/Application.mk APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-19 NDK_OUT=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/build/intermediates/ndkBuild/debug/lib -j4 /Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/build/intermediates/ndkBuild/debug/obj/local/x86_64/libdata.so}

[x86_64] Compile++ : data <= SciListUtil.cpp

[x86_64] Compile++ : data <= arrayOperations.cpp

[x86_64] Compile++ : data <= NativePointResamplerFactory.cpp

[x86_64] Compile++ : data <= resampling.cpp

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

MAKE_NATIVE(double, double)

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: variable has incomplete type ‘void’

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:16: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

           ^

:359:1: note: expanded from here

Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: expected ‘;’ after top level declarator

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:98: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                             ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:28:104: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void JNICALL Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleWithoutReduction(JNIEnv *env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jboolean isCategoryData)\

                                                                                                   ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:33:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:38:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMin(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:43:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMid(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:48:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMaxUnevenlySpaced(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jdouble minXInclusive, jdouble maxXInclusive, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:59:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:53:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleInClusterMode(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

MAKE_NATIVE(double, float)

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:28:104: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void JNICALL Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleWithoutReduction(JNIEnv *env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jboolean isCategoryData)\

                                                                                                   ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:33:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:38:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMin(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:43:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMid(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:48:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMaxUnevenlySpaced(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jdouble minXInclusive, jdouble maxXInclusive, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:60:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:53:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleInClusterMode(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:61:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

MAKE_NATIVE(double, short)

^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:23:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMinMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex,jint viewportWidth, jboolean isCategoryData)\

                                                                                           ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:61:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:28:104: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void JNICALL Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ResampleWithoutReduction(JNIEnv *env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jboolean isCategoryData)\

                                                                                                   ^

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:61:1: error: pasting formed ‘Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_double##’, an invalid preprocessing token

/Users/shiwansung/Downloads/SciChart_Android_v2.5.0.2540_Source/data/src/main/jni/NativePointResamplerFactory.cpp:33:96: note: expanded from macro ‘MAKE_NATIVE’

JNIEXPORT void Java_com_scichart_data_numerics_pointresamplers_NativePointResamplerFactory_##TX####TY##ReducePointsMax(JNIEnv* env, jclass, jobject resampledSeries, j##TX##Array xColumn, j##TY##Array yColumn, jint startIndex, jint endIndex, jint viewportWidth, jboolean isCategoryData)\

Version
SciChart_Android_v2.5.0.2540_SDK
  • You must to post comments
0
0

Hi Shiwan Sung,

May I ask what NDK version do you use? For now to compile C++ code in v2.x you need to use NDK r17. Can you try it?

Best regards,
Yura

  • Shiwan Sung
    My NDK version is 20.0.5594570. Ok, I will try with NDK r17.
  • Shiwan Sung
    I made it. Thanks a lot. Be a happy day!
  • Yura Khariton
    OK, I’ve updated project to the latest NDK version. So if you update to v2.5.0.2598 you should be able to use NDK r20
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+