如何配置SDL与Blackberry Playbook Native SDK / NDK配合使用? [英] How do i configure SDL to work with the Blackberry Playbook Native SDK / NDK?

查看:84
本文介绍了如何配置SDL与Blackberry Playbook Native SDK / NDK配合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了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:


  1. 从此处克隆TouchControlOverlay: https://github.com/blackberry/TouchControlOverlay

  2. 进入目录并运行:

  1. Clone TouchControlOverlay from here: https://github.com/blackberry/TouchControlOverlay
  2. 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配合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆