开发者

Troubles with qfacebookconnect

i Have been given this simple task ,

I want to connect to facebook in my code, any how i downloaded QfacebookConnect from here:

http://gitorious.org/qfacebookconnect/qfacebookconnect/trees/master

please check the link above before you reply ....

I just wanted to run the sample so i could make sure that everything is fine and i can continue working in my project but an error occured , its a bit weird

:-1: error: ../debug/libqfacebookconnect.a: No such file or directory

here is the .pro

#-------------------------------------------------
#
# Project created by QtCreator 2009-11-20T00:54:21
#
#-------------------------------------------------

    QT       += network webkit xml

    TARGET = sample
    TEMPLATE = app
    DESTDIR = ../debug

    SOURCES += main.cpp\
            mainwindow.cpp

    HEADERS  += mainwindow.h

    FORMS    += mainwindow.ui


    INCLUDEPATH = ../inc/
    win32:LIBS += ../debug/libqfacebookconnect.a
    unix:LIBS += ../debug/libqfacebookconnect.so


       symbian: {
        TARGET.CAPABILITY = NetworkServices # Symbian specific, we just need network access
        TARGET.UID3 = 0xA89FA522 # Symbian specific, unprotected uid3 from symbiansigned.com

        INCLUDEPATH += /epoc32/include/stdapis # this seems to be a bug.
        LIBS += -lqfacebookconnect

        libqfacebookconnect.sources = qfacebookconnect.dll
        libqfacebookconnect.path  = \sys\bin
        DEPLOYMENT += libqfacebookconnect
        }

    开发者_StackOverflow社区ICON = gfx/fb.svg

its a bit weird that i got this error since i did not mess with anything yet ....

EDIT:

i managed to solve the issue , the thing is that i have a new problem after i do the authentication the following appears :

Load   successfull for:   QUrl( "http://www.facebook.com/connect/uiserver.php?app_id=199471070112099&next=fbconnect://success&display=touch&return_session=0&fbconnect=1&canvas=0&legacy_return=1&method=permissions.request&_rdr" )  
Load started:   QUrl( "http://www.facebook.com/connect/uiserver.php?app_id=199471070112099&next=fbconnect://success&display=touch&return_session=0&fbconnect=1&canvas=0&legacy_return=1&method=permissions.request&_rdr" )  
Load  un successfull for:   QUrl( "http://www.facebook.com/connect/uiserver.php?app_id=199471070112099&next=fbconnect://success&display=touch&return_session=0&fbconnect=1&canvas=0&legacy_return=1&method=permissions.request&_rdr" ) 

can you tell me what the problem ???

Please be Specific in your answer ...


It's actually not that weird:

When you download the qfacebookconnect project, you only have the sources but no library. You need the library to actually use it, unless you include the source files in your own project. You will get it if you build the qfacebookconnect project.

As the error message is saying it cannot find the .a file, my assumption is that you didn't build the qfacebookconnect project. Another reason could however be that the file is actually called qfacebookconnect.lib instead of qfacebookconnect.a.

You should be able to open the libqfacebook.pro file in Qt Creator in order to build it. If that doesn't work you will have to do it on the command line using qmake together with make/nmake/whatever, dependent on your compiler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜