truestudio eclipse 调试时找不到源文件的解决办法

   

truestudio是一个基于eclipse 的集成开发环境,本问题也可能出现在某些版本的eclipse中。

在使用truestudio调试代码时,如果项目源文件存在中文路径目录,则在进入调试时会出现如下显示

 

Can't find a source file at "E:\Project\\262\342\312\324\304\277\302\2741\\260\345\266\313\Application\User\Src\main.cpp" 
Locate the file or edit the source lookup path to include its location.

这里需要使用path  mapping 来映射一下中文路径

在项目属性->运行/调试设置->编辑->源->

选择添加path  mapping,把需要映射的路径设置如下即可。

 

如果设置好了以后存在进入debug立刻退出的情况,还有可能是之前的断点存在问题,清空断点再重新开始调试即可。

Iperf3 is a network traffic analysis and testing tool used to measure the bandwidth and latency between two hosts. When you encounter an error like "iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory," it typically indicates that the Iperf3 library (libiperf.so.0) cannot be found on your system. This error usually happens when: 1. The library is missing from the current execution environment, which could happen if you haven't installed Iperf3 properly or the package is not compatible with your system version. 2. The library path is not set correctly in your system's dynamic linker search paths, so the operating system can't locate the library at runtime. To resolve this issue, follow these steps: - **Update or reinstall Iperf3**: Check if there's a newer version available for your system and install it, making sure to include all necessary dependencies. - **Check installation**: Verify if the package was installed correctly by running `whereis iperf3` or `which iperf3` to see if it points to the correct location. - **Set library path**: If the library is installed but still not found, try adding the directory containing the library to your `LD_LIBRARY_PATH` or edit your shell's configuration to include the path permanently. - **Manually locate the library**: Search your system for the missing library file (e.g., `/usr/lib/` or `/usr/local/lib/`) and symlink it to a location where it can be found. After trying these steps, you should be able to run iperf3 without errors.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值