phoboslab / jsmpeg-vnc

A low latency, high framerate screen sharing server for Windows and client for browsers
2.39k stars 396 forks source link

compiling on windows 10 #52

Open thomaswilley opened 6 years ago

thomaswilley commented 6 years ago

Hello, really impressed with this and hoping to play with it a bit.

I'm struggling to compile on windows. Started building a makefile and then decided to just open the .sln and build from VS. Downloaded VS2017 community edition and executed a build. Received error about VS2010 build tools missing and suggested to re-target to more current. 10.0.15063.0 was available in the default install so I used that (also tried 8.1). In all cases build fails with many of the same error "templates cannot be declared to have 'C' linkage"[1].

Any guidance you could provide to overcome and build? Welcome a GNU make oriented solution too if exists. Thanks for any suggestions you could share!

[1]https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c2894?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(C2894)%26rd%3Dtrue

allape commented 6 years ago

I got the same error too. After read the .sln file in Notepad++, I found the compiler which is VS2010. And it can be perfectly compiled by VS2010.