我已经设置了NDK,并设法在我的剧本上编译并运行了hello本机sdk项目。我从github下载了blackberry sdl端口。但是,我什至无法使用它来编译一个hello world项目。同样,它似乎缺少一个 lib文件夹,这是我习惯于进行编译器设置的文件夹。
I've got the NDK set up and managed to compile and run the hello native sdk project on my playbook. I downloaded the blackberry sdl port from github. However I've been unable to compile even a hello world project using it. Also it seems to be lacking a "lib" folder which I'm used to needing for the compiler settings.
编辑:我设法在本地sdk中打开了sdl,看来下载的目的是充当某种项目模板。最初,编译器抱怨我需要另一个库TouchControlOverlay。因此,我下载了此文件并设置了包含它的包含文件。但是,我再次找不到lib文件夹,并且该项目仍然无法编译,并说它找不到-lTouchControlOverlay。
I have managed to get the sdl to open in the native sdk, it seems the download was designed to act as a project template of sorts. At first the compiler complained that i needed another library, TouchControlOverlay. So I downloaded this and set up the includes to include it. However again I couldn't find a lib folder, and the project still wont compile, saying it cannot find -lTouchControlOverlay.
推荐答案编译器找不到TouchControlOverlay的原因是未在主机上安装它。要安装它:
The reason the compile cannot find TouchControlOverlay is because it's not installed on your host machine. To install it:
进入目录并运行:
Go into the directory and run:
make&&进行安装
make && make install
如果您现在导航至: $ QNX_TARGET / armle-v7 / lib ,您应该看到 libTouchControlOverlay.so 已放置在此处。现在,您应该可以使用 -lTouchControlOverlay
If you now navigate to: $QNX_TARGET/armle-v7/lib you should see that libTouchControlOverlay.so has been placed there. You should now be able to link against this library using -lTouchControlOverlay
链接到该库,请注意,您需要打包该库在 bar-descriptor.xml 文件中将其指定为< asset>
Note that you will need to package this library with your application by specifying it as an <asset> in your bar-descriptor.xml file.
更多推荐
如何配置SDL与Blackberry Playbook Native SDK / NDK配合使用?
发布评论