Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi,
after days of struggling with very same problems I've finally solved both of them. First of all I'd like to address a problem with emulation. You have to set LIB variable to "(...)\Microsoft Visual Studio 10.0\VC\lib\amd64" ("amd64" is essential). However, after adding it you'd probably get an error regarding the "kernel32.lib" file. Thus you have to add additional path to LIB variable. "Kernel32.lib" file is located in "X:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64" directory and this is the directory you have to add to LIB variable. I have to mention that I was using VS2010 Professional with SP1, yet, VS2013 should probably do fine as well (as long as you add proper paths to LIB variable). The altera_s5_ref_mmd.lib file is located in X:\altera\14.0\hld\board\(YOUR_BOARD)\windows64\bin, so make sure you add this directory to the PATH variable. You run "aocl install" afterwards and hopefully "aocl diagnose" won't return any errors. Then, again, after compiling successfully with "-march=emulator" flag, you shouldn't be surprised to have another error after host program execution (obviously, after building it with VS). This time it should be the "wdapi1021.dll" file. I just copied it form X:\altera\14.0\hld\board\s5_ref\windows64\driver directory to X:\Windows\System32. After all these steps I successfully managed to run emulation. I may have forgotten about something and if so, please post an error you got and I may recall a solution to it.