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

 
 

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

Submitter:  Josua Mayer <artox>
Submitted:  Sat 01 Sep 2012 06:56:58 AM UTC
   
 
Category:  None Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  rsavoye
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by rsavoye (Updated the item)
  • -email is unavailable- added by artox (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-18 rsavoye StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2012-09-03 rsavoye StatusNeed Info Ready For Test
    2012-09-02 rsavoye StatusNone Need Info
        Assigned toNone rsavoye
    2012-09-01 artox Attached File- Added configure.log, #26459

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code