Hi all,
I attempted several times to install Urho3D on RPi, which failed.
Finally, I reinstalled Raspbian Jessie OS.
Then reinstalled Urho3D with the following method(with RPi’s experimental OpenGL disabled, and GPU=768 MB.) :
The error is telling you that OpenGL wasn’t able to initialize. I think might be because of the:
I haven’t a Rasberry Pi yet so this is a stab in the dark but now that you have Urho3D installed, try enabling the RPi’s experimental OpenGL feature and see if it starts.
Our RPI port has only be built and tested using GLES at the moment. Personally I haven’t tried it with OpenGL yet, so I have no idea whether it will work with OpenGL.
Thanks @weitjong for your reply.
But I don’t want to use OpenGL. I just want to run Urho3D ! That’s it !!
So, what is my system’s problem !?
Please help me solve this.
It is easier to verify that you have a working build environment by first test building a simple GLES project instead of using Urho3D. I did that when I first got my RPI. After you know for sure you can build a simple project then come back to retry to build Urho3D project. It has been awhile since the last time I build it natively on the board itself, to tell you the truth. I may try that later when I have time on my newer RPI 3. Usually just cross-compile on a Linux host and scp to the board for actual testing. I am not sure what went wrong with your build environment, but this is how I setup mine.
[ul][li]For cross-compiling: just follow the steps as outlined in urho3d.github.io/documentation/ … aspberryPi. The section of the text is contributed by me, so it exactly outlines what I did.[/li]
[li]For native build on the board: install the prerequisite software as root and then build Urho3D as normal user (I hope I won’t catch you using root again, I cannot stand such mistake and may opt to not respond at all and let others to help you). After calling cmake, verify the generated build tree contains this file: /Source/ThirdParty/SDL/include/generated/SDL_config.h and verify this file contains entries that indicate SDL has detected the video driver for RPI and OpenGL ES 1 and 2. If not then install the missing prerequisite package and rinse & repeat, each time deleting the previously generated build tree first when you are reusing a same build tree path.[/li][/ul]
[quote=“weitjong”]It is easier to verify that you have a working build environment by first test building a simple GLES project instead of using Urho3D. I did that when I first got my RPI. After you know for sure you can build a simple project then come back to retry to build Urho3D project. It has been awhile since the last time I build it natively on the board itself, to tell you the truth. I may try that later when I have time on my newer RPI 3. Usually just cross-compile on a Linux host and scp to the board for actual testing. I am not sure what went wrong with your build environment, but this is how I setup mine.
[ul][li]For cross-compiling: just follow the steps as outlined in urho3d.github.io/documentation/ … aspberryPi. The section of the text is contributed by me, so it exactly outlines what I did.[/li]
[li]For native build on the board: install the prerequisite software as root and then build Urho3D as normal user (I hope I won’t catch you using root again, I cannot stand such mistake and may opt to not respond at all and let others to help you). After calling cmake, verify the generated build tree contains this file: /Source/ThirdParty/SDL/include/generated/SDL_config.h and verify this file contains entries that indicate SDL has detected the video driver for RPI and OpenGL ES 1 and 2. If not then install the missing prerequisite package and rinse & repeat, each time deleting the previously generated build tree first when you are reusing a same build tree path.[/li][/ul][/quote]