enzienaudio / hvcc

The heavy hvcc compiler for Pure Data patches.
GNU General Public License v3.0
362 stars 52 forks source link

Windows 7 x64 .dll compile issue #14

Open cmovvv opened 5 years ago

cmovvv commented 5 years ago

Currently trying to compile functioning .dll and .cs files for Unity 2018 (Windows 7 64-bit). Able to generate plugins, but running into issues when "_context" is called within Hv_heavy_AudioLib.cs (line 347) - audio engine unable to construct/receive sampleRate, poolKb, etc. Unity outputs "DllNotFoundException: Hv_heavy_AudioLib" error. Anyone able to get this to work on Windows 7 64bit?

Running the following for build:

Relatively new to programming, so please bear with me if terminology is inaccurate or important information is missing. Any thoughts/suggestions/directions would be much appreciated - thank you!

diemildefreude commented 5 years ago

Sorry, I've never used it on Windows 7- using Windows 10 now.

Kushulain commented 5 years ago

Documentation says it's only compatible with Win 8 & 10.

I had the same problem, not sure i'm correct but it seems like Heavy generated dlls are linked directly to win 8 dll :

API-MS-WIN-CORE-DEBUG-L1-1-1.DLL API-MS-WIN-CORE-ERRORHANDLING-L1-1-1.DLL API-MS-WIN-CORE-FILE-L1-2-1.DLL API-MS-WIN-CORE-HEAP-L1-2-0.DLL API-MS-WIN-CORE-INTERLOCKED-L1-2-0.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-2-0.DLL API-MS-WIN-CORE-LOCALIZATION-L1-2-1.DLL API-MS-WIN-CORE-PROCESSENVIRONMENT-L1-2-0.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-2.DLL API-MS-WIN-CORE-RTLSUPPORT-L1-2-0.DLL API-MS-WIN-CORE-SYSINFO-L1-2-1.DLL

instead it should be linked to kernel32.dll to be compatible to any (and future) versions of windows.

see more details here