Please help me solve this problem. This is what I’ve done,
1. Install Mali OpenGL ES Emulator v3.0.1
2. I able to run the rotating cube
3. Install CMake2.8
4. I’ve followed the Ch. 16 of OpenGL ES 3.0 Programming Guide, 2nd Edition in order to build this sample (opengles3-book/Chapter_2/Hello_Triangle at master · danginsburg/opengles3-book · GitHub ). Below are the steps.
4.1. Open CMake-gui
4.2. Browse the source file to the folder of “Hello_Triangle” (see image 1 )
4.3. Create a build folder and browse to it (output folder)
4.4. Click Configure
4.5. Change value of “CMAKE_INSTALL_PREFIX ” to the path of Hello_Triangle
4.6. Click “Add Entry” to add path of libEGL.lib (path is in the folder of Mali Emulator, see image 1 )
4.7. Click “Add Entry” to add path of libGLESv2.lib (path is in the folder of Mali Emulator, see image 1)
4.8. Click Configure again and then click Generate
4.9. In build folder, run the Project file “Project.sln”
4.10. Set Additional Includes Directories to the include folder in the book's code (see image 2)
5. Build the project and then I’ve got this error that I can’t solve it. (see image 3)
^ (image 1)
^ (image 2)
^ (image 3)
By the way, i'm using Microsoft Visual C++ 2010 to run the project file from CMake.
Hi yok,
If I'm not mistaken then you should build Common.lib (opengles3-book/Common at master · danginsburg/opengles3-book · GitHub) first.
Could you please try to download all the examples (not just Hello_Triangle) and then follow the steps from the book again?
The resulting solution file should contain Hello_Triangle and Common projects and you should be able to easily build both.
Hope that helps,
Jacek