DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: laidabin
今日帖子: 0
在线用户: 4
导航: 论坛 -> 移动应用开发 斑竹:flyers,iamdream  
作者:
男 changfenglee (葫芦老四) ▲▲▲▲▲ -
普通会员
2022/10/23 15:10:35
标题:
关于SDK安装问题 浏览:902
加入我的收藏
楼主: 从开始玩DELPHI起,安卓SDK的问题一直都让我莫名其妙,3年的时间内,只有一台机是成功使用的,而且我不清楚原因是为什么好的。现在我用同样的安装包,安装以后又会出现问题,错误信息如下:

[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidNDK-21-22.0.44500.8973\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe: cannot find -lc++_static
  C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidNDK-21-22.0.44500.8973\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe: cannot find -lc++abi

为了解决这个问题,我把已做的跟大家说一下,麻烦大家帮我看看什么原因:

1.开始使用win10系统 + DELPHI XE8,就有这个问题,也有其它问题,重装系统与DELPHI软件,问题不能解决

2.换成了win10系统 + DELPHI 10.4也有这个问题,还有其它问题点,重装系统与DELPHI不能解决

3.换成WIN10 + Delphi11.1以后,其中一台电脑没问题,可以正常用了,但在另一台同样的电脑上又报这个问题,系统也是win10 + Delphi11.1

4.换成win11 + delphi11.1,这个问题还是存在

我一直不明白,这到底是DELPHI这个软件有问题呢,还是我人品属于极品级,3年来就成功了一台电脑,而且还不知道是怎么成功的
----------------------------------------------
【个人签名】:玩了多年DELPHI,终于从菜鸟升级成老菜鸟
作者:
男 zhyhero (zhyhero) ★☆☆☆☆ -
盒子活跃会员
2022/10/23 15:24:45
1楼: cannot find -lc++_static
cannot find -lc++abi

这俩是啥意思,你研究过没?
----------------------------------------------
z@S7
作者:
男 letianwuji (大器晚成) ▲▲▲▲▲ -
普通会员
2022/10/23 15:36:07
2楼: 应该SDK没配置对,我有次直接从其他电脑复制SDK解压,手动配置安卓环境,也能编译成功的。
----------------------------------------------
相信自己,若自己都不相信,那还有谁可信。
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/10/23 22:00:42
3楼: @changfenglee

Here my tip for you:

Regardless of the current version of MSWindows, we still have problems with the operating system's "PATH" variable.
Not necessarily with her, but with her "size" that cannot exceed a few "bytes"...

On RAD Studio, the length of your PATH environment variable must be 1830 characters or less. The installation of RAD Studio adds up to 218 characters to your PATH environment variable. If the length of your PATH environment variable goes beyond 2048 characters, your system will misbehave.

Another point is the use of long names for the software installation directories.
Unfortunately, even today, this fact can cause problems in some computer environments.

I don't normally use the default installation directories. Neither, the system directories, like "Program Files" or "Program Files(x86)" from MSWindows!!!

I prefer to create a new directory with short names to avoid problems like:
-- "PATH" variable too long! (may cause a truncation if it exceeds the maximum value used by the operating system)
-- Directory names too long! (can be truncated if there are "spaces" between the names, or be truncated if they are too long!
-- "PATH" too long in IDE settings! (may cause the same symptoms as above, however, only for RAD Studio itself).

On the other hand, we can notice that the Android/macOS "SDK", uses a number of directories to store its files. Also, you can use very long names and unconventional symbols in the naming inherited from MSWindows.

All of this added together, can result in displaying errors that are actually not "really errors", but rather, a possible cause of the error. It's up to you to investigate the possibilities indeed!

Besides all this, you should be aware that Embarcadero also contributes to all this chaos... forgetting to check the information that is inserted in your IDE, for example, forgetting to add a correct information in the "PATH" of the libraries, or even, update information that no longer exists! etc...

My tip for creating your installation directory:
1) use your own board! Do not use the default installation directories!
2) use short names for directories!
3) test each new installation of additional software to RAD Studio!

c:\MyRADStudio <---- root with all privileges to any user
c:\MyRADStudio\RAD112
c:\MyRADStudio\XE8

c:\MySDKAndroid <---- root with all privileges to any user
c:\MySDKAndroid\SKD25xxx
c:\MySDKAndroid\SKD22xxx

c:\MyProjectsRADStudio <---- root with all privileges to any user
c:\MyProjectsRADStudio\RAD112\ .....
c:\MyProjectsRADStudio\RADXE8\ .....
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/10/23 23:08:38
4楼: in time, I forgot to say:

the Android SDK, it's not really "installed" like any other software by setup.exe, for example!

if fact, the Android SDK it's only copied for you disk!!!


That way, you can copy it from another computer!!! (if it's ok of course)

By default, the Embarcadero install (copy) the SDK Android to ..\Public\...EmBarcadero\...\CatalogueRepository\<< SDK ANDroid version>>

then, you can just copy for another place in your disk using "short names" for root-dir, like:

c:\MySDKAndroid\<< SDK ANDroid version>> <-----

after this, just go to IDE, "Tools" options "SDK Manager" and "delete old infos", and "create a new definition"!!! 

simply this!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 ddrfan (若苗瞬) ▲▲▲▲▲ -
普通会员
2022/10/24 9:09:10
5楼: 安卓SDK/NDK,确实是不需要“安装”的。
版本迭代有时目录结构都会变,导致Copy-Paste容易拷错。

报找不到库,就是找不到lib开头的库文件啊。
“ld -lpq” 就是找 libpq.so 这种。
Linux下经常有这种问题,目录不对,配置不对,库没安装。
但是在LZ这里,这个应该只是配置问题吧,关键点应该不在这。

既然楼主有一台机器是正常的,那么可以试试:

1)通过拷贝的方式,拷贝NDK/SDK文件目录到新机器。
2)D11的SDK Manager里面通过导出导入配置的方式,把配置导到新机器上。
----------------------------------------------
Bye bye DDRFAN...
作者:
男 grjs_2004 (grjsITname) ★☆☆☆☆ -
盒子活跃会员
2022/10/24 9:33:50
6楼: 我使用过,安装编译运行都没问题,正常安装即可!
只是觉得delphixe编译出来的安卓运行文件太大了,还不如直接用android studio编译。
----------------------------------------------
Everyone will to do best!
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行67.87109毫秒 RSS