Forum Discussion

3 Replies

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

    --- Quote Start ---

    Hello,

    I dont know how to do the configuration of environment variables on Ubuntu for DE1-SoC, Im new on linux so any helper to show how to do that?

    see this https://www.terasic.com.tw/attachment/archive/836/de1soc_opencl_v02.pdf in page 23.

    Thank you in advance.

    --- Quote End ---

    If you use bash like is usual on linux, you need to insert in the .bashrc initialization file in the home dir of the user using

    aoc (or the general bashrc in /etc) :

    export install_dir="where you installed quartus and aocl, the full path /...." <=============== edit

    export QSYS_ROOTDIR="${install_dir}/quartus/sopc_builder/bin"

    export ALTERAOCLSDKROOT="${intall_dir}/hld"

    export AOCL_BOARD_PACKAGE_ROOT="${install_dir}/hld/board/your terasic dir" <=================== edit

    export LD_LIBRARY_PATH="${install_dir}/hld/host/linux64/lib:${install_dir}/hld/board/your terasic dir/linux64/lib" <======================= edit

    export PATH=${QSYS_ROOTDIR}:${ALTERAOCLSDKROOT}/bin:${install_dir}/hld/quartus/bin:${PATH}

    export QUARTUS_ROOTDIR_OVERRIDE="${install_dir}/quartus"

    export QUARTUS_ROOTDIR="${install_dir}/quartus"

    export LM_LICENSE_FILE="${install_dir}/..........._License.dat" <========================== edit
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    Thank you for your reply, I tried that on terminal but nothin happened, as I said Im new on ubuntu linux in general, I need to modify the file called profile(please see the pdf in my post), I have no idea how, please could you show me how to modify "profile" to install the environment.

    thank you