Hi! I'm trying to build an application for managing tracks on SoundCloud. For this I would need an oauth library and thus been trying to use the liboauth (C library). I checked out the sources from the SVN https://liboauth.svn.sourceforge.net/svnroot/liboauth/, built the packages with "dpkg-buildpackage -i -rfakeroot -D" and installed them, no prob here.
The problem comes when trying to link the Qt application. In the project file I have: CONFIG += link_pkgconfig PKGCONFIG += oauth In the source file I have included the sources in oauthexample.c. When I try to compile the project with "qmake && make", I get the following error from the linker: g++ -c -pipe -O2 -I/usr/local/include -Wall -W -D_REENTRANT - DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB - DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/ QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/ include/qt4/QtXml -I/usr/include/qt4 -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp g++ -Wl,-O1 -o soundcloud main.o mainwindow.o moc_mainwindow.o -L/ usr/lib -L/usr/local/lib -loauth -lm -lcurl -lssl -lQtXml -lQtGui - lQtNetwork -lQtCore -lpthread mainwindow.o: In function `parse_reply(char const*, char**, char**)': mainwindow.cpp:(.text+0xa4): undefined reference to `oauth_split_url_parameters(char const*, char***)' mainwindow.cpp:(.text+0xac): undefined reference to `oauth_cmpstringp(void const*, void const*)' mainwindow.o: In function `MainWindow::uploadFile()': mainwindow.cpp:(.text+0x1581): undefined reference to `oauth_sign_url2(char const*, char**, OAuthMethod, char const*, char const*, char const*, char const*, char const*)' mainwindow.cpp:(.text+0x1592): undefined reference to `oauth_http_post(char const*, char const*)' mainwindow.cpp:(.text+0x162f): undefined reference to `oauth_sign_url2(char const*, char**, OAuthMethod, char const*, char const*, char const*, char const*, char const*)' mainwindow.cpp:(.text+0x1640): undefined reference to `oauth_http_post(char const*, char const*)' collect2: ld returned 1 exit status make: *** [soundcloud] Error 1 Don't quite understand why I'm getting this error, because as you can see, the oauth and the libraries it depends on are included in the linking command. Any ideas on how to get this issue fixed? -- You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/oauth?hl=en.
