-
Notifications
You must be signed in to change notification settings - Fork 55
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
Could NOT find Threads (missing: Threads_FOUND) #2
Comments
Hi,
It seems like you have different versions installed for the c and c++ compiler. You may need to install g++7 to use the same version for c and c++ |
Hi,
|
what does
and
say? |
libpthread.so :
pthread.h :
|
Hi @mariopinderist @simogasp , Did anyone of you find the solution because I am also facing the same issue. |
Hi @vishav26 @mariopinderist , Did you guys find a solution for this issue? Thanks! |
I'm having this issue too. Edit: Solved it by including this in the top-level CMakeLists.txt: set(CMAKE_THREAD_LIBS_INIT "-lpthread") Found this suggestion in another forum somewhere. |
Indeed! works for me. |
Thank so much! |
It works perfectly!!! |
that is cool, fix for me. Thank you |
tkircher's code solved this for me. Hopefully the webkitgtk guys include that solution because I am having to use his workaround for the same problem (even recent webkitgtk does not find threads, unless I add the above code to the cmake file). |
Thank you tkircher. It also solved the problem on my other llvm project |
Unfortunately this trick is not applicable to every environment. I do not build geogram, but I encountered the missing
Where
|
@tkircher, I'm installing the librealsense package from source using HomeBrew and got the below error. CMake Error at /opt/homebrew/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): I tried updating the config in the CMakeLists.txt like you mentioned above but see that there are multiple CMakeLists.txt files in the package hierarchy. Which file do I make the changes to? Also, I installed using 'brew install --build-from-source librealsense' as I was getting the following error with 'brew install' 'Error: librealsense: no bottle available!' Update: The issue is fixed |
Hi!
I'm trying to build geogram in Ami Linux but I'm getting error. Below you will fin the error:
The text was updated successfully, but these errors were encountered: