Cannot build libpsl on Windows #65
-
I am using Windows11 system and compiling libcurl on it. When running cmake it requires libssh2 and libpsl. I succesfully compiled libssh2 and imported it into cmake. But when compiling cmake I met a trouble. I tried all the ways to compile it in their offical documation but none of them succeeded. There is no articles online to introduce how to compile it on Windows. So when you were building libcurl on Windows, how did you solve this problem? And is there any libpsl binaries which has finished compiling and can be directly used? Thanks very much. |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 3 replies
-
I got libpsl source code from here. And I tried the way of compiling in README.MSVC.md. However, doesn't work. |
Beta Was this translation helpful? Give feedback.
-
I solved it by building libpsl manually (without using its build-systems). You can see it in the file In the curl-for-win official downloads there is a |
Beta Was this translation helpful? Give feedback.
-
libpsl.sh? Where? |
Beta Was this translation helpful? Give feedback.
-
In this very repository we're discussing this. → https://github.com/curl/curl-for-win/blob/main/libpsl.sh It doesn't use I suggest directing your questions to the libpsl project. In this project we're building curl. |
Beta Was this translation helpful? Give feedback.
-
I said "I generated the configure file according to its document but after I got the configure file" means I used mingw64 in msys2. |
Beta Was this translation helpful? Give feedback.
-
Yeah, but this isn't the libpsl project, and as mentioned, we don't use autotools to build libpsl. |
Beta Was this translation helpful? Give feedback.
-
Curl for win? What's the project? |
Beta Was this translation helpful? Give feedback.
-
This project is building curl for Windows and other operating systems. |
Beta Was this translation helpful? Give feedback.
-
What's the difference between it and curl? |
Beta Was this translation helpful? Give feedback.
-
And I entered project, didn't see any code and binaries. How to use this project? And what's the purpose of this project? Download code and compile them? Work with the code you download previously? I want to get a tutorial guide of it. |
Beta Was this translation helpful? Give feedback.
-
No difference in context of libpsl. |
Beta Was this translation helpful? Give feedback.
-
Too much new thing I've got puzzled... |
Beta Was this translation helpful? Give feedback.
-
These are shell scripts to download and build curl and its dependencies. Most would not use this project directly but download the binaries it produced and run or link them to their projects (see https://curl.se/windows/). This isn't actively supported, but you can also do your own builds by running the scripts yourself, locally, or via CI. See the CI entry points and |
Beta Was this translation helpful? Give feedback.
-
CI? What's that? |
Beta Was this translation helpful? Give feedback.
-
Okay, I see. |
Beta Was this translation helpful? Give feedback.
-
And I have the last question is that in curl-for-win, to build the whole project, which one is the entrance? And What's my work after running the script? |
Beta Was this translation helpful? Give feedback.
-
AppVeyor CI, GitHub Actions: Continuous Integration hosts. |
Beta Was this translation helpful? Give feedback.
I solved it by building libpsl manually (without using its build-systems). You can see it in the file
libpsl.sh
.In the curl-for-win official downloads there is a
libpsl.a
that is usable as-is (for static linking), but this is for mingw-w64 and not compatible with MSVC.