-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[WINDOWS] THREADS_PTHREADS_WIN32_LIBRARY #7044
Comments
Instead of patching our pthread v3 portfile to rename/copy pthreadVC3.lib —> pthreadVC2.lib, do you think it would be impossible to fix the problem upstream in the libraries that still expect the ancient v2? |
no copy, symbolic reference )) alias? |
What do you mean with symbolic references? If it is a file link, unfortunately before win10 1803 and even then without developer mode enabled, it requires admin privileges and so it’s out of question. Can you tell me in that project exactly where is the wrong pthread linking line? Maybe it’s not easy to locate? What about patching that project so to be pthreadVC* version independent? |
for a personal directory that is not created as an administrator, you do not need any privileges to create a symbolic link and this is not the only project, there are about 8 of them, which I faced |
In these 2 lines the explicit “2” must be changed maybe to a version symbol |
What os version do you use? To create symbolic links in Windows you had always needed admin privileges, even if you were working in your home folder. Things changed one year ago, but still you had to opt-in in the new mechanism (developer mode) |
I just voiced the problem that many face, in more detail I do not have time to figure out \sorry google translate windows 1803
|
That’s exactly what I look for: least resistance. And that maybe means just a copy of the file, from VC3 to VC2, apart from the symbolic redundancy that may create. |
Stupid question: Can you not simply delete the FindThreads module and use CMakes buildin FindThreads module and set |
worth a try, just remove the module \google translator smiles |
@Neumann-A suppose, search first in VCPKG then in CMAKE share MODULE and last with the project files? |
CMake integrated thread module doesn’t look for posix thread implementations on Windows afaik, no matter how much hard you ask for them. I had also to write a custom module for darknet/yolo back in the time, but I didn’t overlay the official one. I can understand the problem that pthreadVC2 has been there for a long time, i’d patch problematic projects to bring them to the modern age, but still can also understand replicating files, if it’s so simple and fixes many projects in a glimpse. |
That’s what |
it is understandable, globally in VCPKG |
This is the order CMake follows: First of all, look in the folders in that path (in the order they are written), then look in the internal repository (share/cmake-x.y/Modules). |
Well, as implemented in meson dependency search via cmake example The root folder modules are default
|
faced with the problem THREADS_PTHREADS version 3
the fact is that most people use the old version, new does not see, even with a wrapper
if you specify explicitly then everything works
but there are projects that explicitly link by library name
example
https://github.com/steve-m/librtlsdr
had to symbolic link pthreadVC3.lib -->> pthreadVC2.lib
The text was updated successfully, but these errors were encountered: