简体   繁体   English

使用Delphi从Android通过IBDac / UniDac直接连接到Firebird

[英]Direct connection to Firebird with IBDac/UniDac from Android using Delphi

I'm trying to connect to a REMOTE Firebird Database from Android using Delphi and IBDac. 我正在尝试使用Delphi和IBDac从Android连接到REMOTE Firebird数据库。 It says that cannot find libfbclient.so.3.0.2 library. 它说找不到libfbclient.so.3.0.2库。 I put it in the deploy to all library paths and nothing. 我把它放到所有库路径的部署中,什么也没有。 If I remove the library it doesn't connect neither. 如果我删除该库,则两者都不会连接。 The android version is 7.0. android版本是7.0。 Thanks in advance. 提前致谢。

my solution: 我的解决方案:

in delphi (deploying): add file libfbclient.so.3.0.2 delphi (部署):添加文件libfbclient.so.3.0.2

remote-path: assets\\internal 远程路径:资产\\内部

in delphi (program): 在delphi中(程序):

no entry in IBCConnection ClientLibrary IBCConnection ClientLibrary中没有条目

source code: 源代码:

IBCConnection1.Server:= *server-ip or name*;
IBCConnection1.ClientLibrary:= TPath.Combine(TPath.GetDocumentsPath, 'libfbclient.so.3.0.2');
IBCConnection1.DataBase:= *datebase name*;
IBCConnection1.Connect;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM