Hello, I installed apm planner on ubuntu mate 16.04 on Odroid XU4, but when I try running it, the start up screen appears for 2 seconds and closes, When I run it from the terminal I get an error FATAL: Could not initalize OpenGL
. Any suggestions? Thanks
What system are you using, you need OpenGL drivers. ie graphics card etc…
Or trying building from source for your platform
Hi Bill, I have installed it on my Odroid XU4 with Ubuntu mate 16.04.2 LTS. I installed apm planner following the instructions from github. When I try to run it I get the following
odroid@odroid:~/Desktop/apm_planner$ ./release/apmplanner2 [20170511 11:26:18.727 INFO ] - QGCCore::initialize() [20170511 11:26:18.727 INFO ] - Current Build Info [20170511 11:26:18.727 INFO ] - Git Hash: 38b21e1f0c4e9f4203f5a273aab4a57d1d3294ba [20170511 11:26:18.728 INFO ] - Git Commit: 2.0.25-rc1-16-g38b21e1-DEV [20170511 11:26:18.728 INFO ] - APPLICATION_NAME: "APM Planner" [20170511 11:26:18.728 INFO ] - APPLICATION_VERSION: "v2.0.25-rc1" [20170511 11:26:18.728 INFO ] - APP_PLATFORM: ubuntu32 [20170511 11:26:18.729 INFO ] - APP_TYPE: stable [20170511 11:26:18.748 WARN ] - Unable to find an X11 visual which matches EGL config 9 [20170511 11:26:18.748 WARN ] - Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface. [20170511 11:26:18.842 INFO ] - Start Link Manager [20170511 11:26:18.843 DEBUG] - Create MAVLinkDecoder: MAVLinkDecoder(0xaa657008) [20170511 11:26:18.845 INFO ] - Start UAS Manager [20170511 11:26:18.935 DEBUG] - Creating MainWindow [20170511 11:26:19.208 INFO ] - Creating SubMainWindow: SubMainWindow(0xe0bc38) [20170511 11:26:19.208 INFO ] - setting objectName: "VIEW_MISSION" [20170511 11:26:19.362 INFO ] - Creating SubMainWindow: SubMainWindow(0xe63f70) [20170511 11:26:19.362 INFO ] - setting objectName: "VIEW_FLIGHT" [20170511 11:26:19.494 INFO ] - Creating SubMainWindow: SubMainWindow(0xf2fde8) [20170511 11:26:19.494 INFO ] - setting objectName: "VIEW_HARDWARE_CONFIG" [20170511 11:26:19.866 DEBUG] - fillPortsInfo [20170511 11:26:20.436 INFO ] - Inserting "ttySAC0" [20170511 11:26:20.437 INFO ] - Inserting "ttySAC1" [20170511 11:26:20.437 INFO ] - Inserting "ttySAC2" [20170511 11:26:20.437 INFO ] - Inserting "ttySAC3" [20170511 11:26:20.437 INFO ] - Changed Link to: "ttySAC0" [20170511 11:26:21.631 INFO ] - Creating SubMainWindow: SubMainWindow(0x1336798) [20170511 11:26:21.632 INFO ] - setting objectName: "VIEW_SOFTWARE_CONFIG" [20170511 11:26:21.678 DEBUG] - Disable Controls [20170511 11:26:22.118 INFO ] - Creating SubMainWindow: SubMainWindow(0x185d6b0) [20170511 11:26:22.119 INFO ] - setting objectName: "VIEW_ENGINEER" [20170511 11:26:22.145 INFO ] - Creating SubMainWindow: SubMainWindow(0x19f0c20) [20170511 11:26:22.145 INFO ] - setting objectName: "VIEW_SIMULATOR" [20170511 11:26:22.338 DEBUG] - MODE: 0 [20170511 11:26:22.354 DEBUG] - "D|PREFLIGHT" [20170511 11:26:22.355 DEBUG] - MODE: 80 [20170511 11:26:22.356 DEBUG] - "D|STABILIZED" [20170511 11:26:22.356 DEBUG] - MODE: 64 [20170511 11:26:22.357 DEBUG] - "D|MANUAL" [20170511 11:26:22.358 DEBUG] - MODE: 88 [20170511 11:26:22.359 DEBUG] - "D|VECTOR|STABILIZED" [20170511 11:26:22.359 DEBUG] - MODE: 92 [20170511 11:26:22.360 DEBUG] - "D|AUTO|STABILIZED" [20170511 11:26:22.360 DEBUG] - MODE: 66 [20170511 11:26:22.361 DEBUG] - "D|TEST" [20170511 11:26:22.542 DEBUG] - QUrl("file:///home/odroid/Desktop/apm_planner/qml/PrimaryFlightDisplayQML.qml") [20170511 11:26:22.756 DEBUG] - QML Status: 1 [20170511 11:26:22.761 DEBUG] - QUrl("file:///home/odroid/Desktop/apm_planner/qml/PrimaryFlightDisplayQML.qml") [20170511 11:26:22.880 DEBUG] - QML Status: 1 [20170511 11:26:22.895 INFO ] - UASActionsWidget creating UASActionsWidget(0x1d68d10) [20170511 11:26:22.902 DEBUG] - QuickView: load settings [20170511 11:26:22.903 DEBUG] - QuickView: loading key: "GCS GPS.GPS Fix ()" type: "text" [20170511 11:26:22.981 DEBUG] - QuickView: loading key: "GCS GPS.GPS HDOP ()" type: "text" [20170511 11:26:22.985 DEBUG] - QuickView: loading key: "GCS GPS.GPS Sats (n)" type: "text" [20170511 11:26:22.990 DEBUG] - QuickView: loading key: "GCS Metric.Alt MSL (m)" type: "text" [20170511 11:26:22.995 DEBUG] - QuickView: loading key: "GCS Metric.Alt REL (m)" type: "text" [20170511 11:26:23.001 DEBUG] - QuickView: loading key: "GCS Status.Battery (%)" type: "text" [20170511 11:26:23.008 DEBUG] - QuickView: loading key: "GCS Status.Climb (m/s)" type: "text" [20170511 11:26:23.015 DEBUG] - QuickView: loading key: "GCS Status.Current (A)" type: "text" [20170511 11:26:23.023 DEBUG] - QuickView: loading key: "GCS Status.Pitch (deg)" type: "text" [20170511 11:26:23.031 DEBUG] - QuickView: loading key: "GCS Status.Roll (deg)" type: "text" [20170511 11:26:23.040 DEBUG] - QuickView: loading key: "GCS Status.Voltage (V)" type: "text" [20170511 11:26:23.049 DEBUG] - QuickView: loading key: "GCS Status.Yaw (deg)" type: "text" [20170511 11:26:23.068 DEBUG] - QuickView: load settings END [20170511 11:26:23.249 INFO ] - Using Alsa Audio driver [20170511 11:26:23.251 WARN ] - Dir directory tmp_audio exists [20170511 11:26:23.288 DEBUG] - qmlBaseDir "/home/odroid/Desktop/apm_planner" [20170511 11:26:23.289 DEBUG] - QUrl("file:///home/odroid/Desktop/apm_planner/qml/ApmToolBar.qml") [20170511 11:26:23.338 DEBUG] - APMToolBar: button label SELECTED [20170511 11:26:23.392 DEBUG] - QML Status: 1 [20170511 11:26:23.396 INFO ] - NETWORK_PROXY: Disabling System Network Proxies [20170511 11:26:23.409 INFO ] - Screen Size is QRect(0,0 1920x1080) [20170511 11:26:23.411 WARN ] - Unable to find an X11 visual which matches EGL config 9 [20170511 11:26:23.412 WARN ] - Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface. [20170511 11:26:23.699 WARN ] - Unable to find an X11 visual which matches EGL config 19 [20170511 11:26:23.700 FATAL] - Could not initialize OpenGL Aborted
I checked which OpenGL version I have below
> odroid@odroid:~/Desktop/apm_planner$ glxinfo | grep "OpenGL version" > libGL error: unable to load driver: exynos_dri.so > libGL error: driver pointer missing > libGL error: failed to load driver: exynos > OpenGL version string: 3.0 Mesa 12.0.6 > odroid@odroid:~/Desktop/apm_planner$ glxinfo | grep 'version' > libGL error: unable to load driver: exynos_dri.so > libGL error: driver pointer missing > libGL error: failed to load driver: exynos > server glx version string: 1.4 > client glx version string: 1.4 > GLX version: 1.4 > Max core profile version: 3.3 > Max compat profile version: 3.0 > Max GLES1 profile version: 1.1 > Max GLES[23] profile version: 3.0 > OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.6 > OpenGL core profile shading language version string: 3.30 > OpenGL version string: 3.0 Mesa 12.0.6 > OpenGL shading language version string: 1.30 > OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.6 > OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Other users complained about such a behaviour too - Apm planner can't resolve log file that added new field data
I have no idea whats happening there.
I think it has something to do with screen depth.
On the raspberry pi, you would change framebuffer_depth=24 in the /boot/config.txt file…I’m not sure where/if you can change on Odroid.
Hi Carpy, I tried this but no luck.Same error. Thanks