LINUX 下构建OpenGL ES 3.0
生活随笔
收集整理的這篇文章主要介紹了
LINUX 下构建OpenGL ES 3.0
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Ubuntu LINUX 下構建OpenGL ES 3.0
Category : OpenGL
LINUX 下構建OpenGL ES 3.0 軟件:PowerVRSDKSetup-4.0.run-x64 https://community.imgtec.com/developers/powervr/graphics-sdk/ 操作系統:Ubuntu 14.04 null@dev:~/desktop$ sudo ./PowerVRSDKSetup-4.0.run-x64 [sudo] password for null: null@dev:~/desktop$ sudo apt-get install build-essential cmake cmake-curses-gui null@dev:~/desktop$ ls opengles3-book-master? opengles3-book-master.zip null@dev:~/opengles3$ cd opengles3-book-master/ null@dev:~/opengles3/opengles3-book-master$ ls Android_Java? Chapter_14? Chapter_7? CMakeLists.txt? LICENSE Chapter_10? ? Chapter_2? ?Chapter_8? Common? ? ? ? ? README.md Chapter_11? ? Chapter_6? ?Chapter_9? External null@dev:~/opengles3/opengles3-book-master$ mkdir build null@dev:~/opengles3/opengles3-book-master$ cd build null@dev:~/opengles3/opengles3-book-master/build$ cmake ../ — The C compiler identification is GNU 4.8.4 — The CXX compiler identification is GNU 4.8.4 — Check for working C compiler: /usr/bin/cc — Check for working C compiler: /usr/bin/cc — works — Detecting C compiler ABI info — Detecting C compiler ABI info – done — Check for working CXX compiler: /usr/bin/c++ — Check for working CXX compiler: /usr/bin/c++ — works — Detecting CXX compiler ABI info — Detecting CXX compiler ABI info – done — Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so — Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so – found — Looking for gethostbyname — Looking for gethostbyname – found — Looking for connect — Looking for connect – found — Looking for remove — Looking for remove – found — Looking for shmat — Looking for shmat – found — Found X11: /usr/lib/x86_64-linux-gnu/libX11.so CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: EGL_LIBRARY linked by target “Common” in directory /home/null/opengles3/opengles3-book-master/Common OPENGLES3_LIBRARY linked by target “Common” in directory /home/null/opengles3/opengles3-book-master/Common — Configuring incomplete, errors occurred! See also “/home/null/opengles3/opengles3-book-master/build/CMakeFiles/CMakeOutput.log”. 運行:ccmake ../ enter 進入編輯。 找到 /opt/Imagination/PowerVR_Graphics/PowerVR_SDK/SDK_4.0/Builds/Linux/x86_64/Lib/libEGL.so /opt/Imagination/PowerVR_Graphics/PowerVR_SDK/SDK_4.0/Builds/Linux/x86_64/Lib/libGLESv2.so 完成配置后按C保存,再按Q退出ccmake。 再執行cmake,生成makefile,然后執行make: null@dev:~/opengles3/opengles3-book-master/build$ cmake ../ — Configuring done — Generating done — Build files have been written to: /home/null/opengles3/opengles3-book-master/build null@dev:~/opengles3/opengles3-book-master/build$ ls Chapter_10? Chapter_14? Chapter_6? Chapter_8? CMakeCache.txt? cmake_install.cmake? Makefile Chapter_11? Chapter_2? ?Chapter_7? Chapter_9? CMakeFiles? ? ? Common null@dev:~/opengles3/opengles3-book-master/build$ make- 準備運行Hello_Triangle。
- 設置環境變量也沒有解決。
- 段錯誤 (核心已轉儲) 解決辦法:
*****************************************
code: https://github.com/zjucsxxd/opengles3-book
總結
以上是生活随笔為你收集整理的LINUX 下构建OpenGL ES 3.0的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux的进程间通信-消息队列
- 下一篇: 奇异值分解(SVD) --- 几何意义