armel port compile error.

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

armel port compile error.

robert1968
Hi Louis,

Im in the middle of ARM port of Piano Booster. :)

But now stucked with this error:

root@android-99566d063cf58ef3:/temp/PianoBooster# make
[  1%] Building CXX object build/CMakeFiles/pianobooster.dir/QtMain.o
In file included from /temp/PianoBooster/src/Draw.h:35:0,
                 from /temp/PianoBooster/src/Scroll.h:33,
                 from /temp/PianoBooster/src/Score.h:34,
                 from /temp/PianoBooster/src/QtWindow.h:33,
                 from /temp/PianoBooster/src/QtMain.cpp:25:
/usr/include/GL/gl.h:162:17: error: conflicting declaration 'typedef double GLdouble'
/usr/include/qt4/QtOpenGL/qgl.h:85:17: error: 'GLdouble' has a previous declaration as 'typedef GLfloat GLdouble'
In file included from /usr/include/GL/gl.h:2085:0,
                 from /temp/PianoBooster/src/Draw.h:35,
                 from /temp/PianoBooster/src/Scroll.h:33,
                 from /temp/PianoBooster/src/Score.h:34,
                 from /temp/PianoBooster/src/QtWindow.h:33,
                 from /temp/PianoBooster/src/QtMain.cpp:25:
/usr/include/GL/glext.h:5327:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
/usr/include/GLES2/gl2.h:38:26: error: 'GLintptr' has a previous declaration as 'typedef khronos_intptr_t GLintptr'
/usr/include/GL/glext.h:5328:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'
/usr/include/GLES2/gl2.h:39:26: error: 'GLsizeiptr' has a previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
make[2]: *** [build/CMakeFiles/pianobooster.dir/QtMain.o] Error 1
make[1]: *** [build/CMakeFiles/pianobooster.dir/all] Error 2
make: *** [all] Error 2
root@android-99566d063cf58ef3:/temp/PianoBooster#

Device is my Galaxy Note 10.1 with Jelly Bean 4.1.2 - Android hosting a full Armel Debian. (Debian Kit exactly.)
Strange isnt it :)

But seems to work.

All other compile problems was solved by some googling, but now please advise.

Best Regards,
Robert.
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

Louis B.
Administrator
wow

will this run on straight Android (on My nexus 7?)

I did find the MidiSheetMusic (see https://play.google.com/store/apps/details?id=com.midisheetmusic) on Android. I am mulling over merging these two programmes (but NOT any times soon)

You need to look at the definitions at both GLdouble on the line indicated for both /GL/gl.h  QtOpenGL/qgl.h. I suspect that one of these include files is either not for ARM or for a different version of the ARM port. You need to look at (or post here) the relevant part of each include file. You might see various flags for the different version of the ARM chip. Both definitions for GLdouble  should be the same.

Good luck

Reading your email more carefully you are only porting this to Debian Kit
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

robert1968
Dear Louis,

Thanks for quick response.

>will this run on straight Android (on My nexus 7?)

Should be. :)

May I say some words about Debian Kit. I suggest to try Debian Kit, which is a marvelous Debian-Android integration. Lots of hardware works - for example audio is fully working. which is far more than any chroot debian I have tried on android.


Thanks for advise midisheet music. It is really great idea.
Integrating with the PB with lighted keybord support. Amasing idea.  will be perfect companion... :)

Compile error:
Please see gl.h 

and Qt qgl.h 

I really apreciate your help now and during compile because I'm not a programmer... and understand nothing looking inside GLdouble.  Sorry. :(

Regards,
Robert
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

Louis B.
Administrator
In reply to this post by robert1968
try including the following at the top of QtMain.cpp

  #include <GL/gl.h>
  #include <GL/glu.h>
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

robert1968

Dear Louis.

Thanks for help.
(I getting love  Midi Sheet Music - many of embeded Music is my favorit. Thanks to advise!)

Compile: Another error occured. Please help.

root@android-99566d063cf58ef3:/temp/PianoBooster# make
[  1%] Building CXX object build/CMakeFiles/pianobooster.dir/QtMain.o
In file included from /temp/PianoBooster/src/Draw.h:35:0,
                 from /temp/PianoBooster/src/Scroll.h:33,
                 from /temp/PianoBooster/src/Score.h:34,
                 from /temp/PianoBooster/src/QtWindow.h:33,
                 from /temp/PianoBooster/src/QtMain.cpp:25:
/usr/include/GL/gl.h:162:17: error: conflicting declaration 'typedef double GLdouble'
/usr/include/qt4/QtOpenGL/qgl.h:85:17: error: 'GLdouble' has a previous declaration as 'typedef GLfloat GLdouble'
In file included from /usr/include/GL/gl.h:2085:0,
                 from /temp/PianoBooster/src/Draw.h:35,
                 from /temp/PianoBooster/src/Scroll.h:33,
                 from /temp/PianoBooster/src/Score.h:34,
                 from /temp/PianoBooster/src/QtWindow.h:33,
                 from /temp/PianoBooster/src/QtMain.cpp:25:
/usr/include/GL/glext.h:5327:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
/usr/include/GLES2/gl2.h:38:26: error: 'GLintptr' has a previous declaration as 'typedef khronos_intptr_t GLintptr'
/usr/include/GL/glext.h:5328:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'
/usr/include/GLES2/gl2.h:39:26: error: 'GLsizeiptr' has a previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
make[2]: *** [build/CMakeFiles/pianobooster.dir/QtMain.o] Error 1
make[1]: *** [build/CMakeFiles/pianobooster.dir/all] Error 2
make: *** [all] Error 2
root@android-99566d063cf58ef3:/temp/PianoBooster#

2013.02.12. 1:15, "Louis B. [via Piano Booster]" <[hidden email]> ezt írta:
try including the following at the top of QtMain.cpp

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



If you reply to this email, your message will be added to the discussion below:
http://piano-booster.2625608.n2.nabble.com/armel-port-compile-error-tp7572534p7572541.html
To start a new topic under Piano Booster Development, email [hidden email]
To unsubscribe from Piano Booster Development, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

Louis B.
Administrator
Perhaps you can give details of your build setup?

what system are you using to build? are you cross compiling or
building directly on your Galaxy Note 10.1?

Looking at video it looks like the phone has been rooted. I don't
wan't to root my nexus 7 as I need it unrooted for work. I don't
suppose I could compile on an unrooted nexus 7?

you need to check that the "QT Hello GL ES Example" example works
first on your setup as PB is biased on this setup. if that does not
work then PB won't work.

(also more useful android music programs i use ABC music browser {only
if you use the ABC music system) and the Audio speed changer)

Louis

On Tue, Feb 12, 2013 at 5:07 AM, robert1968 [via Piano Booster]
<[hidden email]> wrote:

> Dear Louis.
>
> Thanks for help.
> (I getting love  Midi Sheet Music - many of embeded Music is my favorit.
> Thanks to advise!)
>
> Compile: Another error occured. Please help.
>
> root@android-99566d063cf58ef3:/temp/PianoBooster# make
> [  1%] Building CXX object build/CMakeFiles/pianobooster.dir/QtMain.o
> In file included from /temp/PianoBooster/src/Draw.h:35:0,
>                  from /temp/PianoBooster/src/Scroll.h:33,
>                  from /temp/PianoBooster/src/Score.h:34,
>                  from /temp/PianoBooster/src/QtWindow.h:33,
>                  from /temp/PianoBooster/src/QtMain.cpp:25:
> /usr/include/GL/gl.h:162:17: error: conflicting declaration 'typedef double
> GLdouble'
> /usr/include/qt4/QtOpenGL/qgl.h:85:17: error: 'GLdouble' has a previous
> declaration as 'typedef GLfloat GLdouble'
> In file included from /usr/include/GL/gl.h:2085:0,
>                  from /temp/PianoBooster/src/Draw.h:35,
>                  from /temp/PianoBooster/src/Scroll.h:33,
>                  from /temp/PianoBooster/src/Score.h:34,
>                  from /temp/PianoBooster/src/QtWindow.h:33,
>                  from /temp/PianoBooster/src/QtMain.cpp:25:
> /usr/include/GL/glext.h:5327:19: error: conflicting declaration 'typedef
> ptrdiff_t GLintptr'
> /usr/include/GLES2/gl2.h:38:26: error: 'GLintptr' has a previous declaration
> as 'typedef khronos_intptr_t GLintptr'
> /usr/include/GL/glext.h:5328:19: error: conflicting declaration 'typedef
> ptrdiff_t GLsizeiptr'
> /usr/include/GLES2/gl2.h:39:26: error: 'GLsizeiptr' has a previous
> declaration as 'typedef khronos_ssize_t GLsizeiptr'
> make[2]: *** [build/CMakeFiles/pianobooster.dir/QtMain.o] Error 1
> make[1]: *** [build/CMakeFiles/pianobooster.dir/all] Error 2
> make: *** [all] Error 2
> root@android-99566d063cf58ef3:/temp/PianoBooster#
>
> 2013.02.12. 1:15, "Louis B. [via Piano Booster]" <[hidden email]> ezt írta:
>>
>> try including the following at the top of QtMain.cpp
>>
>>   #include <GL/gl.h>
>>   #include <GL/glu.h>
>>
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://piano-booster.2625608.n2.nabble.com/armel-port-compile-error-tp7572534p7572541.html
>> To start a new topic under Piano Booster Development, email [hidden email]
>> To unsubscribe from Piano Booster Development, click here.
>> NAML
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://piano-booster.2625608.n2.nabble.com/armel-port-compile-error-tp7572534p7572543.html
> To start a new topic under Piano Booster Development, email
> [hidden email]
> To unsubscribe from Piano Booster Development, click here.
> NAML
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

robert1968
Dear Louis.

I will split my answers into parts because no progress in compilation.
Sorry for delay in response. But hopped I can managed and turn back to forum.


>what system are you using to build? are you cross compiling or
building directly on your Galaxy Note 10.1?

Yes. On my GNote 10.1 within  Debian KIT, - arm Ubuntu Linux
 

> I don't suppose I could compile on an unrooted nexus 7?
Debian KIT needs to be rooted.

>you need to check that the "QT Hello GL ES Example" example works
first on your setup as PB is biased on this setup. if that does not
work then PB won't work.

That's seems to me need long long time to me :)

>(also more useful android music programs i use ABC music browser {only
if you use the ABC music system) and the Audio speed changer)

Thanks for advise these app, I'll look them.

My build env.:
  240 apt-get install cmake
  241  apt-get install build-essential
  242  apt-get install libqt4-dev
  243  apt-get install libasound2-dev
  268  apt-get install libgl1-mesa-dev
  272  apt-get install glutg3-dev
  273  apt-get install freeglutg3-dev
  274  apt-get install freeglutg-dev
  275  apt-get install freeglut3-dev

Regards Róbert


On Tue, Feb 12, 2013 at 5:07 AM, robert1968 [via Piano Booster]
<[hidden email]> wrote:
> Dear Louis.
>
> Thanks for help.
> (I getting love  Midi Sheet Music - many of embeded Music is my favorit.
> Thanks to advise!)
>
> Compile: Another error occured. Please help.
>
> root@android-99566d063cf58ef3:/temp/PianoBooster# make
> [  1%] Building CXX object build/CMakeFiles/pianobooster.dir/QtMain.o
> In file included from /temp/PianoBooster/src/Draw.h:35:0,
>                  from /temp/PianoBooster/src/Scroll.h:33,
>                  from /temp/PianoBooster/src/Score.h:34,
>                  from /temp/PianoBooster/src/QtWindow.h:33,
>                  from /temp/PianoBooster/src/QtMain.cpp:25:
> /usr/include/GL/gl.h:162:17: error: conflicting declaration 'typedef double
> GLdouble'
> /usr/include/qt4/QtOpenGL/qgl.h:85:17: error: 'GLdouble' has a previous
> declaration as 'typedef GLfloat GLdouble'
> In file included from /usr/include/GL/gl.h:2085:0,
>                  from /temp/PianoBooster/src/Draw.h:35,
>                  from /temp/PianoBooster/src/Scroll.h:33,
>                  from /temp/PianoBooster/src/Score.h:34,
>                  from /temp/PianoBooster/src/QtWindow.h:33,
>                  from /temp/PianoBooster/src/QtMain.cpp:25:
> /usr/include/GL/glext.h:5327:19: error: conflicting declaration 'typedef
> ptrdiff_t GLintptr'
> /usr/include/GLES2/gl2.h:38:26: error: 'GLintptr' has a previous declaration
> as 'typedef khronos_intptr_t GLintptr'
> /usr/include/GL/glext.h:5328:19: error: conflicting declaration 'typedef
> ptrdiff_t GLsizeiptr'
> /usr/include/GLES2/gl2.h:39:26: error: 'GLsizeiptr' has a previous
> declaration as 'typedef khronos_ssize_t GLsizeiptr'
> make[2]: *** [build/CMakeFiles/pianobooster.dir/QtMain.o] Error 1
> make[1]: *** [build/CMakeFiles/pianobooster.dir/all] Error 2
> make: *** [all] Error 2
> root@android-99566d063cf58ef3:/temp/PianoBooster#
>
> 2013.02.12. 1:15, "Louis B. [via Piano Booster]" <[hidden email]> ezt írta:
>>
>> try including the following at the top of QtMain.cpp
>>
>>   #include <GL/gl.h>
>>   #include <GL/glu.h>
>>
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://piano-booster.2625608.n2.nabble.com/armel-port-compile-error-tp7572534p7572541.html
>> To start a new topic under Piano Booster Development, email [hidden email]
>> To unsubscribe from Piano Booster Development, click here.
>> NAML
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://piano-booster.2625608.n2.nabble.com/armel-port-compile-error-tp7572534p7572543.html
> To start a new topic under Piano Booster Development, email
> [hidden email]
> To unsubscribe from Piano Booster Development, click here.
> NAML
Reply | Threaded
Open this post in threaded view
|

Re: armel port compile error.

blindcoder
Hi Louis.

To get PB to compile, I edited /usr/include/GLES2/gl2.h to turn GLsizeiptr and GLintptr into ptrdiff_t and /usr/include/qt4/QtOpenGL/qgl.h to turn GLdouble into a doubte by editing the respective typedefs.


Kind regards,
Benjamin