meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.33k stars 509 forks source link

Compiling With MinGW64 #1947

Open hbtalha opened 4 years ago

hbtalha commented 4 years ago

I am building the sdk using mingw64, I have added all the packages required for windows. ./configure it stops with this error:

checking for WinHTTP... configure: error: WinHTTP.h header not found or not usable

I have tried downloading the header and copied to the 'include' folder but it is not working.

Any idea how to get this to work?

mattw-mega commented 4 years ago

For windows it's much easier to build with cmake and Visual Studio, I would recommend that, though we don't have instructions in the readme.md for that yet. Please see the contrib/cmake folder for the CMakeLists.txt.

hbtalha commented 4 years ago

Could you give me the instructions to build with cmake and VS please so I can try that?

And considering that I am unable to build with cmake and VS how would I fix my current error?

mattw-mega commented 4 years ago

We will be providing step by step instructions once we switch to building the official windows products that way. In the meantime the scripts to build dependencies are in that folder, which you can examine, and generating visual studio projects with cmake is done in the normal way, you can easily look that up. thanks

hbtalha commented 4 years ago

OK, I am a beginner in these as this is my first time build such libraries but I will be sure to check it out.

It would be cool if you guys made a video tutorial on how to build on windows and unix-like systems. This would clear up plenty of issues for sure.