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

GCS build on RPi Raspbian - Successful!

by Roque » Thu Oct 30, 2014 12:52 am

HI!

Again, I need your advising on building the GCS on the RPi Archlinux. All was going well until I got this error:
Code: Select all
compiling /home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp
/home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp: In member function 'virtual void CachedSvgItem::paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)':
/home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:157:13: error: 'GL_QUADS' was not declared in this scope
     glBegin(GL_QUADS);
             ^
/home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:157:21: error: 'glBegin' was not declared in this scope
     glBegin(GL_QUADS);
                     ^
/home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:158:24: error: 'glTexCoord2d' was not declared in this scope
     glTexCoord2d(0,  0 ); glVertex3d(br.left(), br.top(), -1);
                        ^
/home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:158:61: error: 'glVertex3d' was not declared in this scope
     glTexCoord2d(0,  0 ); glVertex3d(br.left(), br.top(), -1);
                                                             ^
/home/roque/TauLabs-20141026/ground/gcs/src/libs/utils/cachedsvgitem.cpp:162:11: error: 'glEnd' was not declared in this scope
     glEnd();
           ^
Makefile:981: 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


Can you help me fix it? I am building the latest release put out by peabody124.

Thank you all!

EDIT: Update! Am I the first or...?

Image
Last edited by Roque on Sun Nov 02, 2014 1:57 pm, edited 2 times in total.
no avatar
User

ernieift

Posts

193

Joined

Sun Mar 02, 2014 11:21 am

Re: GCS build on RPi Archlinux

by ernieift » Thu Oct 30, 2014 8:48 am

Maybe the wrong Qt version?
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 9:10 am

ernieift wrote:Maybe the wrong Qt version?


I have installed Qt5 from pacman repo's, alongside all the extensions and dependecies. Actually this was the reason from moving from Raspbian to Archlinux, because Raspbian as no stable release for Qt5. Isn't Qt5 the right one to have? How can I "debug" it to see if it is working? running "which qt" returns the place where it was installed, so I guess it is ok, but running solely "qt" does not return anything (says invalid command).
no avatar
User

ernieift

Posts

193

Joined

Sun Mar 02, 2014 11:21 am

Re: GCS build on RPi Archlinux

by ernieift » Thu Oct 30, 2014 9:22 am

Normally i compile under OSX. Here is the actual/needed Qt version in the tools folder. You can install it with "make qt_sdk_install". I'd never used a RPi for compiling. The VM under linux compiles fine here.
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 9:26 am

the problem is that I really need to have the GCS running on the Pi, therefore my question. Since people did it for RioTBoard, which is also an ARM Arquitecture, I think it is doable under RPi, considered that the performance won't be as good, but I just need to get ir running
ernieift wrote:Normally i compile under OSX. Here is the actual/needed Qt version in the tools folder. You can install it with "make qt_sdk_install". I'd never used a RPi for compiling. The VM under linux compiles fine here.

What version of Qt are you running?
no avatar
User

ernieift

Posts

193

Joined

Sun Mar 02, 2014 11:21 am

Re: GCS build on RPi Archlinux

by ernieift » Thu Oct 30, 2014 9:43 am

On Linux 5.3.2 and on OSX 5.3.1.
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 10:00 am

I think I have those too, but I will have to check that later. Will come back with an answear.
User avatar
User

shred

Posts

287

Joined

Fri Mar 14, 2014 11:50 am

Re: GCS build on RPi Archlinux

by shred » Thu Oct 30, 2014 12:28 pm

Maybe missing/wrong OpenGL libraries? The missing symbols are all OpenGL related.
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 3:15 pm

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!
User avatar
User

shred

Posts

287

Joined

Fri Mar 14, 2014 11:50 am

Re: GCS build on RPi Archlinux

by shred » Thu Oct 30, 2014 5:47 pm

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..
Next

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron