Skip to content

build failed with cross compile on opengl ES2 support. #181

@iysheng

Description

@iysheng

I want to cross compile the package with aarch64 platform which support opengl ES2, I write a crosss.cmake like

# the name of the target operating system
set(CMAKE_SYSTEM_NAME Linux)

set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(TOOLCHAIN_PATH /home/wj/Linux/LinuxSDK/rk3576_linux6.1_release/buildroot/output/rockchip_rk3576/host)
set(CMAKE_C_COMPILER   ${TOOLCHAIN_PATH}/bin/aarch64-linux-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PATH}/bin/aarch64-linux-g++)

when I try to build , I get failed as

/home/wj/nanogui/ext/glfw/include/GLFW/glfw3.h:241:12: fatal error: GL/gl.h: No such file or directory
  241 |   #include <GL/gl.h>
      |            ^~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions