Any help is appreciated. Want to see it up and running!!
ERRORS:
[color=#400080] Am I missing any dependencies? I tried to google, but the solution of adding <GLES/gl.h> to the header file did not help:
src/ui/CameraView.cc: In member function ‘virtual void CameraView::paintGL()’:
src/ui/CameraView.cc:240:94: error: ‘glDrawPixels’ was not declared in this scope
glDrawPixels(glImage.width(), glImage.height(), GL_RGBA, GL_UNSIGNED_BYTE, glImage.bits());
^
src/ui/CameraView.cc: In member function ‘virtual void CameraView::resizeGL(int, int)’:
src/ui/CameraView.cc:246:18: error: ‘GL_PROJECTION’ was not declared in this scope
glMatrixMode(GL_PROJECTION);
^
src/ui/CameraView.cc:246:31: error: ‘glMatrixMode’ was not declared in this scope
glMatrixMode(GL_PROJECTION);
^
src/ui/CameraView.cc:247:20: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
src/ui/CameraView.cc:248:30: error: ‘glOrtho’ was not declared in this scope
glOrtho(0, w, 0, h, -1, 1);
^
src/ui/CameraView.cc:249:18: error: ‘GL_MODELVIEW’ was not declared in this scope
glMatrixMode(GL_MODELVIEW);
^
Makefile:36685: recipe for target ‘build-release/obj/CameraView.o’ failed
make: *** [build-release/obj/CameraView.o] Error 1
make: *** Waiting for unfinished jobs…[/color]
I saw that it required OpenGL. I had already installed it via ‘sudo apt-get install freeglut3-dev’. But seem that I might be missing a specific dependency?
The solution to that error of OpenGL ‘at run-time’ was my resolved by simply rebooting my Pi-B+. The error did not show-up thereafter. Maybe, some sync issues. Thanks, what you said about OpenGLES makes sense to me now!
A step further:
The application opens (but throws a stylesheet error on ‘Startup application’):
" QGroundControl did not load a new style Stylesheet file: files/styles/style-outdoor.css was not readable". I have this file in the respective directory, also looked for this error in the .cpp files of QGroundControl. The Outdoor Style does not happily load, what could be the cause of this?
As APM Planner loads, I get the default map as ‘Google Hybrid’ and the right side of the map shows black (half map is black). Changing to Google maps works Ok. And how do I choose the default map? Any idea how this can be fixed?
<couldn’t attach screenshot, as this post does not allow>
My setup is same as you all, and followed everything to word, until now…
Seems like the permissions are alright? And the other issue was blackout of half the map. I have got as far as opening the apm planner successfully and connecting via telemetry. Also, the map black-out disappears if I choose ‘Google Maps’ instead of the default ‘Google Hybrid’. Anyway, to make the ‘Google Maps’ as the default?
Hi, I also have encountered a similar issue. Tried installing APM Planner on my odroid XU4 with ubuntu mate. FATAL - Could not initialize OpenGL. However rebooting the odroid did not help. Any other suggestions?