saprykin / plibsys

Highly portable C system library: threads and synchronization primitives, sockets (TCP, UDP, SCTP), IPv4 and IPv6, IPC, hash functions (MD5, SHA-1, SHA-2, SHA-3, GOST), binary trees (RB, AVL) and more. Native code performance.
MIT License
672 stars 74 forks source link

Installing on Windows without Visual Studio #82

Closed kingoftheconnors closed 4 years ago

kingoftheconnors commented 4 years ago

Greetings! I'm trying to use this library to make a cross-platform networking program using sockets. So far, I cannot install the library.

I am not using Visual Studio, and I never plan to. The wiki only describes using the "make" command after using cmake, which doesn't work on Windows. Calling mingw32-make on any of the vsxproj files or the .sln file returns Nothing to be done for '________'

What should I do?

saprykin commented 4 years ago

Hi,

Which compiler do you want to use? MinGW?

kingoftheconnors commented 4 years ago

Yes. I'm using VSCode, if that helps as well.

saprykin commented 4 years ago

Then the steps would be the same as in the build instructions except two moments. First, you need to pass a proper generator name to cmake in order to generate project makefiles, i.e.

cmake -G "MinGW Makefiles"

The rest of cmake parameters are the same.

Afterwards, you build the library with mingw32-make command.

kingoftheconnors commented 4 years ago

Oh, ok. Thanks!