Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to build with Visual Studio 2015 #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicklauslittle
Copy link

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.

@alphapats
Copy link

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

@alphapats
Copy link

alphapats commented Dec 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants