Post Go back to editing

Anybody get Jenkins VisualDSP++ build working?

Hello,

I’m trying to automate the builds for a VisualDSP++ build.   We have a floating licence and everything works fine except when the CI server (Jenkins) evokes the build.

 On the same machine, in PowerShell; I can run the build from command line no problem.  However, Jenkins does the exact same command on the same machine we get the following problem:

 scons: Building targets ...

"C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.2\gmake-378.exe" -f "Scanner Digital.mak" "Scanner Digital_Release" ".\21364_IVT.asm"

C:/Program\ Files\ (x86)/Analog\ Devices/VisualDSP\ 5.1.2/easm21k.exe .\21364_IVT.asm -proc ADSP-21364 -file-attr ProjectName=Scanner\ Digital -g -l .\Release\21364_IVT.lst -o .\Release\21364_IVT.doj -MM

[Error ea1156]  Failed to get a license to run the assembler.

Not entirely sure why a Powershell run from the desktop vs Jenkins running would be different but are there some environmental variables that are needed to be defined in that shell to allow this to work??

Parents Reply Children
  • Hi,

    The error message indicates that the VisualDSP++ Assembler cannot obtain a license.It appears that even though you are running the Windows service under a specific user that VisualDSP++ cannot find the license file. With Windows Vista and 7.0, Microsoft implemented a new policy, Virtual Stores where it prevents user specific files from being written to any folder under the Program Files directory. Instead it stores files slated for the sub-folders of Program Files in sub-folders in the user's directory.

    The default installation of VisualDSP++ is in the Program Files directory. The license file is usually stored in the System folder of the VisualDSP++ install. Windows considers our license file a user file so instead of putting it in the System folder in the VisualDSP++ install it stores it under the user's directory.
     
    We recommend to copy the license.dat file in the user's folder(C:\Users\<user_name>\AppData\Local\VirtualStore\Program Files (x86)\Analog Devices\VisualDSP 5.x.x\System\) into the System folder of the VisualDSP++ install directory that resides in the Program Files directory(<Installation>\Analog Devices\VisualDSP++ 5.x.x\System\).

    Let us know if that works.

    Regards,
    Nishanthi.V

  • Yes, this resolved the error. Thank you very much!!