I tried to compile some 
[Examples](https://github.com/nim-lang/sdl2/tree/master/examples) from SDL Nim 
official package for android, but without success!

Anyone have any ideas how to do it? 
    
    
    $ 
/home/hdias/tmp/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
 \
    
-I/home/hdias/tmp/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot
 -I/home/hdias/tmp/SDL2-2.0.9 \
    -I/home/hdias/tmp/Nim-0.19.4/lib \
    -I/home/hdias/tmp/SDL2-2.0.9/include \
    -fPIE -pie -o /home/hdias/tmp/test.bin \
    /home/hdias/.cache/nim/test_d/test.c 
/home/hdias/.cache/nim/test_d/stdlib_system.c
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_macrosDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_parseutilsDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_bitopsDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_mathDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_algorithmDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_unicodeDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_strutilsDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'sdl2_sdl2DatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'sdl2_gfxDatInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_macrosInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_parseutilsInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_bitopsInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_mathInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_algorithmInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_unicodeInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'stdlib_strutilsInit000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'sdl2_sdl2Init000'
    /tmp/test-1e7f7e.o:test.c:function PreMainInner: error: undefined reference 
to 'sdl2_gfxInit000'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'toBool_3fq5Y9cfgYx8q7J9ba6TTYbQ'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_255222_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'defaultEvent_LbtYyFPe9bpTC9bKZ8rWJeKQ'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_251437_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_252008_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_251391_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_251274_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_252318_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_255239_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_251675_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_251656_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_251230_'
    /tmp/test-1e7f7e.o:test.c:function NimMainModule: error: undefined 
reference to 'Dl_255231_'
    /tmp/test-1e7f7e.o:test.c:function destroy_sFvfWODyHxg46OuBtGyU8Qtest: 
error: undefined reference to 'Dl_252040_'
    clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
    
    
    Run

Reply via email to