-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How build this project in CMake for Visual Studio 2019 #111
Comments
Hello, I don't work with Visual Studio so I will need more information in order to help you. You mention a missing library, so you must first install all dependencies (except for libsystemd which isn't available on Windows). I suggest you go through the install documentation, to make sure you have all the required dependencies you need, and setup the build options to fit your needs, like when using cmake to build Ulfius, you must use at least the following options: If you still have problems to build Ulfius, then answer with at least a print screen of your error messages, and other information that might be useful. |
Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134. Configuring incomplete, errors occurred! |
The message you emphasize is not an error message, it's more an information that
So, as I said earlier, you must install all the required libraries first:
Or disable the optional libraries you don't have/want in cmake build options. |
Okay i got that i need libs to use framework... Any idea how install them on windows? Im really new in application development so please don't rush on me... thank you for yours explanation. I'm learning every day maybe you can point me where to look? What for google...? |
I suggest you install libmicrohttpd only for starters: https://www.gnu.org/software/libmicrohttpd/ Then build Ulfius with the following cmake options: Although I don't know if it will work, because i don't use Visual Studio and haven't had any feedback from VS users, if I recall correctly. In any case, let me know if you succeed or not |
Ok stil looking for solution how to use this framework in my project.
but what about windows? i'm using cmake graphic. i porose to change functions from on to off becouse when compiling with cmake each time you bust uncheck evry option you dont need becouse you not added the required lib... Compiling with VS:
|
The error log says you need to install orcania. In this case, you must pass this option to CMake: You also need to install a pthread library, something like that may help. I'm can't be very helpful with Visual Studio because I'm not familiar with it to build C projects on Windows, sorry. I would suggest to find help in the Visual Studio community to help you with the install. |
@webfolderio , this is awesome! Would it be possible to provide a documentation to help MSVC users to use Ulfius with vcpkg? I'd add it to the INSTALL.md file. |
I added required steps to README.md to install ulfius with vcpkg. I am going to add GnuTLS, WebSocket support and will be run ulfius test cases on CI. When i will be done, we might update the INSTALL.md. |
I have thought about the MSVC documentation and I have another approach to offer: So if you improve your sample project or put more detailed documentation after some time, you will have more power and freedom to change the MSVC documentation. But adding GnuTLS and websockets support is a great idea I'll be happy to merge to my project! The reason why websockets are not included with Windows build in the first place is mostly because AFAIK, GnuTLS is available on Windows so the |
Here's someone who's forked gnutls to build it with VS. See the SMP directory for the Windows build instructions. |
Hello I tried build that framework and use it in my c application but actually I don't know how to build it and implement it in my visual studio project.
Cmake throwing an error about mussing libruary. i'm on windows 64bit
The text was updated successfully, but these errors were encountered: