×î½üÔÚÉÏÂß¼ÊÔÑ飬ËùÒÔÒªÓÃXilinx¡£ÎÒÓõÄÊÇXilinx ISE 8.2i£¬ËüÒªÇóµÄϵͳÊÇwindows NT/XP£¬»òrhµÄ3¡¢4£¨ÎÒ±¾²»ÏëBSËü¡£¡£¡££©
ÓÚÊÇÔÚGNU/LinuxµÄ¸÷¸ö·¢ÐаæÓÃÕâ¸ö¶«Î÷¹À¼Æ»á³öÒ»¶Ñ´íÎó¡£
¸Õ¸Õ½â¾öÁ˼¸¸ö×Ô¼ºÓöµ½µÄÎÊÌ⣺
1. °²×°ºóÈçºÎÆô¶¯
Xilinx ISE°²×°ºÃºóÔÚÈκÎÒ»¸öĿ¼ÏÂÃ涼ûÓÐÒ»¸ö¿ÉÒÔÖ±½ÓʹÓõÄÆô¶¯Æ÷¡£Èç¹û²»Ïë°ÑxilinxµÄÒ»¶Ñ»·¾³±äÁ¿¼Óµ½ÏµÍ³µÄ.bashrc»òÆäËü¶«¶«ÀïÃ棬ʹÓÃÏÂÃæµÄ·½°¸£º
a. cp {Xilinx}/settings.shµ½{Xilinx}/bin/linÏ£¬Ä©Î²Ìí¼ÓÁ½ÐУº
exec ise
export DISPLAY=:0 //ºóÃæ»á˵ÕâÐеÄ×÷ÓÃ
ÁíÍâÔÚÍ·²¿Ìí¼Ó#!/bin/sh. È»ºóÌí¼Ó¿ÉÖ´ÐÐȨÏÞ¡£
b. ½¨Á¢Æð¶¯Æ÷¡£~/.local/share/applicationsϽ¨Á¢ÏÂÃæµÄdesktopÎļþ
[Desktop Entry]
Encoding=UTF-8
Name=Xilinx ISE
Comment=Xilinx ISE 8.2i
Exec=/opt/Xilinx/bin/lin/startise
Terminal=false
Type=Application
StartupNotify=true
Icon=/opt/Xilinx/data/images/ttc-wizard.xpm
Categories=Application;GNOME;Development;IDE;
MimeType=
2. Generated C++ compilation was unsuccessful [¹Ø¼ü]
Õâ¸öÎÊÌâÊÇÒòΪXilinx×Ô¼ºmsÓÐÒ»¸ögccµÄ¿â£¬µ«ÆäÖÐijЩµÄ°æ±¾Ì«ÀÏ£¬ÆäÖÐÒ»¸öµ¼ÖÂÁËÉÏÃæµÄÎÊÌâ¡£½â¾ö·½°¸ÈçÏ£º
When trying to build a model on the behavioral simulator you get the error:
'Generated C++ compilation was unsuccessful'
I am sure most of the people using Xilinx ISE in Linux have encountered that fatal error......=__=b
After days of efforts, I finally got the solution on the internet......^_^
Now, let's share the solution:
Step1: Go to the top of your Xilinx tree({Xilinx}), then go into
{Xilinx}/gnu/gcc/3.2.3/lin/lib/gcc-lib/i686-pc-linux-gnu/3.2.3
open the file "specs", search for the line that contains '-lc' and replace all the '-lc' by '-lcxil'; there are
only two occurrences of "-lc".
Step2: copy /usr/lib/libc.so to {Xilinx}/gnu/gcc/3.2.3/lin/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libcxil.so.
Then go to the directory again and edit libcxil.so. This file is very shot, just modify the last line as
below:
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a /lib/ld-linux.so.2 )
3. ÎÞ·¨Æô¶¯PACE [¹Ø¼ü]
Õâ¸öÓÐÁ½¸öÎÊÌ⣬һ¸öÊÇÒ»°ãµÄGNU/LinuxĬÈÏûÓÐ×°libmotif3Õâ¸ö°ü£¬¶øPACEÐèÒªlibXm.so.3.0.2µÄÕâ¸ö¿âÔÚ libmotif3ÀïÃæ¡£ÁíÒ»¸öÊÇGNU/LinuxĬÈÏûÓÐ×°portmapÕâ¸ö°ü£¬Õâ¸ö²»ÊÇÖÂÃüµÄ£¬µ«Èç¹û²»×°£¬»á³öÏÖÒ»¸öÎÞ·¨Á¬½ÓRPCµÄÎÊÌ⣬ PACEºÜ¿ÉÄÜÆð²»À´¡£
½â¾ö·½°¸£º
a. °²×°libmotif3£¬×°ºÃºóÒ»°ãÀ´Ëµ»¹ÊDz»ÄÜÆô¶¯PACEµÄ£¬ÐèÒªexport DISPLAY=:0£¬ÕâÒѼÓÔÚÇ°ÃæµÄÆô¶¯ÎļþÀï¡£
b. °²×°portmap£¬ÕâÑùPACE¿ÉÒԺܿìÆðÀ´¡£
˳±ã£¬ÎÒÕâÀïÓÃPACEµÄʱºòÊó±êòËÆÓеãÎÊÌâ¡£ÓüüÅ̾ͿÉÒÔÁË¡£