pinsengKongJian 2016-05-14 09:33 采纳率: 50%
浏览 1969
已结题

Ubuntu eglInitialize 失败

平台:
Ubuntu 14
Opengl ES
x86_64
PVR SDK
X11 _
运行时闪一下窗口就不见了,自己编译的和PowerVR SDK官网给出编译好的Demo都是这样,debug之后发现在 FrameWork/PVRPlatformGlue/EGL/EglPlatformContext.cpp文件中els初始化 失败,代码如下:

static inline Result::Enum preInitialize(OSManager& mgr, NativePlatformHandles& handles)
{
    if (!handles.get())
    {
        handles.reset(new NativePlatformHandles::element_type);
    }

    // Associate the display with EGL.
    handles->display = egl::GetDisplay(reinterpret_cast<EGLNativeDisplayType>(mgr.getDisplay()));

    if (handles->display == EGL_NO_DISPLAY)
    {
        handles->display = egl::GetDisplay(static_cast<EGLNativeDisplayType>(EGL_DEFAULT_DISPLAY));
    }


    if (handles->display == EGL_NO_DISPLAY)
    {
        return Result::UnknownError;
    }

    // Initialize the display
    if (egl::Initialize(handles->display, NULL, NULL) != EGL_TRUE)
    {
        // 在这里return
        return Result::UnknownError;
    }
  • 写回答

1条回答 默认 最新

  • pinsengKongJian 2016-05-16 02:25
    关注

    哪位高手帮看看。。。急,在线等。。。

    评论

报告相同问题?

悬赏问题

  • ¥15 fluent的在模拟压强时使用希望得到一些建议
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退