powervr-graphics / Native_SDK

C++ cross-platform 3D graphics SDK. Includes demos & helper code (resource loading etc.) to speed up development of Vulkan, OpenGL ES 2.0 & 3.x applications
https://docs.imgtec.com/sdk-documentation/html/introduction.html
MIT License
706 stars 200 forks source link

[BUG] build for android pie failed #66

Open qwertylhl opened 3 years ago

qwertylhl commented 3 years ago

Description

I am building the PVRSDK for Android Pie. Now is facing an build error about glm.

CMake Error at D:/ImaginationTechnologies/Native_SDK/framework/cmake/modules/Findglm.cmake:16 (find_package):
Could not find a package configuration file provided by "glm" with any of
the following names:

Repro steps

  1. Android studio version is 4.1.2
  2. In Android studio, use File->New->Import projects and selelct the directory Native_SDK/build-android
  3. Android Studio would sync project and report the above error.

Environment

Additional Info

omarzohdi commented 3 years ago

Hi, qwertylhl,

Sorry for the late reply. It looks like when kicking a build using Android Studio, CMake is unable to download the glm dependency. I'd like to run a couple of tests and try and reproduce the issue. Would you mind sharing what version of the NDK, Android SDK and JRE/JDK are you using for the project so that I can set up my dev environment to be the same.

regards, Omar.

qwertylhl commented 3 years ago

Hello Omar,

Thanks for your reply! Please refer the following. SDK version: Android Pie, API level 28, revision 6 NDK version: 22.0.7026061 JRE/JDK: Sorry, I am not sure. I have not manually install JDK/JRE. But if use "java --version" in the windows power shell, it would print the following information.

openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode) And because you mentioned "unable to download glm", I hope to append this information -> I works in my company network. I set the company proxy in Android Studio. I think the proxy works because Android Studio could update the SDK, download NDK and other tools.

Moreover, I also tried to compile the PVRSDK on a Linux machine. Result is compile passed and demos could run on my target device.

Best Regards, Q.