Building library from sources

Topics: Build, VST.NET Interop
Nov 18, 2014 at 1:00 PM
Edited Nov 18, 2014 at 1:03 PM
Hello, dear Marc!

Thanks a lot for a good library.
The problem i've faced to considers x86 assembly.
As i understand there are a lot of free VST instruments (over Internet), but almost all of them are 32-bit dll. So these libs couldnot be loaded by x64 assembly of VST host sample.
When i've tried to start x86 assembly of VST host sample, windows forcely close application.

So the last decision was to build your library from sources.
I use MSVS 2012, Windows 7 x64 and CLR2 solutions from download.

Following building instructions, i can build Core and Framework library with no problems.
But building Interop projects confuses me.
Try to build this project from VS2012 results in following errors:
Error 16 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000084). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(mehvecdtr.obj) Jacobi.Vst.Interop.Clr2
Error 14 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000086). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(managdeh.obj) Jacobi.Vst.Interop.Clr2
Error 17 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000086). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(mehvecdtr.obj) Jacobi.Vst.Interop.Clr2
Error 15 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c00008a). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(managdeh.obj) Jacobi.Vst.Interop.Clr2
Error 20 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c00008a). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(puremsilcode.obj) Jacobi.Vst.Interop.Clr2
Error 21 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c00008d). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(puremsilcode.obj) Jacobi.Vst.Interop.Clr2
Error 18 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000b6). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(msilexit.obj) Jacobi.Vst.Interop.Clr2
Error 19 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000b9). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(msilexit.obj) Jacobi.Vst.Interop.Clr2
Error 12 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0001e6). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(mstartup.obj) Jacobi.Vst.Interop.Clr2
Error 13 error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0001e8). C:_Shumi\Projects\VST.NET RTW\Source\Code\Jacobi.Vst.Interop\MSVCMRTD.lib(mstartup.obj) Jacobi.Vst.Interop.Clr2

Building this project with VS2008 C++ Express is not possible due to project file (it must be converted from 2012 to 2008).

Can you help to find solution for building Interop dll using VS2012?

P.S. I have not enough experience with visual c++.
Coordinator
Nov 18, 2014 at 5:39 PM
Edited Nov 18, 2014 at 5:39 PM
The binary download of VST.NET 1.1 (b) comes with pre-built assemblies for x86/x64 and Debug/Release (CLR4). Unless you are planning to change the code you should not need to rebuild the Jacobi.Vst assemblies. Sample projects can be download from the source tab.

Hope it helps,
Marc