Added the ability to build with Visual Studio 2015#134
Open
nicklauslittle wants to merge 1 commit intoantirez:masterfrom
Open
Added the ability to build with Visual Studio 2015#134nicklauslittle wants to merge 1 commit intoantirez:masterfrom
nicklauslittle wants to merge 1 commit intoantirez:masterfrom
Conversation
|
Can you share the steps how you have managed to compile this code in Windows using Visual Studio? |
|
fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory Can you share links from where I can download these dependencies:Ws2_32.lib;rtlsdr.lib;pthreadVC2.lib;? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.