RishiGupta12 / SerialPundit

Serial port communication in Java - FTDI D2XX, HID API, X/Y modem
GNU Affero General Public License v3.0
125 stars 56 forks source link

Windows DLL depends upon debug DLL #5

Closed andrewdmay closed 8 years ago

andrewdmay commented 9 years ago

Based upon this discussion: https://groups.google.com/forum/#!topic/serial-communication-manager/pZIrrdn43nY it appears that the windows DLL depends upon MSVCR120D.DLL (as well as IESHIMS.DLL).

I'm not a Windows C++ developer, but from what I've read it appears that the *D.DLL files are debug only and not redistributable, and I've been unable to figure out how to get a copy of MSVCR120D.DLL (I installed VS 2013 Community edition, but still can't find the DLL anywhere - not sure if I need to build something that uses it?).

Ideally the binaries included with the Java library should not require additional DLLs to be installed - but if this is not possible it would be preferable if the libraries were available from the Microsoft Visual C++ redistributable download.

andrewdmay commented 9 years ago

I built the windows binaries using Visual Studio Community (2015), and I statically linked everything using the Multi-threaded (/MT) option in Configuration Properties > C/C++ > Code Generation > Runtime Library, and it seems to work.

RishiGupta12 commented 9 years ago
RishiGupta12 commented 8 years ago

From 1.0.4 scm.jar provided now will not depend upon any debug libraries.