bugGnash - The GNU Flash player - Bugs: bug #37245, Compile error on...

 
 

bug #37245: Compile error on libdevice/egl/eglDevice.cpp

Submitted by:  Josua Mayer <artox>
Submitted on:  Sat 01 Sep 2012 06:56:58 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 18 Sep 2012 03:36:44 PM UTC, comment #5:

The compile error was fixed for me by that git commit.

Josua Mayer <artox>
Mon 03 Sep 2012 03:14:43 PM UTC, comment #4:

Some platforms (Rasberry PI & Android) define EGLNativeWIndowType as a void *, other (libMesa) define this as an int. I added a configure test for the type. Fixed as of #d40781c.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Mon 03 Sep 2012 11:25:57 AM UTC, comment #3:

forgot to mention: reinterpret_cast does the trick here. At least for compiling.

Josua Mayer <artox>
Mon 03 Sep 2012 09:54:06 AM UTC, comment #2:

This is gcc-4.6.3 running on the raspberry pi. The EGL,OpenVG,GLESv2 all come from Broadcom. The libs and includes can be viewed here: https://github.com/raspberrypi/firmware/tree/master/hardfp/opt/vc

Josua Mayer <artox>
Sun 02 Sep 2012 03:06:22 PM UTC, comment #1:

What platform was this on ? Which version of GCC ? On many platforms the native window type is a long, but on others, like Android, it's a void *. Try replacing the static_cast with reinterpret_cast.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Sat 01 Sep 2012 06:56:58 AM UTC, original submission:

When compiling gnash with the OpenVG renderer enabled(this will also require GLES2 and EGL), the compilation fails with this:
CXX libgnashdevice_la-eglDevice.lo
../../gnash/libdevice/egl/eglDevice.cpp: In member function 'virtual bool gnash::renderer::EGLDevice::attachWindow(gnash::renderer::GnashDevice::native_window_t)':
../../gnash/libdevice/egl/eglDevice.cpp:383:64: error: invalid static_cast from type 'gnash::renderer::GnashDevice::native_window_t {aka long int}' to type 'EGLNativeWindowType {aka void*}'

a logfile of configure can be found attached

Josua Mayer <artox>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #26459:  configure.log added by artox (31KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rsavoye (Updated the item)
  • -unavailable- added by artox (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 18 Sep 2012 03:40:36 PM UTCrsavoyeStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 03 Sep 2012 03:14:43 PM UTCrsavoyeStatusNeed Info=>Ready For Test
    Sun 02 Sep 2012 03:06:22 PM UTCrsavoyeStatusNone=>Need Info
      Assigned toNone=>rsavoye
    Sat 01 Sep 2012 06:56:58 AM UTCartoxAttached File-=>Added configure.log, #26459

    Back to the top


    Powered by Savane 3.1-cleanup1