Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Using Quartus and Nios IDE with Ubuntu 10.04

Hello,

I have made some tries to use Altera tools on the new Ubuntu release : Lucid (10.04). Even if it's a beta version, I think you will have some troubles with the official release.

Here are the changes I had to do:

- USB Blaster

The problem is not coming with this new version but with the kernel, some people already encountered it with Ubuntu 9.10 because of the fact USB fs became deprecated. That means you no more have your /proc/bus/usb repository. Then I have add these two lines

mount --bind /dev/bus /proc/bus
ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices

into the /etc/rc.local file. It was the only problem I had with Quartus but I don't have a huge use of this tool.

I have also try to compile the kernel with the usb fs option but it was not a good idea since no more usb peripherals were ok.

- Nios II IDE compilation

Each time I would like to compile a project or the sys lib, I had the message:

Error: no processor component available.
make: ***  Error 1
SOPC_BUILDER_PATH may be incorrectly set in your environment.

The problem comes from an xorg library : libXi which is the 6.1.0 version with the Ubuntu Lucid. The Api seems to have change, then you will need to use the 6.0.0 version. You can simply copy your /usr/lib32/libXi.so.6.0.0 and change the symbolic link /usr/lib32/libXi.so.6

I hope these tips could be useful.

27 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I would not touch my system libraries. The best option is to remove local libraries from Quartus, so it has to search for the system ones:

    cd /opt/altera9.1/quartus/linux/

    sudo mv libX11.so.6 libX11.so.6_old

    sudo mv libuuid.so.1 libuuid.so.1_old

    --- Quote End ---

    Thank you, jrierab. Your approach really works!:D

    Now the quartus II function well.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I was finally able to run eclipse-nios2, I followed the next instructions for Ganymede:

    http://sandakith.wordpress.com/2008/07/11/eclipse-ganymede-startup-problem-in-ubuntu-orgeclipseswtswterror-xpcom-erro/

    http://swik.net/eclipse/del.icio.us/tag/eclipse/eclipse+ganymede+startup+problem+in+ubuntu+:+org.eclipse.swt.swterror:+xpcom+erro+%c2%ab+lahiru+sandakith+gallege%e2%80%99s+web+log/dfs99

    So add the next line:

    -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/mozilla

    to

    /opt/altera9.1sp2/nios2eds/bin/eclipse_nios2/eclipse.ini

    I am not sure if this really does it, but now I was able to at least run eclipse-nios2.

    Iztok
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Just download file from the slacker's post and copy it to the library directory:

    
     cp libXi.so.6.0.0.txt   /usr/lib/libXi.so.6.0.0
    ln -s -f /usr/lib/libXi.so.6.0.0 /usr/lib/libXi.so.6
    

    --- Quote End ---

    Didn't wok for me in Lynx 64bit with libXi.so.6.1.0. Trying to install 10.0sp1_quartus_free_linux.sh and I was able to install 10 before sp1 in Koala 64bit fine. Koala has the 6.0.0 version of libXi.so. Slacker's copy failed, copying from my Koala drive

    billt@vblynx64:/tmp$ ls -l /usr/lib/libXi.*

    -rw-r--r-- 1 root root 153588 2010-03-22 16:17 /usr/lib/libXi.a

    lrwxrwxrwx 1 root root 23 2010-09-04 14:44 /usr/lib/libXi.so -> /usr/lib/libXi.so.6.0.0

    lrwxrwxrwx 1 root root 23 2010-09-04 14:17 /usr/lib/libXi.so.6 -> /usr/lib/libXi.so.6.0.0

    -rw-r--r-- 1 root root 38384 2010-09-04 13:53 /usr/lib/libXi.so.6.0.0

    -rw-r--r-- 1 root root 63864 2010-03-22 16:17 /usr/lib/libXi.so.6.1.0

    lrwxrwxrwx 1 root root 23 2010-09-05 20:05 /usr/lib/libXi.so.6.noaltera -> /usr/lib/libXi.so.6.1.0

    lrwxrwxrwx 1 root root 14 2010-09-04 09:47 /usr/lib/libXi.so_noaltera -> libXi.so.6.1.0

    I copied 10.0 build 218 as installed from Koala machine and that seems to start fine with Slacker's fix.

    If I put libs back to Lynx's 6.1.0 version

    billt@vblynx64:/tmp$ ls -l /usr/lib/libXi.*-rw-r--r-- 1 root root 153588 2010-03-22 16:17 /usr/lib/libXi.a

    lrwxrwxrwx 1 root root 14 2010-09-04 09:47 /usr/lib/libXi.so -> libXi.so.6.1.0

    lrwxrwxrwx 1 root root 23 2010-09-05 20:05 /usr/lib/libXi.so.6 -> /usr/lib/libXi.so.6.1.0

    -rw-r--r-- 1 root root 43272 2010-09-05 21:01 /usr/lib/libXi.so.6.0.0

    -rw-r--r-- 1 root root 63864 2010-03-22 16:17 /usr/lib/libXi.so.6.1.0

    lrwxrwxrwx 1 root root 23 2010-09-04 14:17 /usr/lib/libXi.so.6.altera -> /usr/lib/libXi.so.6.0.0

    lrwxrwxrwx 1 root root 23 2010-09-04 14:44 /usr/lib/libXi.so.altera -> /usr/lib/libXi.so.6.0.0

    quartus 10 again seems to works fine.

    Though I have not yet got an install to run so I'm not at 10SP1. Does this only affect installer??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    While I was not able to use the main GUI installer program using sudo bash 10.0sp1_quartus_free_linux.sh I was able to run command-line install with the directory extracted before the library error. On Lucid 64bit:

    cd /tmp

    sudo bash ~/Downloads/10.0sp1_quartus_free_linux.sh

    (extracts directory but fails to run after that)

    cd 10.0sp1_quartus_free_linux

    sudo bash ./setup -w --install=quartus_free --source=/tmp/10.0sp1_quartus_free_linux --target=/opt/altera/quartus

    It does seem important to call bash, using sh instead by habit gave some script syntax error about an ampersand character.

    This was all with the current version (as of today) linXi.si.6.1.0 installed, not going back to 6.0.0.

    bash ./setup --help gives other flags and install product names to try for your needs. I imagine the subscription install would work the same as this.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    As wtoner said, in Ubuntu 10.10 64bits it does not work. Well, after I did rename the librairies with _old as jrierab said, I got that message :

    --- Quote Start ---

    quartus: symbol lookup error: /usr/lib32/libXi.so: undefined symbol: XESetWireToEventCookie

    --- Quote End ---

    I have found what to do here ( ubuntuforums.org/showthread.php?t=1448839) about the Shake software, with the same error. This is what I did :

    --- Quote Start ---

    * go to [packages.ubuntu.com/karmic/i386/libxi6/download] and download libxi6_1.2.1-2ubuntu1_i386.deb

    * DON'T INSTALL IT. This is old version of libXi and your system allready has newer. You need this version only to run quartus.

    * uncompress libXi.so.6.0.0 in to /usr/lib32/

    * make symbolic link libXi.so.6 => libXi.so.6.0.0

    * run quartus

    * Enjoy.

    --- Quote End ---

    Instructions from elt128's post.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Just download file from the slacker's post and copy it to the library directory:

    
     cp libXi.so.6.0.0.txt   /usr/lib/libXi.so.6.0.0
    ln -s -f /usr/lib/libXi.so.6.0.0 /usr/lib/libXi.so.6
    

    --- Quote End ---

    I think it is not a good idea to point people to such dangerous commands with even the '-f' flag, because there may be people out there who do not know what they're doing and this could potentially kill someones system. I am glad I made a backup of my existing file beforehand, and only after that created a symlink to the downloaded file, because after that my system didn't boot anymore. I had to boot another system from USB, remove the symlink and restore the old file. Long story short: This fix has not worked on my system.

    Anyways, my initial error was something like the following:

    --- Quote Start ---

    undefined symbol xgetreuest

    --- Quote End ---

    Removing the files as described here has helped to get it working: 92352

    I'm running an Arch Linux x86_64 with XMonad. (For some reason, our lecturer wanted us to run that 9.X version of quartus.. :confused:)