在 Qt/Symbian 中使用外部库

发布于 2024-10-04 03:14:59 字数 1394 浏览 7 评论 0原文

为了将 Facebook 集成到我们的诺基亚 Symbian 应用程序中,我们打算使用这个库: http://gitorious.org/qfacebookconnect

它不能完全正常工作,但这是一个好的开始。

我有我的项目(.pro 和 .cpp 文件,使用 Qt Creator),它在模拟器中运行良好。我以这种方式(在 .pro 文件中)将这个 libqfacebook 包含在项目中:

LIBS += -LC:\projects\Pristop\Nokia\facebook_lib\libqfacebook-build-simulator\debug -lqfacebookconnect

INCLUDEPATH += C:\projects\Pristop\Nokia\facebook_lib\qfacebookconnect\inc

它在模拟器中运行良好。我使用 Qt Creator 做所有事情,还构建 libqfacebook。但是,如果我想在真实手机上测试该应用程序,那么要准备一个 .sis 文件,我会收到此错误:

:: error: No rule to make target `\NokiaQtSDK\Symbian\SDK\epoc32\release\armv5\LIB\qfacebookconnect.dso', needed by `\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\DogajaItak.exe'.  Stop.

所以我需要根据 qfacebookconnect 库的源代码获取一个 .dso 文件。对于模拟器来说.lib 和.pdb 就足够了。显然,区别在于.dso 是arm,而.lib & 是arm。 .pdb 是 x86。

如果我尝试配置 qfacebookconnect 来为手机构建,我会收到此错误:

Makefile:232: error: PKG file does not exist, 'sis' and 'installer_sis' target are only supported for executables or projects with DEPLOYMENT statement.  Stop.

我不需要 .sis,这是正确的,我想要的只是 .dso。 如果我转到“项目”->“为 qfacebookconnect 构建 Symbian 设备的设置”,并删除 qfacebookconnect 的构建步骤“创建 SIS 包”,则不再有错误,但我仍然不相信它为我构建了 .dso。

所以问题是如何配置 Qt Creator 或 .pro 文件来构建 .dso,或者如何以另一种方式在我的 .sis 中包含外部库?

To get Facebook integration in our Nokia Symbian application we intend to use this library:
http://gitorious.org/qfacebookconnect

It is not otherwise working completely correctly, but it's a good start.

I have my project (.pro and .cpp files, using Qt Creator), which works fine in the emulator. I included this libqfacebook in the project in this way (in the .pro file):

LIBS += -LC:\projects\Pristop\Nokia\facebook_lib\libqfacebook-build-simulator\debug -lqfacebookconnect

INCLUDEPATH += C:\projects\Pristop\Nokia\facebook_lib\qfacebookconnect\inc

It works fine in the emulator. I use Qt Creator for everything, also to build libqfacebook. But if I want to test the application on a real phone, so to prepare a .sis file, I get this error:

:: error: No rule to make target `\NokiaQtSDK\Symbian\SDK\epoc32\release\armv5\LIB\qfacebookconnect.dso', needed by `\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\DogajaItak.exe'.  Stop.

So I need to get a .dso file based on the source code of the qfacebookconnect library. For the emulator .lib and .pdb were enough. Obviously the difference is that .dso is arm while .lib & .pdb are x86.

If I try to configure qfacebookconnect to build for the phone, I get this error:

Makefile:232: error: PKG file does not exist, 'sis' and 'installer_sis' target are only supported for executables or projects with DEPLOYMENT statement.  Stop.

It is correct that I do not want a .sis, all I want is a .dso.
If I go to Projects->Build Settings for Symbian Device for qfacebookconnect and I remove the build step "create SIS package" for qfacebookconnect, there is no error anymore, but I still don't believe it built a .dso for me.

So the question is how to configure Qt Creator or the .pro file to build me a .dso, or how to include external libraries in my .sis in another way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无远思近则忧 2024-10-11 03:14:59

我需要冻结图书馆..

我在那里找到了所有信息:
https://code.google.com/p/qfacebookconnect/issues/detail ?id=13

I needed to freeze the library..

I found all the information there:
https://code.google.com/p/qfacebookconnect/issues/detail?id=13

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文