[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] cmake unable to find boost_thread

From: Brad Pitcher
Subject: Re: [Mingw-cross-env-list] cmake unable to find boost_thread
Date: Fri, 27 May 2011 09:33:51 -0700

Well, the libs are located in ...
Specifically, boost_thread is named libboost_thread_win32-mt.a

Maybe cmake looks for a different name with different conventions. You
may try to create a symlink to this file and name it
libboost_thread-mt.a, or libboost_thread.a. Also, cmake may be looking
for a shared lib, as libboost_thread is usually linked as shared.

If you link to the boost_thread static lib in mingw-cross-env, you'll
have to define -DBOOST_THREAD_USE_LIB while building your app.
Otherwise, thread local storage cleanup may cause linker errors or
even runtime problems.

See also https://svn.boost.org/trac/boost/ticket/4921


Good call! All I had to do was set _boost_COMPILER to "_win32" and add the following pattern to the checked patterns:

Now I have another issue to debug:
[ 33%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.obj
In file included from /home/brad/Downloads/CGAL-3.8/src/CGAL/assertions.cpp:24:0,
                 from /home/brad/Downloads/CGAL-3.8/src/CGAL/all_files.cpp:20:
/home/brad/Downloads/CGAL-3.8/include/CGAL/config.h:66:4: error: #error "This compiler does not have a working STL"
make[2]: *** [src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.obj] Error 1
make[1]: *** [src/CGAL/CMakeFiles/CGAL.dir/all] Error 2
make: *** [all] Error 2

Fortunately, a web search reveals a plethora of other folks with the issue although I'd doubt if any of them are using mingw-cross-env. I will begin to wade through the results, but if you've seen this before or have any ideas, please speak up.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]