kazmath icon indicating copy to clipboard operation
kazmath copied to clipboard

Cannot build on Windows using VC++ compiler.

Open Varriount opened this issue 9 years ago • 3 comments

Currently, trying to build on Windows using the Visual C++ compiler bundled with Visual Studio causes the following error (plus a host of warnings concerning uninitialized variables):

Cannot open include file: 'pthread.h': No such file or directory : matrix.c

Varriount avatar May 28 '16 19:05 Varriount

I'd like to get this fixed, but I don't have access to a Windows install (I'm a Linux user) so this may have to wait for someone to send me a pull request :(

Kazade avatar May 30 '16 17:05 Kazade

As far as I know, pthreads isn't a part of windows.

A bit of googling however gets me this: https://sourceforge.net/projects/pthreads4w/

Installing this might fix your issue. Though I'm really not sure if it'll work as I haven't tested it on windows either.

morkenborken avatar Aug 16 '16 14:08 morkenborken

If you don't need the files in GL/, you could try removing them and recompiling kazmath. The matrix stack code relies on pthreads, which is unavailable in Windows unless you're building in MinGW, but then you add libwinpthreads-1.dll as a dependency.

andrewmcwatters avatar Jan 04 '17 16:01 andrewmcwatters