如何配置SDL与Blackberry Playbook Native SDK / NDK配合使用?

编程入门 行业动态 更新时间:2024-10-28 14:27:43
本文介绍了如何配置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:

  • 从此处克隆TouchControlOverlay: github/blackberry/TouchControlOverlay
  • 进入目录并运行:

  • Clone TouchControlOverlay from here: github/blackberry/TouchControlOverlay
  • 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配合使用?

    本文发布于:2023-11-24 03:04:55,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1623743.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Playbook   Blackberry   SDL   NDK   SDK

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!