dump1090 icon indicating copy to clipboard operation
dump1090 copied to clipboard

Added the ability to build with Visual Studio 2015

Open nicklauslittle opened this issue 7 years ago • 2 comments

Since all the dependencies for dump1090 already build in Visual Studio, I decided to try and get it building also. I tried to keep the changes as minimally invasive as possible. I did move a few of the UNIX-specific functions around to make them easier to exclude as a group. I also excluded most of the signal handling when building in Visual Studio.

Most of the other changes in the body of the files are to support a more generic way of handling error cases. The changes at the top of the files are to support different includes and defines between Windows and Linux. Lastly, I added the Visual Studio 2015 solution and project files. These will likely work on other versions of Visual Studio (maybe requiring some minor tweaks), but I didn't test any other versions.

When I made the Visual Studio project, I assumed the dependencies would be in different directories at the same level as dump1090, with their default names ("pthreads-win32", "libusb", and "librtlsdr"). I have built it and tested the interactive display as well as the http server pretty thoroughly.

nicklauslittle avatar Jul 07 '18 19:07 nicklauslittle

Can you share the steps how you have managed to compile this code in Windows using Visual Studio?

alphapats avatar Dec 08 '22 07:12 alphapats

fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory Generating Code...

Can you share links from where I can download these dependencies:Ws2_32.lib;rtlsdr.lib;pthreadVC2.lib;? these folders ("pthreads-win32", "libusb", and "librtlsdr") are required as folder structure of your .vcxproj file is required to be followed for successful compilation.

alphapats avatar Dec 08 '22 11:12 alphapats