Development discussion of TauLabs software such as ground control stations, antenna trackers etc.
User avatar
User

Roque

Posts

28

Joined

Fri Jul 11, 2014 11:13 pm

Re: GCS build on RPi Archlinux

by Roque » Thu Oct 30, 2014 11:31 pm

shred wrote:
Roque wrote:
shred wrote:Maybe missing/wrong OpenGL libraries? The missing symbols are all OpenGL related.


What version of OpenGL do I need? Do you know? Or I'll just install the latest?

I believe that might be the problem, as qt5 was well installed. Will try it later!


I think you are missing the Qt OpenGL libraries. In Gentoo Linux, I have the "dev-qt/qtopengl" package installed, not sure what it is called in Arch..


I installed all the available libs, including mesa, but still no success. Meanwhile, I found this:

http://www.raspberrypi.org/forums/viewtopic.php?t=8673

Does this mean that I have to translate OpenGL libs to OpenGL ES ?
User avatar
User

shred

Posts

287

Joined

Fri Mar 14, 2014 11:50 am

Re: GCS build on RPi Archlinux

by shred » Fri Oct 31, 2014 12:34 am

It may be easier to identify which parts of the gcs depend on OpenGL and disable them. In a second step you could modify them to use OpenGL ES, this would make the gcs more portable to run on tablets etc.
User avatar
User

Roque

Posts

28

Joined

Fri Jul 11, 2014 11:13 pm

Re: GCS build on RPi Archlinux

by Roque » Fri Oct 31, 2014 2:17 am

shred wrote:It may be easier to identify which parts of the gcs depend on OpenGL and disable them. In a second step you could modify them to use OpenGL ES, this would make the gcs more portable to run on tablets etc.


Shred, added #include <GL/gl.h> and now errors are different. Here they are:
Code: Select all
compiling /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp
In file included from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:29:0:
/usr/include/GL/gl.h:134:17: error: conflicting declaration 'typedef double GLdouble'
 typedef double  GLdouble; /* double precision float */
                 ^
In file included from /usr/include/qt/QtOpenGL/qgl.h:47:0,
                 from /usr/include/qt/QtOpenGL/QGLContext:1,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.h:29,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:26:
/usr/include/qt/QtGui/qopengl.h:98:17: error: 'GLdouble' has a previous declaration as 'typedef GLfloat GLdouble'
 typedef GLfloat GLdouble;
                 ^
In file included from /usr/include/GL/gl.h:2055:0,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:29:
/usr/include/GL/glext.h:468:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'
 typedef ptrdiff_t GLsizeiptr;
                   ^
In file included from /usr/include/qt/QtGui/qopengl.h:82:0,
                 from /usr/include/qt/QtOpenGL/qgl.h:47,
                 from /usr/include/qt/QtOpenGL/QGLContext:1,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.h:29,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:26:
/opt/vc/include/GLES2/gl2.h:66:26: error: 'GLsizeiptr' has a previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
 typedef khronos_ssize_t  GLsizeiptr;
                          ^
In file included from /usr/include/GL/gl.h:2055:0,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:29:
/usr/include/GL/glext.h:469:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
 typedef ptrdiff_t GLintptr;
                   ^
In file included from /usr/include/qt/QtGui/qopengl.h:82:0,
                 from /usr/include/qt/QtOpenGL/qgl.h:47,
                 from /usr/include/qt/QtOpenGL/QGLContext:1,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.h:29,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:26:
/opt/vc/include/GLES2/gl2.h:65:26: error: 'GLintptr' has a previous declaration as 'typedef khronos_intptr_t GLintptr'
 typedef khronos_intptr_t GLintptr;
                          ^
In file included from /usr/include/GL/gl.h:2055:0,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:29:
/usr/include/GL/glext.h:2185:149: error: conflicting declaration 'typedef void (* GLDEBUGPROC)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, const void*)'
 typedef void (APIENTRY  *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
                                                                                                                                                     ^
In file included from /usr/include/qt/QtGui/qopengl.h:92:0,
                 from /usr/include/qt/QtOpenGL/qgl.h:47,
                 from /usr/include/qt/QtOpenGL/QGLContext:1,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.h:29,
                 from /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:26:
/usr/include/qt/QtGui/qopengles2ext.h:192:28: error: 'GLDEBUGPROC' has a previous declaration as 'typedef void (* GLDEBUGPROC)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, GLvoid*)'
 typedef void (GL_APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
                            ^
Makefile:1051: recipe for target '.obj/debug-shared/cachedsvgitem.o' failed
make[4]: *** [.obj/debug-shared/cachedsvgitem.o] Error 1
make[4]: Leaving directory '/home/roque/TauLabs-20141026/build/ground/gcs/src/libs/utils'
Makefile:217: recipe for target 'sub-utils-make_first-ordered' failed
make[3]: *** [sub-utils-make_first-ordered] Error 2
make[3]: Leaving directory '/home/roque/TauLabs-20141026/build/ground/gcs/src/libs'
Makefile:40: recipe for target 'sub-libs-make_first-ordered' failed
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory '/home/roque/TauLabs-20141026/build/ground/gcs/src'
Makefile:41: recipe for target 'sub-src-make_first-ordered' failed
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory '/home/roque/TauLabs-20141026/build/ground/gcs'
Makefile:265: recipe for target 'gcs' failed
make: *** [gcs] Error 2


Meanwhile, could you teach me in how to disable the modules that depend on OpenGL? I am more interested on the artificial horizon and I think that OpenGL is for the 3D Representation of the drone.
User avatar
User

Roque

Posts

28

Joined

Fri Jul 11, 2014 11:13 pm

Re: GCS build on RPi Raspbian - Successful!

by Roque » Sun Nov 02, 2014 1:58 pm

Update on #1.
User avatar
User

VArcht

Posts

287

Joined

Thu Mar 06, 2014 5:24 am

Re: GCS build on RPi Raspbian - Successful!

by VArcht » Sun Nov 02, 2014 2:23 pm

Cool, so what was it? Fix the variable names or?
User avatar
User

Roque

Posts

28

Joined

Fri Jul 11, 2014 11:13 pm

Re: GCS build on RPi Raspbian - Successful!

by Roque » Sun Nov 02, 2014 2:42 pm

Well, it was a lot of trouble! But the solution, at the end, was having a fresh install of Raspbian, install qtcreator through "sudo apt-get install qtcreator", installing missing libraries that I got from the RioTBoard topic and making it.

Tried arch without sucess, had a lot of problems with OpenGL and GL ES.

On Raspbian it took me a lot of time to compile it. I will post updates on I connect F3 onto it.
User avatar
User

VArcht

Posts

287

Joined

Thu Mar 06, 2014 5:24 am

Re: GCS build on RPi Raspbian - Successful!

by VArcht » Sun Nov 02, 2014 3:33 pm

Good to know, I have a RPi sitting around, could make a nice ground station.

Look forward to seeing what you are cooking up.
no avatar
User

chubaka

Posts

3

Joined

Tue Nov 24, 2015 10:19 pm

Re: GCS build on RPi Raspbian - Successful!

by chubaka » Tue Nov 24, 2015 10:34 pm

Any news ?
I ve tried and build with success GCS but it dont start :(
no avatar
User

chubaka

Posts

3

Joined

Tue Nov 24, 2015 10:19 pm

Re: GCS build on RPi Raspbian - Successful!

by chubaka » Wed Dec 02, 2015 7:52 pm

made it !!! but slow as hell
no avatar
User

TMac

Posts

9

Joined

Wed Dec 02, 2015 5:00 pm

Re: GCS build on RPi Raspbian - Successful!

by TMac » Thu Dec 10, 2015 2:52 am

Sorry to be dense ... where did you get the Qt5 libraries to be able to build gcs on RPi? I didn't see/understand where this was done in the RioTBoard post.
PreviousNext

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB ® | phpBB3 Style by KomiDesign