hexameron / rtl-sdrangelove

GUI frontend for rtl-sdr.
85 stars 18 forks source link

Cannot compile glscope under armhf #1

Open gabika1941 opened 8 years ago

gabika1941 commented 8 years ago

I've tried to compile sdrangelove. Make ran for a couple minutes, then it stopped due to some GL-related errors. it can't complile the glscope.gcc.

[ 1%] Automatic moc for target sdrangelove [ 1%] Built target sdrangelove_automoc [ 2%] Automatic moc for target sdrbase [ 2%] Built target sdrbase_automoc [ 3%] Building CXX object CMakeFiles/sdrbase.dir/sdrbase/gui/glscope.cpp.o /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp: In member function ‘virtual void GLScope::paintGL()’: /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:129:15: error: ‘glPushMatrix’ was not declared in this scope glPushMatrix(); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:130:25: error: ‘glScalef’ was not declared in this scope glScalef(2.0, -2.0, 1.0); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:131:29: error: ‘glTranslatef’ was not declared in this scope glTranslatef(-0.50, -0.5, 0); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:142:24: error: ‘glColor4f’ was not declared in this scope glColor4f(1, 1, 1, 0.5); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:143:22: error: ‘glBegin’ was not declared in this scope glBegin(GL_LINE_LOOP); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:144:17: error: ‘glVertex2f’ was not declared in this scope glVertex2f(1, 1); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:148:8: error: ‘glEnd’ was not declared in this scope glEnd(); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:167:14: error: ‘glPopMatrix’ was not declared in this scope glPopMatrix(); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:175:12: error: ‘GL_LINE_SMOOTH’ was not declared in this scope glEnable(GL_LINE_SMOOTH); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:197:12: error: ‘GL_LINE_SMOOTH’ was not declared in this scope glEnable(GL_LINE_SMOOTH); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:262:12: error: ‘GL_LINE_SMOOTH’ was not declared in this scope glEnable(GL_LINE_SMOOTH); ^ /home/odroid/sdrangelove/sdrbase/gui/glscope.cpp:284:12: error: ‘GL_LINE_SMOOTH’ was not declared in this scope glEnable(GL_LINE_SMOOTH); ^ CMakeFiles/sdrbase.dir/build.make:687: recipe for target 'CMakeFiles/sdrbase.dir/sdrbase/gui/glscope.cpp.o' failed make[2]: * [CMakeFiles/sdrbase.dir/sdrbase/gui/glscope.cpp.o] Error 1 CMakeFiles/Makefile2:127: recipe for target 'CMakeFiles/sdrbase.dir/all' failed make[1]: * [CMakeFiles/sdrbase.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *\ [all] Error 2 odroid@odroid:~/sdrangelove/build$

I've checked the qt openGL, and it was installed on this system

ED6E0F17 commented 8 years ago

I don`t know if you still care, but ArmHF forces QT5 into GLES mode, so OpenGL code will fail. There is a GLES branch in the upstream Sdrangelove, but that is also broken.

You can`t use a lot of bandwidth on ArmV7, but this verion works on RaspberryPi2, (with the new mesa driver): https://github.com/ED6E0F17/sdrangelove/tree/gles