在 Qt/Symbian 中使用外部库
为了将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我需要冻结图书馆..
我在那里找到了所有信息:
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