C++ Builder 10.4 + UniDac + Android 32 -> Linker Errors

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Aggie85
Posts: 95
Joined: Wed 11 Nov 2015 17:03

C++ Builder 10.4 + UniDac + Android 32 -> Linker Errors

Post by Aggie85 » Fri 05 Feb 2021 07:24

Howdy,

What do I need to add to my project to compile a C++ program for Android 32 with the following missing functions:

[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lKbmMemTableRunC104Pro
[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lvclimg
[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lvcl
[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lvclactnband
[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lvclx
[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lvcldb
[ldandroid Error] C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lvclwinx
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerSetCodec(void*, void*, void*, void*, void*): error: undefined reference to 'lite_sqlite3PagerSetCodec'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3GetBackend(void*, int): error: undefined reference to 'lite_sqlite3GetBackend'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3BtreeGetPageSize(void*): error: undefined reference to 'lite_sqlite3BtreeGetPageSize'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3BtreeBeginTrans(void*, int, int*): error: undefined reference to 'lite_sqlite3BtreeBeginTrans'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3BtreeCommit(void*): error: undefined reference to 'lite_sqlite3BtreeCommit'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3BtreeRollback(void*, int): error: undefined reference to 'lite_sqlite3BtreeRollback'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3GetBtreePager(void*): error: undefined reference to 'lite_sqlite3GetBtreePager'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerGetCodec(void*): error: undefined reference to 'lite_sqlite3PagerGetCodec'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerPagecount(void*, int*): error: undefined reference to 'lite_sqlite3PagerPagecount'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerIsMjPgno(void*, unsigned int): error: undefined reference to 'lite_sqlite3PagerIsMjPgno'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerGet(void*, unsigned int, void*, int): error: undefined reference to 'lite_sqlite3PagerGet'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerWrite(void*): error: undefined reference to 'lite_sqlite3PagerWrite'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::lite_sqlite3PagerUnref(void*): error: undefined reference to 'lite_sqlite3PagerUnref'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::sqlite3InitVfsFunctions(Litecallvirtual::sqlite3_vfs*): error: undefined reference to 'sqlite3InitVfsFunctions'
[ldandroid Error] c:\program files (x86)\embarcadero\studio\21.0\lib\Android\release/libvquery270.a(LiteStaticVirtual.o):LiteStaticVirtual:function Litestaticvirtual::sqlite3InitCodecFunctions(Litecallvirtual::sqlite3_codec*): error: undefined reference to 'sqlite3InitCodecFunctions'
Failed

All the best,

Aggie85

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: C++ Builder 10.4 + UniDac + Android 32 -> Linker Errors

Post by MaximG » Fri 12 Feb 2021 14:55

Thank you for the information. We will investigate the described issue and let you know the results shortly.

Aggie85
Posts: 95
Joined: Wed 11 Nov 2015 17:03

Re: C++ Builder 10.4 + UniDac + Android 32 -> Linker Errors

Post by Aggie85 » Sat 13 Feb 2021 18:34

Howdy Maxim,

The solution is to link in sqlite3android32.o.

Thanks,

Aggie85

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: C++ Builder 10.4 + UniDac + Android 32 -> Linker Errors

Post by MaximG » Sat 13 Feb 2021 20:51

We are glad to see the problem resolved. Please don't hesitate to contact us with questions concerning our product usage.

Post Reply