Forum Discussion

Konrad's avatar
Konrad
Icon for New Contributor rankNew Contributor
4 years ago

hls installation and getting started

Hi, I am trying to get started with the hls compiler,

when I run the init_hls.bat I get the output below:-

I understand it can't find my Visual Studio, but should the i++ compiler stil work?

I can't seem to get any examples to compile,

regards

Konrad

C:\intelFPGA_lite\19.1\hls>init_hls.bat
Assuming current directory (C:\intelFPGA_lite\19.1\hls\) is root of i++

Will use C:\intelFPGA_lite\19.1\hls\..\quartus to find Quartus
for internal i++ use
INFO: Could not find files for the given pattern(s).
Will be using Modelsim at D:\Altera\intelFPGA_lite\17.1\modelsim_ase\win32aloem\
Will be using Modelsim at C:\intelFPGA_lite\19.1\modelsim_ase\win32aloem\

VisualStudio's link.exe is not on the path. Guessing its location.
Cannot find VisualStudio installation by looking at the environment.
If VisualStudio is installed, use VisualStudio Command Prompt to set all
required environment variables then rerun this script.

C:\intelFPGA_lite\19.1\hls>

17 Replies

  • Konrad's avatar
    Konrad
    Icon for New Contributor rankNew Contributor

    btw, D:\Altera\ is where an older copy of Quartus is installed, being a hard drive.

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community is where Visual Studio is

  • Hi @Konrad,

    Thank you for posting in Intel community forum and hope all is well.
    Assuming you are having a windows environment, with visual studio already installed as mention.

    Suspecting there might be some environment initialization problem, please do review the steps here.
    Also can you please run the init_hls.bat and provide a screenshot of the output so that we can better understand the error.

    Best Wishes
    BB

      • Konrad's avatar
        Konrad
        Icon for New Contributor rankNew Contributor

        I get the following when trying an example, this is my home computer where I have full administor rights, Windows 10

  • Hi @Konrad,

    Great, good to know that it is working now.
    Please do let us know if there is any further clarification/doubts that we can help with.

    Best Wishes
    BB

    • Konrad's avatar
      Konrad
      Icon for New Contributor rankNew Contributor

      But as you can see from the second screen shot it is not working, the compiler comes up with permission errors.

      Something is not set up correctly,

      regards

      Konrad

  • Hi @Konrad,

    Apologies for the confusion here, the screenshot cmd was not running with adminstrator permission.
    So are you saying that you are still getting the permission error after you have launch the cmd with admin rights?

    Where is the HLS project location?
    Can you also try to move the project to a more general directory (e.g. Documents) for compilation?
    Hope that clarify.

    Best Wishes
    BB

    • Konrad's avatar
      Konrad
      Icon for New Contributor rankNew Contributor

      The installation had left all folders as read-only and I reset them to full access read/write.

      I now have a compile error:-

      Regards

      Konrad

  • Hi @Konrad,

    Suspecting that the hls component are not able to detect the Visual studio installed.
    Can you please try to running the init_hls.bat file in admin privileges command prompt and check/share on the output.
    If the visual studio are not detected, would advise to reinstall in C drive if possible.
    Please do let us know if that helps to clarify.

    Best Wishes
    BB

    • Konrad's avatar
      Konrad
      Icon for New Contributor rankNew Contributor

      I do not know how to set the Visual Studio environment.

      Visual studio is on my C:\ drive as a standard install (comunity free version)

      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community

      Regards

      Konrad

      • BoonBengT_Altera's avatar
        BoonBengT_Altera
        Icon for Moderator rankModerator

        Hi @Konrad,

        Based on the output from init_hls.bat, VS are not found.
        And I notice that you are using HLS 19.1, for that it requires VS 2010. (as noted here)
        Can you please try installing the VS 2010 pro and rerun the command, and I believe it should work.
        Hope that clarify.

        Best Wishes
        BB

  • Hi @Konrad,

    Awesome! Thanks for sharing and good to know it is working now, with no further doubts, it will be transitioned to community support for further help on doubts in this thread, where we will no longer monitor this thread.
    Thank you for the questions and as always pleasure having you here.

    Best Wishes
    BB