ahrs-visualizer icon indicating copy to clipboard operation
ahrs-visualizer copied to clipboard

Question : Jetson TX2

Open andrewssobral opened this issue 5 years ago • 1 comments

Hello, thanks for providing this awesome app ! I would like very much to run it on my Jetson TX2, I tried to make some changes, for eg:

//#include <bcm_host.h>

//#include <GLES/gl.h>
#include <GL/gl.h>

but I'm still getting some errors (I see that bcm is from RPi):

ahrs-visualizer.cpp:46:15: error: ‘VC_RECT_T’ does not name a type; did you mean ‘GL_RECT_NV’?
 static inline VC_RECT_T rect_width_height(int width, int height)
               ^~~~~~~~~
               GL_RECT_NV
ahrs-visualizer.cpp: In function ‘void nice_bcm_host_init()’:
ahrs-visualizer.cpp:77:5: error: ‘bcm_host_init’ was not declared in this scope
     bcm_host_init();
     ^~~~~~~~~~~~~
ahrs-visualizer.cpp:77:5: note: suggested alternative: ‘nice_bcm_host_init’
     bcm_host_init();
     ^~~~~~~~~~~~~
     nice_bcm_host_init
ahrs-visualizer.cpp: In function ‘void opengl_init()’:
ahrs-visualizer.cpp:86:12: error: ‘EGL_DISPMANX_WINDOW_T’ does not name a type; did you mean ‘GL_DISPLAY_LIST’?
     static EGL_DISPMANX_WINDOW_T nativewindow;

Some tips?

andrewssobral avatar May 26 '19 22:05 andrewssobral

I think that the bcm stuff (and maybe the vc stuff) is specific to Broadcom processors. I suggest that you find an Open GL tutorial that works for the Jetson TX2, compile and run it to make sure it works, and then replace the Broadcom-specific stuff with whatever code is appropriate for that platform.

DavidEGrayson avatar May 28 '19 02:05 DavidEGrayson