Thanks to @Arunprasad, I was able to build the qt webkit by just *replacing -lpthread with -pthread *directly. This one I replaced manually.
So in order to make it permanent, I changed the mkspecs in * /opt/Qt5.0.2/5.0.2/gcc_64/mkspecs/common/linux.conf* to use -pthread instead of -lpthread and it worked fine. Can somebody comment whether its right thing to do? Thank you, Vivek On Wed, May 22, 2013 at 11:32 PM, Vivek Galatage <viv...@webkit.org> wrote: > Hello Qt-WebKit, > > I am trying to build qt webkit from ToT on Linux Mint 14. > > In that when it comes to linking with the following command: > g++ -m64 -Wl,--gc-sections -Wl,--no-undefined -Wl,--no-undefined -Wl,-O1 > -Wl,-rpath,/opt/Qt5.0.2/5.0.2/gcc_64 -Wl,-rpath,/opt/Qt5.0.2/5.0.2/gcc_64 > -Wl,-rpath,/opt/Qt5.0.2/5.0.2/gcc_64/lib > -Wl,-rpath-link,/opt/Qt5.0.2/5.0.2/gcc_64/lib -shared > -Wl,-Bsymbolic-functions -Wl,-soname,libQt5WebKit.so.5 -o > libQt5WebKit.so.5.2.0 -L/usr/X11R6/lib64 -L/opt/Qt5.0.2/5.0.2/gcc_64/lib > -lQt5Network -lQt5Gui -L/usr/X11R6/lib64 -lQt5Core > *-lpthread*-Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive > -L/home/vivek/workspace/webkit/WebKitBuild/Release/Source/WebKit/ > -Wl,-whole-archive -lWebKit2QML -Wl,-no-whole-archive > -L/home/vivek/workspace/webkit/WebKitBuild/Release/Source/WebKit2/ > -Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -lrt -Wl,-whole-archive > -lWebCore -Wl,-no-whole-archive > -L/home/vivek/workspace/webkit/WebKitBuild/Release/Source/WebCore/ -lz > -lXrender -lXcomposite -lXrender -Wl,-whole-archive -lANGLE > -Wl,-no-whole-archive > -L/home/vivek/workspace/webkit/WebKitBuild/Release/Source/ThirdParty/ANGLE/ > -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive > -L/home/vivek/workspace/webkit/WebKitBuild/Release/Source/JavaScriptCore/ > -Wl,-whole-archive -lWTF -Wl,-no-whole-archive > -L/home/vivek/workspace/webkit/WebKitBuild/Release/Source/WTF/ -licui18n > -licuuc -licudata -lXext -lX11 -lm -lX11 -lxslt -lxml2 -lxml2 -ludev -lrt > *-lsqlite3* -lfontconfig -lQt5Quick -L/usr/X11R6/lib64 -lQt5Multimedia > -L/usr/X11R6/lib64 -lQt5Qml -lQt5Sql -lQt5Gui -L/usr/X11R6/lib64 > -lQt5Network -lQt5Core -lGL > I get a lot of errors for undefined reference to pthread_*. > > If you see the highlighted order above, pthread comes first before > sqlite3. So while searching for resolution of the above error, I stumbled > upon http://stackoverflow.com/a/11482524 which stated if we placed *pthread > after sqlite* it resolves the problem. > > So I would like to know if there is anything wrong with my system setup or > how to resolve this error as I need to manually enter the linking command > every time. > > Thank you, > Vivek >
_______________________________________________ webkit-qt mailing list webkit-qt@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-qt