赛灵思
直播中

王丹青

7年用户 153经验值
私信 关注
[问答]

Firefox Web浏览器称“无法加载XPCOM”

嗨,
我最近安装了ISE 14.2 / Vivado / Vivado_HLS 1012.2,但我已经在ISE 12.3上遇到了这个问题。
每当GUI,xps,xsdk需要访问网络时,我都会“无法加载XPCOM”。
来自Firefox,该页面无法启动。
一些观察:
如果我为xilinx程序设置一个shell,那么就启动firefox
$。
/usr/local/binaries/Xilinx/14.2/ISE_DS/settings64.sh
$ firefox
我也得到了“无法加载XPCOM”。
来自firefox的错误。
但如果我那么做
$ exportLD_LIBRARY_PATH = / usr / lib64:$ LD_LIBRARY_PATH
$ firefox
firefox将会启动。
所以xilinx环境变量设置搞砸了。
有趣:作为一种解决方法,我为firefox编写了一个包装脚本,如下所示:
#/ usr / local / bin / xilinx-firefox#尝试停止“无法加载XPCOMM。”echo“xilinx-firefox:它是我”echo>& 2“xilinx-firefox:它是我的stderr”LD_LIBRARY_PATH = /
usr / bin / firefox“$ @”
并在ISE首选项中配置xilinx-firefox作为Web浏览器,事实证明不会运行!
ISE继续使用默认浏览器/ usr / bin / firefox。
xps和xsdk显示相同的行为。
Vivado和vivado_hls没有提供任何错误消息,但也可以打开网页。
任何帮助将非常感激。
我搜索了论坛和网站,发现了一些事件
XPCOM,但没有什么相似之处。
亲切的问候,
克里斯海尔曼

以上来自于谷歌翻译


以下为原文

Hi,
I recently installed ISE 14.2/Vivado/Vivado_HLS 1012.2, but I had this problem already on ISE 12.3.

Whenever the GUI of ise, xps, xsdk needs to access the web, I get "Couldn't load XPCOM." from Firefox and the page does not launch.

Some observations:
  • If I setup  a shell for xilinx programs, then launch firefox, with
$ . /usr/local/binaries/Xilinx/14.2/ISE_DS/settings64.sh
$ firefox

I also get the "Couldn't load XPCOM." error from firefox. But if I then do

$ export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
$ firefox

firefox will launch all right. So the xilinx environment variable setup screws up something.

  • Funny: As a workaround, I wrote a wrapper script for firefox like this:
# /usr/local/bin/xilinx-firefox
# tries to stop "Couldn't load XPCOMM."
echo "xilinx-firefox: it's me"
echo >&2 "xilinx-firefox: it's me on stderr"
LD_LIBRARY_PATH=
/usr/bin/firefox "$@"

and configured xilinx-firefox in ISE preferences as the web browser, it turns out not to get run!. ISE keeps on using the default browser /usr/bin/firefox.

  • xps and xsdk display the same behaviour. Vivado and vivado_hls give no error messages, but also do noy open the web page.

Any help would be much appreciated. I searched the fora and the web, found some incidents with
XPCOM, but nothing quite similar.

Kind regards,

Kris Heyrman.



回帖(14)

赵晨

2019-1-2 15:20:28
由于上面和网上的其他文件,我想出了如何解决这个问题。
1.问题是Xilinx环境的上述环境迫使firefox(包括其XPCOM模块)使用Xilinx的libstdc ++版本。所以,不是主机系统的libstdc ++。所以。
任何依赖某个版本的libstdc ++的程序,比如firefox(也就是svn,例如)都行不通。
设置环境后,ise,vivado和朋友然后继续使用并依赖firefox,这会导致上述问题。
2.由于ise不服从备用浏览器选择偏好,而vivado没有我能找到的那个,这一事实更加复杂。
3.我通过编辑/ usr / bin / firefox解决了这个问题,这是一个shell脚本,它只是稍后加载二进制可执行文件,并作为脚本的第一行插入:
export LD_LIBRARY_PATH =
结果:firefox忽略LD_LIBRARY_PATH的所有先前设置,并且适用于所有Xilinx应用程序。
4. Xilinx脚本编写者请注意,对于您自己的应用程序,依赖于LD_LIBRARY_PATH的全局设置是不可取的。
应在您的应用程序中进行此类设置。
它绕过了Linux对.so文件的仔细版本管理,并使任何为Xilinx设置的shell无法用于其他一些应用程序。
这种做法是在寻找麻烦,显然必须由客户重新设定。
我怀疑这样的设置甚至可以用于所谓的“支持版本”;
它们在这方面是相同的:系统有一个编号为.so的版本树,安装在正确的位置,确保所有二进制文件都可以加载他们需要的库。
在原帖中查看解决方案

以上来自于谷歌翻译


以下为原文

I figured out how to solve this, thanks to the above and other documents on the net.1. The problem is that the above environment by Xilinx environment forces firefox, including its XPCOM module, to use Xilinx's version of libstdc++.so,  not the host system's libstdc++.so. Any program that relies on a certain version of libstdc++, like firefox (an also svn, by example) will not work. After setting the environment, ise, vivado and friends then proceed to use and rely on firefox, which leads to the trouble described above.2. This gets compounded by the fact that ise does not obey to an alternate browser selection preference, and vivado  does not have one I could find.3. I solved the problem by editing /usr/bin/firefox, which mercifully is a shell script that loads the binary executable only later, and inserting, as the first line of the script:export LD_LIBRARY_PATH= Result: firefox ignores all previous settings of LD_LIBRARY_PATH, and works in all Xilinx applications.4. Xilinx script writers please note, it is BAD PRACTICE to rely on a global setting of LD_LIBRARY_PATH for your own applications; such settings should be made IN your applications. It circumvents Linux' careful version management  of .so files, and makes any shell which has been set up for Xilinx unusable for some other applications.This practice is asking for trouble, which obviously has to be set right by customers all over again. I doubt that such setting can even work on the so-called 'supported versions'; they are just the same in this respect: the system has a version tree of numbered .so's, installed in the correct places, that ensure that all binaries can load the librares they need.View solution in original post
举报

潘晶燕

2019-1-2 15:33:33
克里斯,
哇,今天早上我的第三封电子邮件,提出了同样的建议:提交一个webcase。
这听起来像linux安装中的一个错误。
最好让它进入团队来看待它。
谢谢,
Austin Lesea主要工程师Xilinx San Jose

以上来自于谷歌翻译


以下为原文

Kris,

Wow, my third email this morning with the same advice:  file a webcase.  This sounds like a bug in the linux install.
 
Best to get it into the team to look at it.
 
Thank you,
Austin Lesea
Principal Engineer
Xilinx San Jose
举报

赵晨

2019-1-2 15:46:17
Tx奥斯汀。
我已经做了。

以上来自于谷歌翻译


以下为原文

Tx Austin. I just did.
举报

萧登水

2019-1-2 16:02:36
听起来像是图书馆不兼容。
启动脚本只需将$ XILINX / lib / lin64添加到LD_LIBRARY_PATH,将$ XILINX / bin / lin64添加到PATH。
Xilinx .so库中的某些内容可能存在冲突。
看看这个其他相关主题:
http://forums.xilinx.com/t5/EDK-and-Platform-Studio/No-browser-link-opens-in-SDK-13-1-ubuntu-10-10-x64/td-p/219085

以上来自于谷歌翻译


以下为原文

Sounds like a library incompatibility.  The startup script just prepends $XILINX/lib/lin64 to LD_LIBRARY_PATH and $XILINX/bin/lin64 to PATH.  Something in the Xilinx .so libraries may be conflicting.
 
Check out this other related thread:
http://forums.xilinx.com/t5/EDK-and-Platform-Studio/No-browser-link-opens-in-SDK-13-1-ubuntu-10-10-x64/td-p/219085
举报

更多回帖

发帖
×
20
完善资料,
赚取积分