Nim on Android error regarding size of a pointer

2021-04-29 Thread 19
Okay so Im trying to make nim generate the correct sizes again but for another project. I'm trying to figure it out and I hit a wall. This is the compiler build command in Android Studio (shortened for brevity): C:/NVPACK/android-sdk-windows/ndk/21.0.6113669/toolchains/llvm/prebui

Nim on Android error regarding size of a pointer

2021-04-28 Thread 19
Thank you so much! I compiled with --cpu:amd64 and it worked but it's not ideal! I couldn't find Android.mk file in my project so I'll investigate further, I have a CMAKE and some build.gradles

Nim on Android error regarding size of a pointer

2021-04-28 Thread dom96
Android Studio will build your code for different CPU architectures (not just arm). So you need a way to tell it to pick the right arch. Here is my Android.mk file showing how I did it: LOCAL_PATH := $(call my-dir) # To build these I downloaded the openssl source code, foll

Nim on Android error regarding size of a pointer

2021-04-27 Thread 19
Hi im getting this error when i cross compile to android: In file included from C:\Users\\develkinc\Shader-Kinc\Sources\@m..@sKinc@sSources@skinc@sgraphi...@sg4.nim.c:9: C:\Users\\nim-1.4.2\lib\nimbase.h:542:1: error: static_assert failed due to requirement 'sizeof(int)