<font face="courier new,monospace">Pushed. </font><span style="font-family:'courier new',monospace">Thanks.</span><div><font face="courier new,monospace"><br></font></div><div><font face="courier new,monospace">I used "${CMAKE_THREAD_LIBS_INIT}" instead of "-lpthread" for cross-platform portability, but the net result on linux should be the same.</font><div>
<font face="courier new,monospace"><br></font></div><div><font face="courier new,monospace">Jose<br></font><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 5:21 PM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">/usr/bin/ld: CMakeFiles/qapitrace.dir/apitracecall.cpp.o: undefined<br>
reference to symbol '__pthread_key_create@@GLIBC_2.2.5'<br>
/usr/bin/ld: note: '__pthread_key_create@@GLIBC_2.2.5' is defined in DSO<br>
/lib64/libpthread.so.0 so try adding it to the linker command line<br>
/lib64/libpthread.so.0: could not read symbols: Invalid operation<br>
---<br>
gui/CMakeLists.txt | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt<br>
index 773d344..f239647 100644<br>
--- a/gui/CMakeLists.txt<br>
+++ b/gui/CMakeLists.txt<br>
@@ -76,6 +76,7 @@ add_executable(qapitrace ${qapitrace_SUBSYSTEM} ${qapitrace_SRCS} ${qapitrace_UI<br>
target_link_libraries (qapitrace<br>
image<br>
common<br>
+ -lpthread<br>
${ZLIB_LIBRARIES}<br>
${SNAPPY_LIBRARIES}<br>
${QJSON_LIBRARIES}<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.4<br>
<br>
_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
</font></span></blockquote></div><br></div></div>